Skip to content

Getting Started

Quahu edited this page Jun 4, 2024 · 5 revisions

Terminology

  • Lua refers to the programming language.

  • Lua refers to the Laylua.Lua type.

  • 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.

Clone this wiki locally