Skip to content

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 saysIndustry termWhat it is
Worldgame state, simulationEverything of one game: entities, players, the map, fog, time (World).
Entityentity, game objectAnything in the world: a unit, a building, a tree, an item on the ground.
Unitactor, active entityAn entity that acts: moves, fights, builds or changes by itself. world.units holds them.
Scenerystatic entityAn entity that does nothing by itself, such as a tree. Kept out of per-tick loops until something wakes it.
WakeactivateTurning scenery into a unit for good, because something (a buff, an order) needs it looked at every tick.
Tickfixed timestep, simulation stepOne step of the simulation: 30 a second, each with the same dt.
Systemsystem (ECS)Code run every tick, or every few ticks, over units or over what has a component (SystemDef).
Phaseupdate stageThe order systems run in within a tick: commands, decide, move, resolve, cleanup.
Componentcomponent (ECS)Data added to an entity by a game or a pack, found in O(1) and optionally indexed.
Ordercommand, task, jobWhat a unit is doing or will do: move, attack, build, cast. Units keep a queue of them.
Commandinput, player commandWhat a player sends: orders for units, or a game's own (defineCommand).
Hookinterceptor, filter, middlewareCode run inside the tick that can change or cancel what is about to happen (beforeDamage).
Event / listenerevent / subscriberSomething that happened, told to listeners once the tick is over. A listener can't change it.
Effectability effect, gameplay effectA building block of what an ability does: damage, heal, summon, apply a buff.
Buffstatus effect, modifierA timed state on an entity that changes its stats or behaviour, good or bad.
StatsattributesAn entity's numbers after its type, upgrades, buffs and items are applied (statsOf).
Def, definitiondata definition, archetype, templateThe data of a unit type, ability, buff, item: UnitTypeDef, AbilityDef.
Registrydatabase, content registryA world's definitions, by kind and id.
Rulesgame mode, rulesetEverything that makes a game what it is: definitions, systems, hooks, settings.
Settings (RuleSettings)tunables, configThe rules' knobs: speeds, ranges, limits.
Pack (GamePack)plugin, module, featureA bundle of rules added to a game: heroes, concealment, foliage.
Pack file (pack.json)data packDefinitions and settings as JSON, laid over a game's. Not the same as a code pack.
ModmodA change to a game made by someone else, in code, with its dependencies and conflicts declared.
Filed into cells (world.spatial)spatial hash, uniform gridUnits are put in grid cells by position once a tick, so "what is near here" is fast.
Grid (world.grid)occupancy gridWhich cells structures stand on, for building placement and paths.
Navigation, navmeshnavmeshWhere units can walk, built with Recast.
Crowdcrowd simulation (Detour)Units walking together and steering around each other.
Knotcluster, blockageA group of units standing in a walker's way, which it goes around or waits behind.
Look-aheadlocal avoidance checkA walker checking whether units stand in its way ahead.
Fog, sightfog of war, visibilityWhat each team can see now and has seen.
DeterminismdeterminismThe same seed and commands give the same game, everywhere. Lets saves, replays and tests reproduce a game exactly.
Fingerprint, hashstate checksumA number summing up a world, compared to find where two runs came apart.

Sessions and multiplayer ​

V12 saysIndustry termWhat it is
Sessionconnection, client-side game handleWhat a player's screen holds of a game: snapshots in, commands out.
Snapshotsnapshot, state updateWhat one player may know right now, cut to what their team sees.
Deltadelta compressionA snapshot sent as the changes since one the player confirmed.
Host (SessionHost)authoritative serverRuns the one true world and serves each player's snapshots.
Told, reportreplicated stateWhat a player is sent of an entity, and the game's own per-player data.
ReplayreplayThe start and every command at its tick, replayed by running the game again.

The client (drawing) ​

V12 saysIndustry termWhat it is
Look (UnitLook)visual definition, view configHow a type is drawn: model, scale, animations, effects, sounds. Kept apart from the rules.
Viewpresentation layerEverything that draws a game; it reads snapshots and never changes the world.
Copiesinstances, instancingMany of one mesh drawn in one draw call, each with its own transform.
Prototypesource meshThe mesh that copies are made from, not drawn itself.
Characterskinned instanceA unit's own copy of a model with its own skeleton and animations.
Dressattach model, swap inPutting a unit's model in place of the simple shapes it shows until the model is loaded.
Baked, crowd (drawing)vertex animation textures, GPU skinningAnimations baked into a texture so thousands of units draw as instances of one mesh.
LevelsLOD (level of detail)Simpler versions of a model used farther from the camera.
Impostor, picture cardbillboard, impostorA far object drawn as a picture of itself.
Chunkbatch, merged meshScenery of one area merged or instanced together to cut draw calls.
Warm-upshader precompilation, pipeline warm-upCompiling shaders and building pipelines behind the loading screen, so play doesn't stall.
Quality, presetgraphics settingsTiers of resolution, shadows, effects and lights the player picks.
Frozen (client.freeze)pause rendering, time freezeThe picture held still: animations, effects, weather and the sky stop.
Frame phaserender loop stageA named step of a frame (simulate, world, cinematic), timed and extensible.
Alphainterpolation factorHow far a frame is between the last two ticks, used to move units smoothly.