/tg/ Station 13 - Modules - TypesVar Details - Proc Details

lua_state

Vars

ckey_last_runnerCkey of the last user who ran a script on this lua state.
functions_to_executeCallbacks that need to be ran on next tick
globalsA list of all the variables in the state's environment
internal_idThe internal ID of the lua state stored in auxlua's global map
logA log of every return, yield, and error for each chunk execution and function call
referencesA list in which to store datums and lists instantiated in lua, ensuring that they don't get garbage collected
timer_enabledWhether the timer.lua script has been included into this lua context state.

Procs

clear_on_deleteCalled by lua scripts when they add an atom to var/list/references so that it gets cleared up on delete.
let_soft_deleteCalled by lua scripts when an atom they've added should soft delete and this state should stop tracking it. Needs to unregister all signals.
resumePrefer calling SSlua.queue_resume over directly calling this

Var Details

ckey_last_runner

Ckey of the last user who ran a script on this lua state.

functions_to_execute

Callbacks that need to be ran on next tick

globals

A list of all the variables in the state's environment

internal_id

The internal ID of the lua state stored in auxlua's global map

log

A log of every return, yield, and error for each chunk execution and function call

references

A list in which to store datums and lists instantiated in lua, ensuring that they don't get garbage collected

timer_enabled

Whether the timer.lua script has been included into this lua context state.

Proc Details

clear_on_delete

Called by lua scripts when they add an atom to var/list/references so that it gets cleared up on delete.

let_soft_delete

Called by lua scripts when an atom they've added should soft delete and this state should stop tracking it. Needs to unregister all signals.

resume

Prefer calling SSlua.queue_resume over directly calling this