Skip to content

Getting Started

Quahu edited this page May 23, 2023 · 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.

Clone this wiki locally