async/api.txt
Coder12a 90ea9b9b60 Create async pools
Bug fix in do_while.
Fix time in schedule taking too long.
2018-11-09 10:26:54 -06:00

20 lines
635 B
Plaintext

-- node_funcs
-- Function happens when a node's constructer function is ran in a 3x3x3 near by.
on_construct_node_near_by(pos,other_pos)
-- Function happens when a node's destructer function is ran 3x3x3 near by.
on_destruct_node_near_by(pos,other_pos)
-- async
--
minetest.Async.create_async_pool() --- return pool
--
minetest.Async.priority(pool,resting,maxtime)
--
minetest.Async.iterate(pool,from,to,func,callback)
--
minetest.Async.foreach(pool,array, func, callback)
--
minetest.Async.do_while(pool,condition_func, func, callback)
--
minetest.Async.register_globalstep(pool,func)
--
minetest.Async.queue_task(pool,tasks,callback)