/tg/ Station 13 - Modules - Types

code/modules/admin/verbs/lua/_hooks.dm

/proc/__lua_set_set_var_wrapperSets a global proc to call in place of just outright setting a datum's var to a given value
/proc/__lua_set_datum_proc_call_wrapperSets a global proc to call in place of just outright calling a given proc on a datum
/proc/__lua_set_global_proc_call_wrapperSets a global proc to call in place of just outright calling a given global proc
/proc/__lua_set_print_wrapperSets a global proc as a wrapper for lua's print function
/proc/__lua_set_execution_limitSets the maximum amount of time a lua chunk or function can execute without sleeping or yielding. Chunks/functions that exceed this duration will produce an error.
/proc/__lua_new_stateCreates a new lua state.
/proc/__lua_loadLoads a chunk of lua source code and executes it
/proc/__lua_callCalls a lua function
/proc/__lua_awakenDequeues the task at the front of the sleep queue and resumes it
/proc/__lua_resumeRemoves the task at the specified index from the yield table and resumes it
/proc/__lua_get_globalsGet the variables within a state's environment. Values not convertible to DM values are substituted for their types as text
/proc/__lua_get_tasksGet a list of all tasks currently in progress within a state
/proc/__lua_kill_taskKills a task in progress