Repository navigation
EN API Index
External RCC packages receive game-scoped context services. This index is audited against src/main.cpp at f340c22db5ba; private shell context objects are not automatically part of the external game contract.
| External context | Purpose | Boundary |
|---|---|---|
App |
legacy app facade | scoped compatibility object |
Settings |
legacy settings facade | no raw host-global settings privilege |
Lang |
legacy language facade | compatibility/localization |
Audio |
legacy audio facade | game-scoped compatibility |
GameSettings |
preferences | per-game namespace |
GameSave |
durable state/slots | atomic/checksummed persistence |
GameInput |
actions/analog values | input abstraction |
GameRandom |
deterministic PRNG | serializable state |
GameEvents |
local event bus | one game's internal decoupling, not cross-plugin IPC |
GameClock |
gameplay clock | pause/resume friendly |
GameTheme |
semantic theme facade | public token/surface access |
ThemeRuntime |
alias to theme facade | external service alias in current source |
Viewport |
safe geometry/orientation/density | responsive layout |
Lifecycle |
lifecycle facade | public external name |
GameI18n |
package localization | deterministic fallback |
GameStats |
statistics | scoped/bounded local data |
Achievements |
unlock/progress | scoped local data |
GameAudio |
modern audio | package/named resource policy |
Haptics |
tactile feedback | safe no-op when unsupported |
GameLogger |
diagnostics | scoped package/source context |
GameRuntime |
runtime capabilities | capability discovery |
GameResources |
package resources | namespace-aware resolution |
GameLifecycle is an internal C++ type, but external packages receive the context name Lifecycle, backed by a GameLifecycleFacade. Do not document GameLifecycle as a QML context property for external RCC packages.
The application shell's main QML engine receives additional internal objects such as paths, package/catalog models and developer/external-runtime controllers. Their presence in src/main.cpp does not make them supported external package APIs. External game QML is loaded through a separate engine with the explicit scoped service map.
Modern packages should declare api_version: "0.7" and put actual hard requirements in required_capabilities. GameRuntime exposes runtime capability information so game behavior can be negotiated rather than guessed. Legacy capabilities retains compatibility semantics and should not be retroactively treated as strict v0.7 requirements.
- Prefer public context services over QObject introspection/private imports.
- Preserve old supported call shapes through facades when safe.
- Additive API is preferred to forced package rewrites.
- A capability failure such as audio/haptics should be survivable where the feature is optional.
- Security authority such as publisher trust/native permission is not an ordinary game API field.
If a historical doc title says “0.6” while current v0.7 source still exposes the service, use the v0.7 source/runtime plus the compatibility docs to determine current behavior. Do not invent renamed methods to make the documentation look newer.
Canonical sources: src/main.cpp, docs/sdk/OVERVIEW.md, docs/PLUGIN_API.md.
LeoMiniGames v0.7.0 · Home · Languages · Source Audit · audited against f340c22db5ba