-
-
Notifications
You must be signed in to change notification settings - Fork 3
Getting Started
Quahu edited this page Jun 4, 2024
·
5 revisions
-
Lua refers to the programming language.
-
Luarefers to theLaylua.Luatype. -
Lua interactions rely on the usage of a Lua state. In Laylua, the following types all represent a Lua state:
-
Laylua.Luarepresents the high-level state and encompasses the low-level state. -
Laylua.Moon.LuaStaterepresents the low-level state. -
Laylua.Moon.lua_Statepassed 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. -
There are two main namespaces Laylua uses:
LayluaLaylua.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.