API Reference
The X-Ray 16 engine API is the primary reference for game globals, luabind classes, UI and GOAP classes, and script objects. The rest of this generated reference covers the remaining published xray16 package surfaces.
| Package | Description |
|---|---|
| xray16 | Engine declarations — globals, luabind classes, UI and GOAP classes, and script objects. |
| xray16/alias | Readable aliases for engine declaration names and virtual engine enums. |
| xray16/macros | Compile-time helpers with a Node/Jest runtime fallback. |
| xray16/lib | Shared aliases, constants, and small runtime helpers. |
| xray16/testing | Jest configuration factory, setup helpers, and matchers. |
| xray16/mocks | Lua-like runtime helpers and engine class mocks for Node-based tests. |
Declarations describe the TypeScript-visible API shape. C++ engine bindings define runtime behavior, so check the engine source when declaration syntax is ambiguous.