Glossary
V12's code and docs use their own words for many things game engines have standard names for. This page maps them, so you can read the code with what you already know.
Several of these words are ways to change what a game does (a def, an effect, a hook, a listener, a system, a mod). Change how something behaves says which to pick.
The simulation
| V12 says | Industry term | What it is |
|---|---|---|
| World | game state, simulation | Everything of one game: entities, players, the map, fog, time (World). |
| Entity | entity, game object | Anything in the world: a unit, a building, a tree, an item on the ground. |
| Unit | actor, active entity | An entity that acts: moves, fights, builds or changes by itself. world.units holds them. |
| Scenery | static entity | An entity that does nothing by itself, such as a tree. Kept out of per-tick loops until something wakes it. |
| Wake | activate | Turning scenery into a unit for good, because something (a buff, an order) needs it looked at every tick. |
| Tick | fixed timestep, simulation step | One step of the simulation: 30 a second, each with the same dt. |
| System | system (ECS) | Code run every tick, or every few ticks, over units or over what has a component (SystemDef). |
| Phase | update stage | The order systems run in within a tick: commands, decide, move, resolve, cleanup. |
| Component | component (ECS) | Data added to an entity by a game or a pack, found in O(1) and optionally indexed. |
| Order | command, task, job | What a unit is doing or will do: move, attack, build, cast. Units keep a queue of them. |
| Command | input, player command | What a player sends: orders for units, or a game's own (defineCommand). |
| Hook | interceptor, filter, middleware | Code run inside the tick that can change or cancel what is about to happen (beforeDamage). |
| Event / listener | event / subscriber | Something that happened, told to listeners once the tick is over. A listener can't change it. |
| Effect | ability effect, gameplay effect | A building block of what an ability does: damage, heal, summon, apply a buff. |
| Buff | status effect, modifier | A timed state on an entity that changes its stats or behaviour, good or bad. |
| Stats | attributes | An entity's numbers after its type, upgrades, buffs and items are applied (statsOf). |
| Def, definition | data definition, archetype, template | The data of a unit type, ability, buff, item: UnitTypeDef, AbilityDef. |
| Registry | database, content registry | A world's definitions, by kind and id. |
| Rules | game mode, ruleset | Everything that makes a game what it is: definitions, systems, hooks, settings. |
Settings (RuleSettings) | tunables, config | The rules' knobs: speeds, ranges, limits. |
Pack (GamePack) | plugin, module, feature | A bundle of rules added to a game: heroes, concealment, foliage. |
Pack file (pack.json) | data pack | Definitions and settings as JSON, laid over a game's. Not the same as a code pack. |
| Mod | mod | A change to a game made by someone else, in code, with its dependencies and conflicts declared. |
Filed into cells (world.spatial) | spatial hash, uniform grid | Units are put in grid cells by position once a tick, so "what is near here" is fast. |
Grid (world.grid) | occupancy grid | Which cells structures stand on, for building placement and paths. |
| Navigation, navmesh | navmesh | Where units can walk, built with Recast. |
| Crowd | crowd simulation (Detour) | Units walking together and steering around each other. |
| Knot | cluster, blockage | A group of units standing in a walker's way, which it goes around or waits behind. |
| Look-ahead | local avoidance check | A walker checking whether units stand in its way ahead. |
| Fog, sight | fog of war, visibility | What each team can see now and has seen. |
| Determinism | determinism | The same seed and commands give the same game, everywhere. Lets saves, replays and tests reproduce a game exactly. |
| Fingerprint, hash | state checksum | A number summing up a world, compared to find where two runs came apart. |
Sessions and multiplayer
| V12 says | Industry term | What it is |
|---|---|---|
| Session | connection, client-side game handle | What a player's screen holds of a game: snapshots in, commands out. |
| Snapshot | snapshot, state update | What one player may know right now, cut to what their team sees. |
| Delta | delta compression | A snapshot sent as the changes since one the player confirmed. |
Host (SessionHost) | authoritative server | Runs the one true world and serves each player's snapshots. |
| Told, report | replicated state | What a player is sent of an entity, and the game's own per-player data. |
| Replay | replay | The start and every command at its tick, replayed by running the game again. |
The client (drawing)
| V12 says | Industry term | What it is |
|---|---|---|
Look (UnitLook) | visual definition, view config | How a type is drawn: model, scale, animations, effects, sounds. Kept apart from the rules. |
| View | presentation layer | Everything that draws a game; it reads snapshots and never changes the world. |
| Copies | instances, instancing | Many of one mesh drawn in one draw call, each with its own transform. |
| Prototype | source mesh | The mesh that copies are made from, not drawn itself. |
| Character | skinned instance | A unit's own copy of a model with its own skeleton and animations. |
| Dress | attach model, swap in | Putting a unit's model in place of the simple shapes it shows until the model is loaded. |
| Baked, crowd (drawing) | vertex animation textures, GPU skinning | Animations baked into a texture so thousands of units draw as instances of one mesh. |
| Levels | LOD (level of detail) | Simpler versions of a model used farther from the camera. |
| Impostor, picture card | billboard, impostor | A far object drawn as a picture of itself. |
| Chunk | batch, merged mesh | Scenery of one area merged or instanced together to cut draw calls. |
| Warm-up | shader precompilation, pipeline warm-up | Compiling shaders and building pipelines behind the loading screen, so play doesn't stall. |
| Quality, preset | graphics settings | Tiers of resolution, shadows, effects and lights the player picks. |
Frozen (client.freeze) | pause rendering, time freeze | The picture held still: animations, effects, weather and the sky stop. |
| Frame phase | render loop stage | A named step of a frame (simulate, world, cinematic), timed and extensible. |
| Alpha | interpolation factor | How far a frame is between the last two ticks, used to move units smoothly. |