Skip to content

LibTSMModule

Methods

OnModuleLoad

lua
function LibTSMModule:OnModuleLoad(func)

Registers the function be called when the module is loaded.

Parameters:

NameTypeDescription
funcfun()The function to call

OnModuleUnload

lua
function LibTSMModule:OnModuleUnload(func)

Registers the function be called when the module is unloaded.

Parameters:

NameTypeDescription
funcfun()The function to call

OnModuleUnloadLate

lua
function LibTSMModule:OnModuleUnloadLate(func)

Registers the function be called when the module is unloaded as late as possible in the process.

Parameters:

NameTypeDescription
funcfun()The function to call