Appearance
LibTSMCore
Functions
LoadAll
lua
function LibTSMCore.LoadAll()Loads all modules.
ModuleInfoIterator
lua
function LibTSMCore.ModuleInfoIterator()
-> fun():number, string, string, number, number, nil, numberReturns an iterator over all available modules.
Returns:
| Type | Description |
|---|---|
fun():number, string, string, number, number | Iterator with fields: index, componentName, modulePath, loadTime, unloadTime |
nil | |
number |
NewComponent
lua
function LibTSMCore.NewComponent(name)
-> <T:LibTSMComponent>Creates a new component.
Parameters:
| Name | Type | Description |
|---|---|---|
name | <T> | The name of the component |
Returns:
| Type | Description |
|---|---|
<T:LibTSMComponent> |
SetTimeFunction
lua
function LibTSMCore.SetTimeFunction(timeFunc)Sets the time function.
Parameters:
| Name | Type | Description |
|---|---|---|
timeFunc | fun(): number | A function which returns the time with high precision |
UnloadAll
lua
function LibTSMCore.UnloadAll(maxTime)
-> booleanUnloads all modules.
Parameters:
| Name | Type | Description |
|---|---|---|
maxTime | number | The max time before aborting early |
Returns:
| Type | Description |
|---|---|
boolean |