Luna
Luna lets a whole system (state, synchronisation between cores, a client
interface) be written in Lua on the server and Python on the client, without
engine changes. Luna runs parallel to QuestManager, which retains quest state and dispatches login, logout, and when blocks. The bridge runs alongside it. It is several pieces that work together; each page explains one.
| Page | What it explains |
|---|---|
| The Lua bridge and the dispatch boundary | The single boundary every script call crosses, and the coroutines it owns |
| Luna transport and protobuf | One message layer for every channel, client to game to database |
| How Forge modules work | Stateful modules loaded at boot, written in the same file as their quest hooks |
| The event bus | Engine events delivered to Lua subscribers |
| Luna on the Python client | Windows registered as handlers for server messages |
| Quest compiler, source maps and the Lua debugger | Source maps and the embedded debugger |
| Lua annotations and the generated stubs | How the engine's Lua API is documented for the editor |