You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lua interactions rely on the usage of a Lua state. In Laylua, the following types all represent a Lua state:
Laylua.Lua represents the high-level state and encompasses the low-level state.
Laylua.Moon.LuaState represents the low-level state.
Laylua.Moon.lua_State passed using a pointer is required by every Lua C API method
Throughout this wiki, the term "Lua state" will generally refer to Laylua.Lua, unless specified otherwise.
Namespaces
There are two main namespaces Laylua uses:
Laylua
Laylua.Moon
Laylua contains the high-level library code, while Laylua.Moon contains the low-level library code, including the Lua C API. Besides sandboxing features, which live under the Laylua.Moon namespace, caution should be exercised whenever you are accessing components from the Laylua.Moon namespace as they require understanding of both Lua and this library.