Importing "Classes" - ADA-Funni/PsychEngine-Lua-Classes GitHub Wiki
How to import a "class"
require("mods." .. currentModDirectory .. ".lua.globals")
Lua "classes" go in mods/My-Mod/lua/your_script.lua
.
There's two templates in the lua
folder, globals.lua
, and object-oriented-programming/object_oriented_programming.lua
.