API Overview
Programmer lookup entry: C# attributes, runtime APIs, Lua CSharp / zlua standard library, and Marshal rules.
C# Attributes
| Attribute | Description | Docs |
|---|---|---|
GetFunction<T> | Call a Lua function from C# | LuaAppDomain |
[MonoLuaCallback] | Native int (IntPtr L) callback | MonoLuaCallback |
[LuaMarshalAs] | Override default Marshal | LuaMarshalAs |
[LuaAlias] | Lua alias for method overloads | LuaAlias |
C# Runtime API
| Type | Description | Docs |
|---|---|---|
LuaAppDomain | Public initialization entry | LuaAppDomain |
LuaEnv | Underlying lua_State (backend-internal; usually not used directly) | — |
Lua API
| Module | Description | Docs |
|---|---|---|
CSharp | Lazy-load root table for assemblies / types | CSharp root table |
zlua | Type construction, overloads, ref, arrays, delegate | zlua standard library |
zlua.types | corlib type constants | zlua.types |
Marshal
| Resource | Description |
|---|---|
| Marshal cheatsheet | Default rules + [LuaMarshalAs] summary |
| Marshal spec | Authoritative full rules |
Guides Index
| Topic | Docs |
|---|---|
| Install / interop / build / debug | install · hello-interop · build · debugger |
| Lua → C# | lua-calling-csharp |
| C# → Lua | csharp-calling-lua |
| Value types | value-types |
| Function | functions |
| Arrays / generics | arrays · generics |
| ref / MarshalAs / 0GC | ref-out-in · lua-marshal-as · zero-gc-marshal |
| Overloads / LuaAlias / Extension | overloads · lua-alias · extension-methods |
| zlua library / third-party native plugins | zlua-lib · native-modules |
| Migration | migration |
Authoritative Spec
Full API semantics follow the spec docs; this section is a lookup summary. Spec wins when details change.