Getters functions
GetDisplayResolution()
Returns the width and height (respectively) of the game window in pixels.
Definition
Usage example
init.lua
<console>
GetMod()
Returns the return value of the mod with the given name.
If you don't return anything in your init.lua
file, this function will return nil
. This will often look like return MyMod:new()
at the end of your file. See the Lua documentation for info about how classes can be implemented in Lua.
Definition
Usage example
init.lua
returns
GetSingleton()
Returns the singleton for the given type name if it exists, otherwisenil
.
A singleton is the sole instance of a type, often used for global operations.
Definition
Usage example
init.lua
returns
GetVersion()
Returns the current CET build's commit hash.
Definition
Usage example
init.lua
<console>
ModArchiveExists()
Returns whether the specified .archive
file is present in the archive/pc/mod
folder
Definition
Usage example
init.lua
<console>
Last updated