Skip to content

@v12-engine/engine ​

Core ​

What a game meets first.

NameKindWhat
AbilityDefinterfaceThe definition of an ability: how it is aimed, what it costs and the effects it has
applyBufffunctionPuts a buff on an entity. Buffs do not stack with themselves: a second one of the same kind renews the first when it lasts longer (BuffDef.stacking says otherwise). Returns the one of it this was about: the one put on, or the one there already that it renewed, replaced or left as it was; none where it was refused (its carrier dead, an unstoppable carrier, the beforeBuff hook). What stacks or shields the buff as it is put on goes by that one: with perSource, the source's own; with independent, the new one
BuffDefinterfaceSomething lasting on a unit that changes what it can do
checkMapfunctionWhat is wrong with a map, before it is played: what the game does not have, names used twice or named and not there, what stands off the map or in deep water, starts that cannot reach each other on foot, mines nobody can walk to, regions outside the map (MAP_RULES); then the checks given (more: the client's of what the map looks like, a game view's own, as the editor runs them); then the game's own (MapEditorDef.check). Errors keep it from being played; the rest are warnings. Runs without the editor, for a test that goes over every map of a project
checkRulesfunctionChecks a game's rules against themselves (RulesProblem): run by a game's check() and as a page fetches its view, and in a game's tests (expect(checkRules(rules).filter((p) => p.level === 'error')).toEqual([])). Nothing is thrown
cinematicfunctionA step of a sequence that plays one of the view's cinematics: defineSequence( id: 'td.start', steps: [cinematic('td.intro', hold: true ), ...talk(...)] ). It does not wait for it (with hold, the game, and the sequence with it, waits), unless told to: wait: 'ended' goes on once the player it was for has seen it end (or skipped it), any once one of the players it went to has, all once every one of them has. Only players with a screen are waited for (not the computer's); one who left a game of several never says, so a sequence for many waits for any where that matters. With a wait it is two steps, which defineSequence takes as they are
cinematicfunctionWith wait: the cinematic played, then a wait for its end (see the other form), as two steps
connectfunctionConnects to a host over a transport (the player's end of it), and waits for the welcome: what the session is made of. Fails when the host runs another version of the game, or of the engine's wire (PROTOCOL_VERSION), and when the connection closes before the session is made: while the map is made from the welcome too
createGamefunctionMakes a game: one object its units, abilities, systems, hooks and listeners, missions, maps and view are registered on, which every host takes (Game). init is its id and name, and any field of the module underneath said at once: createGame(rules) makes a game of a module written whole
createRegistryfunctionEverything a game module defines, looked up by id: with the engine's own components, and those an app keeps in its worlds (own: CreateWorldOptions.components)
createWorldfunctionMakes a world from terrain, rules and players; resolves once it is ready to step
createWorldFromMapfunctionA world as a map lays it out: its ground, the players it has room for, and everything placed on it. Players with a start location that the map places nothing for get what the game starts everyone with. Throws for a map made for another game (GameMap.game).
defineCellLayerfunctionTyped help for writing a layer of cells
defineCommandfunctionDefines a command type, for a game module's commands: its type, its fields (see fields.ts), and what it does. command is typed by the fields. ts const sellTower = defineCommand('sellTower', { tower: id }, (world, player, command) => { ... }) session.send(sellTower.make({ tower: 12 }))
defineComponentfunctionA typed key for state of a game's own: const wave = defineComponent<WaveState>({ id: 'td.waves', default: () => ... }). Give it a prefix of the game's or the mod's: the engine's own are core.. A game lists its own (Rules.components), and its world finds them by id in its registry: another game of the process may have one of the same id, and a module loaded again (as a dev server does) defines it again. With snapshot and same the component shapes what players are sent of it and how a change is found; with index it is filed for systems to go through; with field the map editor sets it
defineEffectfunctionA kind of effect, its type and what it does together: defineEffect({ type: 'pull', run: (context, effect) => ... }), listed in Rules.effects. Its fields are said by declaring the type in EffectTypes (declare module '@v12-engine/engine' { interface EffectTypes { pull: { distance: number } } }), so that a handler reads them typed, and an ability's effect of the type is checked for them
defineEventfunctionAn event of a game's own: const through = defineEvent<{ unit: string }>({ id: 'td.invaderThrough', replicate: 'everyone' }). Emitted on world.events like the engine's (world.events.emit(through, { unit })), held to the end of the tick like them, and listened to with defineListener. Ids are shared by every game: give them a prefix of the game's. A replicated event goes to the players' screens, where GameView.on and the renderers get it: what it says has to be plain data then (numbers, text, lists, plain objects), with entities by id, as it may cross a network
defineGameFilefunctionA file of the game's own data, for Rules.files: defineGameFile({ id: 'waves.json', data: wavesFile, read: readWaves }), read by the rules with world.registry.file(waves)
defineHookfunctionTyped help for writing a hook: defineHook({ hook: 'death', id: 'bounty', run(world, { entity }) { ... } })
defineHookfunctionTyped help for a handler of a game's own hook (HookKey), taking the world and the hook's event
defineIdsfunctionIds the compiler knows. A game's ids are text to the engine (world.spawn('skeleton', ...)), and a slip of the finger in one is found when the game runs, if it is found. Named once with defineIds, they are checked as they are written, completed by the editor, and renamed in one place: export const UNIT = defineIds('skeleton', 'runner', 'brute') export type TdUnit = IdOftypeof UNIT // 'skeleton' | 'runner' | 'brute' id: UNIT.skeleton, ... // in the unit's definition world.spawn(UNIT.skeletn, ...) // does not compile const view: GameView = units: looks: skeletn: ... // nor does this It is a help, not a rule: plain text works wherever an id goes, and what the compiler cannot see is checked when the game's view is fetched in a page (the client's loadGame)
defineListenerfunctionTyped help for writing a listener: defineListener({ event: enteredArea, id: 'td.gate', run(world, { area, entity }) { ... } })
defineObjectivefunctionTyped help for writing one
definePrefabfunctionTyped help for writing a prefab
defineRacefunctionA race, as the game lists it (Rules.races)
defineSequencefunctionTyped help: defineSequence<{ hero: number }>({ id: 'td.briefing', steps: [(world) => ..., wait(3), waitFor(constructionFinished)] }). A helper that is several steps (talk, cinematic(id, { wait })) may be given as its list, spread or not
defineStatfunctionA stat of the game's own, for RuleSettings.score: defineStat( id: 'towersLost', label: 'Towers lost', category: 'units', from: scoreOn(entityDied, ( entity ) = entity.def.tags?.includes('tower') ? entity.owner : undefined) ). One with no source is counted in code (world.score.add(player, 'towersLost'))
defineTimerfunctionTyped help: defineTimer<{ wave: number }>({ id: 'td.waveComes', run: (world, { wave }) => ... })
earnfunctionAdds an amount of a resource
EffectDeftypeOne thing an ability does: its type, which picks the handler and says which fields it has (EffectTypes)
enteredAreavalueA unit walked into an area of the game (Rules.areas)
EntityclassAnything in the world: a unit, a building, a tree. Fields marked readonly are kept in step with things elsewhere (the navigation, the spatial index, the lookups of the world), so they are changed through the world's functions only: World.setOwner, World.setHidden, World.setLifetime, World.place, startDash, morph (each through the entity's own internal writes: moveTo, retype, changeOwner…). The rest, like health, mana or cooldowns, a game module may change as it likes: nothing is worked out from them that would not notice.
entityDiedvalueSomething died: what killed it, and how. cause: the blow, for what died of damage. how: what the rules made of the death in the death hook, for the screen to show ('exploded', 'burned')
EntityIdtypeThe number an entity has in its world, unique there
GameinterfaceA game: one object everything of it is registered on, which every host takes (createGame). Its rules are made from what it holds (toRules(), the module underneath that a server, a test and a worker run); its view is fetched as a page first needs it (view(() => import('./view')), toView()), so that the rules are read where nothing draws (a server, a test) without the client. Each method that registers a definition gives it back export const game = createGame( id: 'td', name: 'Tower defense' ) export const archer = game.unit( id: 'archer', name: 'Archer', kind: 'unit', stats: health: 200 ) game.on(entityDied, (world, entity ) = … ) game.onStart((world, map ) = … ) game.maps(mapsFrom(import.meta.glob('./maps/*.vgmap.json', import: 'default' ))) game.view(() = import('./view'))
GameInitinterfaceWhat a game is made with (createGame): its id and name, and any field of the module underneath (Rules) said at once: a whole Rules is a game too (createGame(rules)). What is registered on the game after comes after what is given here
GameMapinterfaceA map: the ground and what stands on it when the game begins, as data. The editor makes them, scenes play them. The ground is kept in layers that are edited apart and put together into a Terrain: the height of the land, cliff levels, ramps between levels, water and paint. The layers are what a map file stores, the terrain is derived from them whenever one changes.
GameMapstypeA game's maps by name (Game.maps): each the map, or what fetches it as it is first asked for (mapsFrom of a lazy glob), so that a page carries none of a map it does not open
GameStarttypeWhat a game does once a world is made, before anyone plays (Game.onStart, a mission's onStart): computer players seated, a mission given, the first wave sent
GameStartContextinterfaceWhat a game's start is told (Game.onStart): the map its world was made from, the player at the screen (in a page), the lobby's settings (on a server), and whether the world is new (fresh) or loaded from a save, which has everything a start gives already. Each host says what it knows; the rest is left out
HandlerOptionsinterfaceWhere a listener or a hook's handler registered on a game or a mission goes by: an id of its own, in the place of the one made for it (<game>.on.<event>.<n>, <game>.<mission>.before.<hook>.<n>), and a priority for a hook (lower runs first: before is -1 and after 1 when left out, the engine's own handlers 0)
heroesPackfunctionThe heroes pack: what makes a game a classic hero RTS, opted into (Rules.packs: [heroesPack()]). Heroes, with their experience, levels, points and abilities to learn, brought back at an altar (revive) or bought back (buyback), their kills shared with those who assisted, their streaks paid for when they end (HeroSettings); creeps' camps that guard their ground, sleep at night and come back (Camp.respawn); shops that sell (buy, sell) and places that hire (hire). rules change its numbers (HeroSettings: how many heroes, the experience a level takes), the classic RTS numbers for those left out. A game without it pays nothing for any of it: no hero is made of a hero's type, no command of these is taken, no camp is looked at
heroOffunctionWhat a hero has earned: none for what is no hero (heroState)
HookDeftypeA handler and the hook it is for. Its id is how others take it out or put something in its place
hotGamefunctionA game's module's new version, taken while it runs (hot reload), as hotRules takes a module's: at the end of the module that makes the game, the call to Vite written out as it is (Vite finds a module that takes its own new versions by it): if (import.meta.hot) import.meta.hot.accept((module) = hotGame(import.meta.hot, game, module?.game)) The rules the hosts were given are made the new version's in place (hotRules); the view, a module of its own, takes its own (the client's hotView). What does not go loads the page again
hotRulesfunctionA game's entry module's new version, taken while it runs (hot reload). At the module's end, the call to Vite written out as it is (Vite finds a module that takes its own new versions by it): if (import.meta.hot) import.meta.hot.accept((module) = hotRules(import.meta.hot, melee, module?.melee)) As it or a file it reads (its units, its data.json) is saved in the dev server, the module given is made the new one in place, so that what holds it has the new one, and the games and editors of the page playing it take its definitions and rules (reloadGame, through onNewGameVersion). What does not go loads the page again, saying why (hot.invalidate(reason)): no new module, another game, a component defined another way, or a change to what a running world keeps as it was made (its systems, hooks, components, resources, and withoutSystems and withoutHooks, compared by their code and values). No client is pulled into the rules, which a server reads too
IdOftypeThe ids of a list made with defineIds, as a type: IdOf<typeof UNIT>
isGamefunctionWhether something is a game made by createGame, rather than the module underneath (Rules)
ItemDefinterfaceThe definition of an item: what it costs, what it gives its carrier and how it is used
learnfunctionTeaches the hero one level of an ability and spends a point on it; returns false when canLearn says it cannot
loadWorldfunctionA world from a save (see saveWorld), carrying on where it was. A save made before, by an older engine or by the game before a patch, is brought up to date first (updateSave), or refused with a SaveError that says why. Navigation is built again; units come back with the speed and destination they had, but the way they find around each other is worked out anew, so the game from there on is close to, and not quite, the one that was saved
MapEnvironmentinterfaceWhat a map looks like beyond its ground (design review E8c): the engine carries it (in the map, its file, a save, what players are told as it changes: world.setEnvironment) and reads none of it but the map's own tiles, which are paint like the game's. An open interface: the client adds what it draws by (its water, light, sky, fog, weather, lights and the rest), as a game adds its commands (Commands)
mapsFromfunctionThe maps of map files, by the name of each file without its folder and .vgmap.json: ./maps/field.vgmap.json is field. The files by their paths, read (parseMap): imported one by one, or Vite's import.meta.glob('./maps/*.vgmap.json', { eager: true, import: 'default' }) where only a page reads them export const maps = mapsFrom( './maps/field.vgmap.json': field, './maps/hills.vgmap.json': hills ) Given what loads each file in place of the file (import.meta.glob('./maps/*.vgmap.json', { import: 'default' }), not eager; or () => import('./field.vgmap.json')), nothing is fetched or read until a map is asked for: the result is then LazyMaps, each a function giving the map (a promise), and the page carries one chunk a map. appScenes takes both export const maps = mapsFrom(import.meta.glob('./maps/*.vgmap.json', import: 'default' )) const field = await maps.field() Throws for two files of one name, for files some given and some loaded, and with the path of a file that cannot be read
mapsFromfunctionThe maps of map files given whole, read at once (see above for loaders)
MissioninterfaceWhat a mission registers its parts with (Game.mission): each part's id is made of the game's, the mission's and its own ('raze' in the mission homecoming of my-game is my-game.homecoming.raze), and the parts go into the game's rules, so that a save finds them by those ids. Its onStart runs where the world's map is one it plays, or as it is started
objectiveVictoryvalueThe rule of a mission: a player who failed an objective the mission needs is out, and a player who did all of them wins, for their team. Like a melee game, a team whose players are all out loses, and the last team standing wins. A game uses it as its victory
openSocketfunctionThe player's end of a connection to a server, over a WebSocket: what connect and a server's lobby talk through. Resolves once the connection is open; fails when it cannot be made
OrderBehaviorinterfaceLogic behind an order type. Orders are the only way units act, which is what makes queueing work for everything. Game modules can register their own. State is what it keeps in the order (Order.state), every field optional: the order starts with none of them. OrderStates names each order type's, for registry.order(type) to hand back the behaviour typed
OrderOptionsinterfaceHow an order is given (Entity.order)
parseMapfunctionReads a map file, of this format or an older one. Throws with what is wrong with it
PlayerIdtypeThe number of a player in a world
prefabsFromfunctionThe prefabs a designer made in the editor (prefabs/<name>.prefab.json of the game's folder), as prefabs of the game's, by their file names: prefabsFrom(import.meta.glob('./prefabs/*.prefab.json', { eager: true })), or any record of name to file. An object of a player's becomes the owner's; scenery, points and paths are left out. A variant is read through its source and a prefab with prefabs inside through those, as the editor places them, from the files given
presetScorefunctionThe engine's score, for RuleSettings.score: a classic RTS score screen. Units produced, killed and lost, buildings built, razed and lost, the army and the largest, heroes killed and lost, the highest hero level, experience, creeps killed, items obtained, abilities cast, damage dealt and taken, healing, and of each resource what was gathered, spent and lost to upkeep, the bounty and what went between allies
RaceDefinterfaceA side a player can play, with a roster of its own: melee's humans and undead. Optional: a game that lists none (Rules.races) has no race anywhere, no choice of one in the lobby and nothing kept from anyone. A unit type or an upgrade of a race (UnitTypeDef.race, UpgradeDef.race) is only its players' to make; one of none, everyone's. Each player has one (raceOf): chosen in the lobby (a seat setting the server offers by itself, seatSettingsOf), given to the world as it is made (PlayerInit.race, MapWorldOptions.races), or changed by the rules (setRace)
RegistryclassThe registry of a game's definitions and behaviours: unit types, abilities, orders, systems, buffs and the rest, by id
RulesinterfaceA game module is the data and rules of one kind of game. The engine knows nothing about peasants or town halls, it gets all of that from here.
saveWorldfunctionSaves a world, between two ticks. Throws, saying where, when something in it is not plain data
serveWorldfunctionWhat a game's worker file does: serveWorld(game, { onStart }). It waits for the page to say what to play (a map, a save, or nothing for a world made here in code), makes the world, runs it by the clock, and seats the page's player at it. A new game asked for ends the one before: a restart is the same worker, its navigation built already
SpawnAtinterfaceWhere a new entity goes and whose it is, with what else it starts with (World.spawn(type, { at, owner }))
statsOffunctionThe stats of an entity as they are right now: what its type starts with at this time of day, and on top of that its levels, the research of its owner, what it carries and the buffs on it. The result is shared and must not be changed. It stays the same object for as long as the stats stay the same.
SysteminterfaceSomething that runs every tick, or every few: moves units, lands attacks, works out what each team sees. When it runs is worked out once, from its phase, then from what it says it comes before and after.
SystemDeftypeA system, or what makes one for each world: for a system that keeps state of its own, which belongs to one game
talkfunctionThe steps of a conversation, for a sequence: each line is said and stays for as long as it lasts, then the next. Skipping a line (the skipLine command) goes on to the next at once: defineSequence( id: 'td.beforeTheBoss', steps: [...talk(DEFENDER, [ speaker: 'td.commander', text: 'bossComing' , ...])] )
UnitTypeDefinterfaceThe definition of a unit type: a unit, building or resource, with its stats, abilities, costs and what it does
UpgradeDefinterfaceResearch that improves a player's units for the rest of the game
Vec2interfaceA point on the ground plane. The simulation is 2D; height always comes from the terrain.
waitfunctionWaits seconds before the next step
waitForfunctionWaits for an event, the engine's ('constructionFinished') or a game's own, and for test to pass on what it says when there is one. Heard at the end of the tick, like listeners hear events
WorldclassThe simulation: the ground, entities, players, systems and rules of one game, stepped a tick at a time with step

Advanced ​

Classes ​

NameWhat
Areas betaThe areas of a world, and who is in them
BuildGrid betaPlacement grid. One cell per world unit, tracking where structures stand and where the ground is flat enough to build.
CellMemory betaWhat a team remembers of one layer's cells changed out of its sight (TeamMemory.cells), as the engine keeps it while the game runs: what the team last knew of each cell, a byte a cell of the map, and whether it remembers it, a bit a cell. Made at the map's size the first time a cell of the layer is to be remembered and never grown, so that a fire changing thousands of cells out of sight makes nothing as it goes. Read with rememberedCells; gone through in order of the cells. A save keeps it as the value by cell, as it always has (teamMemory)
Computers betaThe computer players of a world: who is seated, kept in the world and in a save (core.computers), so that a game loaded from a save has them back without the game's doing, and how the game reaches a seated brain while it plays (tell, pause, get)
Dialog betaWhat is said in a world
FogOfWar betaWhat each team sees and has seen of the map, by cell, and the bit each team has in Entity.seenBy
Hooks betaThe handlers of every hook of one world
Invalid betaThe error a checker throws for a value that is not what was wanted; its message says where and what
LocalSession betaA GameSession over a world in the same process: steps it from real time, takes a player's snapshots of it and sends their commands into it
Logger betaA logger: it takes entries of a level and above and sends them to its sinks and its parent
ModError betaThrows when a requirement is not met, or two mods change the same thing without one requiring the other
Objectives betaThe objectives of the players of a world. What changes in them is the engine's objectiveChanged event, which the player is shown, and which a game's listeners and sequences can wait for
PackError betaWhy a pack's file is not one, where it is first wrong
Path betaA line on the map, through points in order, with a width: a road, a patrol route, the way a wave walks. What the rules ask of one a game would otherwise write each time: how long it is, where along it something is, how far a point is from it, whether a point is on it
Player betaA player of a world: team, colour, race, resources, supply, researched upgrades and the state of modules, kept by world.player(id)
RemoteSession betaA player's seat at a world that runs elsewhere, over a transport (see connect). It rebuilds what the host sends as changes (Delta) into whole snapshots, keeping the objects of what did not change, says which ticks it got, and answers the screen's questions from those and its own copy of the map (ClientWorld). No debug access, and no checkpoints: those belong to a simulation in the page
Rng betaSmall seeded PRNG (mulberry32). The simulation never touches Math.random so runs are reproducible.
SaveError betaA save that is not loaded, and why: for a list of saves to say, in words of its own
Scheduler betaRuns the systems of a world in their order, each as often as it asks. The order is worked out whenever a system is added or taken out: by phase first, then by what each says it comes before or after, then in the order they were added. Measures each one while profiling is on, for the stats panel.
Score betaThe score of a world (world.score): counts what its stats are told of the world's events, takes the gauges and the timeline's points, and is what the game's code counts with, and reads, in the rules. What it keeps is the world's state (scoreData); nothing of it is kept here but what is made again from the game
Sequences betaThe sequences of a world
SessionHost betaRuns a world for players connected to it over transports: the server's job, done anywhere. It steps the world by the clock (start) or by hand (update), and at most sendRate times a second sends every player what changed in what they may know (Delta), as their LocalSession seat sees it: against the last tick they said they got, with the events they have not. Their commands come in as they arrive, and go in at the next tick
SessionRefused betaThe host said no, with why: to come back to a game that is over, or a player let go. Trying again does not help
SessionView betaA seat's side of a world: whose it is, and what they may know of it now. What the rules that tell a player of the world ask (replicateEvent, SnapshotField, an event of a game's own's replicate), and what a seat keeps for them (keep)
SidePaths betaThe navigations of the sides, to plan routes on
Terrain betaHeightfield ground. World space spans [0, width] x [0, depth] with one height sample per unit. Rendering, navigation and the simulation all read from this same data. Next to the height, every cell has a level: the ground floor is 0, each cliff up is one more. The height is what things stand on and where the eye sees a cliff, the level is what the rules go by: who sees whom and who shoots uphill. Ramps belong to the lower level until halfway up.
Timers betaThe timers of a world. Time is counted in ticks, which every machine counts the same, never with the clock: a timer goes off at the start of the tick it is due, after the players' commands and before anything else, in the order they are due and then the order they were set
UnlistedError betaWhat is thrown for a component or an event of its own that a game uses without listing it (Rules.components, Rules.events): no world finds it by its id, so a save, a snapshot or the index would lose it
WorkerSession betaA seat at a game run in a worker of this page (workerSession): a RemoteSession whose host is a message away, with what a game played in the page has besides: its pace held and stepped (speed, advance), a save of it (save), the checkpoint to start again from, what it says in its log, the debug tools' view, and where its time went
WorldMap betaWhat the map a world was made from says that is not an entity (World.map): its name, what the game kept with it, and its points and paths by name. A game can say which names there are: world.map.path<RoadPaths>('road')

Interfaces ​

NameWhat
AbilityAiView betaWhat a computer player sees as it weighs an ability, for the ability's ai to decide with (AbilityDef.ai)
AbilityGrant betaAn ability a unit was given for a while (grantAbility, swapAbility, a stolen one): seconds left, casts left (uses), and what it took the place of (replaced), back as it is gone
AbilityInfo betaAn ability of the player's own unit as the owner's screen is told of it: level, cooldown, charges and autocast
AbilityRecast betaHow an ability is cast again after it is cast (AbilityDef.recast): for window seconds the same button casts the recast, count times, each doing its effects (no wind-up, no channel, manaCost its own: none when left out); the cooldown waits for the last recast or the window's end (after) or starts at the first cast (first). The window and its recasts are the ability's state (AbilityState.recast), saved and told to its owner's button (AbilityInfo.recast)
AbilityState betaWhat a unit holds of one of its abilities: its level, cooldown, charges and autocast
AbilityTargetings betaThe names of a game's own ways of aiming an ability (defineTargeting), by declaration merging: declare module '@v12-engine/engine' { interface AbilityTargetings { wall: true } } makes target: 'wall' an ability's way of aiming
AbilityTextContext betaWhat the text of an ability is worked out from: the ability at a level, its caster, and the buffs it puts on
AbilityValue betaA number of an ability, worked out: its total, and what it is made of
AdvanceState betaWhat walking to a point and fighting on the way keeps (attackMove, attackPath, patrol)
AfterCast betaAn ability that went off
AfterDamage betaDamage that was dealt. The target may have died of it
AgentSave betaAn agent as it is right now, for a save: where it is, how fast it goes, where to, and how it behaves
AiHints betaWhat a game declares of a unit type for the computer player (UnitTypeDef.ai), where what the kit infers from the definition is wrong or cannot be known: its roles, words of the game's own about it, what it answers, how much it is worth hitting. A declared role is in place of the inferred ones, not beside them
Aiming betaWhat a unit aims as it goes, told to its owner (whose pointer aims it): an ability it holds to charge (held: the seconds held), or one it channels aimed (AbilityDef.channel.aimed, no held); where it was last aimed
AimView betaWhat the screen knows as the player aims (Targeting.indicator): the ability and its level, where the caster stands, where the pointer is on the ground, and for two points the first one, once it is given
AlongPath betaWhat an order along a path keeps (followPath, attackPath): the bend it goes to next, and which way. Set as it starts
Apart betaWhere two runs of a game came apart: the first tick they were looked at and differed, and what differed first
AreaDef betaA named part of the map that the rules watch: who walks into it and out of it (enteredArea, leftArea events), and who is in it now (world.areas). Units count, by where their middle is; buildings, scenery and units inside something do not. Given in Rules.areas
AreaState betaAn area of an ability on the ground the player is told of (Snapshot.areas): a zone for its life, or a delayed blast until it goes off (a telegraph), with its shape (EffectArea), its place and the seconds left
AssembledGame betaA game put together with its packs (assembleGame): every list the engine runs, the packs' in it, in one place. A pack's parts come before the game's own, so that one of the game's of the same id or name takes its place; what the game leaves out of the engine's (withoutCommands, withoutOrders, withoutHooks, withoutSystems) it leaves out of its packs' too
AssistLog betaWho of the heroes did a hero harm or good a moment ago, by id, and when (the game's time): hurt by its enemies, helped by its allies (a heal, a shield, a buff). What its assists are found from (heroAssists). Saved with it
AttackDef betaOne of the ways a unit attacks (UnitTypeDef.attacks): what it hits, how its blow lands. How hard, how fast and how far are stats: the unit's attackDamage, attackSpeed and attackRange, or stats of the game's own that the attack names (stats: a second weapon's)
AttackGroundState betaWhat attackGround keeps: whether it walked into range already
AttackModifier betaOne of what an attack of a unit sets off (an onHit of its abilities, items or buffs), as the rule of slots sees it (RuleSettings.combat.attackModifiers): where it comes from, its slot and priority
AttackState betaWhat attack keeps: whether it lost sight and walks to where it last saw its target, and whether it waits for room by it (WaitState)
AttackStats betaThe stats an attack reads how hard, how fast and how far it hits from (AttackDef.stats): the unit's attackDamage, attackSpeed and attackRange for what is left out
Available betaWhether a player may make a unit type or research an upgrade at all, before what it requires (see isAvailable): by default (available), what is of no race or of theirs (race). Set it otherwise for a game's own way: what a mode takes away, a roster that grows as a campaign goes, a unit only one player may have. What is not available is not on the player's buttons, and an order for it is refused; their screen is told where this decided otherwise
AvoidanceParams betaHow agents steer around each other: Detour's obstacle avoidance parameters, which weigh the velocities an agent samples each tick. The one that costs least wins: going the speed it wants (weightDesVel), going as it went (weightCurVel), passing on its preferred side (weightSide), and how soon it would hit something (weightToi, within horizTime seconds). velBias is how far the samples stray from the velocity it wants, 0..1
BasinShapeOptions betaWhat basinShape takes
BeforeBuff betaA buff about to be put on, or put on again. Change how long it lasts or how strong it is, or call it off (immunity)
BeforeCast betaAn ability about to go off, before it is paid for. Change what it costs, or call it off with a reason. Whether the caster has the mana was already checked against the ability's own cost before it wound up: a lower cost here does not let it cast with less than that
BeforeDamage betaDamage about to be dealt, before armor and shields. Change amount or type, or cancel()
BeforeDeath betaSomething is about to die. cancel() keeps it alive: it is then up to the handler what health it has
BeforeEffect betaAn effect of an ability about to reach one target (beforeEffect): who it is from, the effect, whom it reaches, where it went off from. Cancelled, it does not reach that one, and only that one: the rest of an area are reached, a missile passes it by (it is in its hit, so it is not asked again). Asked wherever any effect reaches any target: who an effect applies to (effectTargets, so a damage, heal, buff, knockback, pull, dispel, a game's own that asks), a missile's hit (with missile: a shield that eats it takes it out with removeMissile), what a game's own effect asks (mayReach). Not for an aura's buff, which is kept up rather than landed. Asked only where a handler is there: a game without one pays nothing
BeforeHeal betaHealth about to be given back. Change amount, or cancel()
BeforeOrder betaAn order about to be given to a unit. Set rejected to refuse it. A cast that goes off at once, in the middle of what the unit is doing (a potion drunk on the way, a leap), is asked here too, as the cast order it stands for
BeforePause betaA player asks for a pause (see askPause): how many they have left before this one (left), and how long it lasts at most (seconds, which can be changed); call it off with a reason
BeforeProduce betaSomething about to be made: a unit trained, an upgrade researched, a building upgraded, a hero brought back, a structure put down by a worker. Change what it costs and how long it takes, or call it off with a reason
BeforeSurrender betaA player is about to give up (see surrender): call it off with a reason, as a game that does not let them before a time
BoardState betaWhat board keeps: the tick it last set out for its transport
BrainDef betaWhat a computer player is made of, defined once (defineBrain) and seated as often as wanted (world.computers.seat). A game lists the brains it seats in Rules.brains, so that a save that remembers a seat by its brain's id finds it again when loaded
BuffEnd betaA buff that came off: it ran out (expired), or was taken off. Not called for the buffs of something that dies
BuffInstance betaA buff on a unit: which, from what level, how long is left and who put it there
BuildState betaWhat build keeps: whether it walked to the site already, and the building once it is put down
BurningInfo betaWhat the rules know of a thing that burns, or burnt and was put out (burningOf)
BurningOptions betaWhat the burning pack is made with (burningPack): what burns, how (the defaults of BurnsDef, under what a type says), whether fire passes from one thing to the next, what it does to those who stand by, and how much may burn
BurningSpread betaHow fire passes from a burning thing to what burns about it (BurningOptions.spread): how far, how likely, how much the wind decides, how often it tries. It passes to what stands (trees, buildings, a wall): a unit that burns is set alight by a call or an ability alone
BurnOptions betaHow mana is burnt (burnMana)
BurnsDef betaHow a thing burns (UnitTypeDef.burns, BurningOptions): for how long, what is left of it, whether its wood is kept, and what kind of burning it is. What a type does not say is the pack's, then what each field says it is when left out. Plain data: the editor writes it
BurnStart betaA thing about to catch fire (the burnStart hook): cancel() keeps it from catching; chance is a handler's to change (a wet grove, a building that does not burn while it is being built). Asked once a try
CallingDef betaOne calling a hero may have (HeroDef.callings): what it is called and what it plays as, with its picture and colour for the HUD
CameraOrder betaWhat the rules may say of a player's camera (cameraFor, the camera command). Any of them, together
CameraRect betaA part of the map, in cells: what a camera looks at, at most
Camp betaA group of creeps guarding a spot
CampAggro betaSomeone a camp is fighting, on its list (Camp.aggro)
CampaignProgress betaHow far a campaign has got, as plain data to keep between games: the mission it is at, the missions won and how long each took, the heroes carried out of the last one won, and the game's own state of it (data, of the type D the campaign says: choices made, gold saved up, the units that go on; what each mission won carries, merged in). It says which format it is in, so that what was kept is read again when the format changes
CampInfo betaA camp of creeps as the player knows it: where, how strong and whether it is cleared
CampMember betaTies a creep to the camp it guards
CampSettings betaCreeps' camps' rules (RuleSettings.camps)
Cancellable betaWhat a hook that may be stopped carries: cancel(reason?) stops it, cancelled says whether it was, and reason is what the player is told, for the hooks that tell them (canPlace, canHarvest, canCast, canTarget, requirement). The engine's own refusal comes in as cancelled already true, with its reason: cancelled = false lets it through
CanHarvest betaWhether a worker may gather from a resource: by default, a resource of a kind it gathers (harvester.ids). Refuse it for a game's own rule: a mine only its owner's cursed mine stands on, a tree of a sacred grove. Asked when it is told to, and of every resource it would go on to by itself
CanPlace betaWhether a structure may be placed. cancel(reason) refuses it, with what the player is told
CaptureOptions betaWhat a game turns capture points on with (capturePack)
CapturePoint betaA capture point given in code (capturePack's points); one placed on the map says the same with its fields
CaptureState betaA capture point as the world keeps it: where it is, how it is taken, whose it is, and who is taking it now (a team) and how far they have got (0 to 1)
Cargo betaWhat a transport carries, and whether it is near enough the land to let them out: kept for its side to see, the card's unload button reads it (see UnitTypeDef.transport)
CarriedItem betaSomething a unit carries
CastAim betaHow an ability was aimed, as its order carries it: the unit, the point, and for two points (vector) where it goes from the point (to)
CastAimed betaWhere an ability's effects go, from how it was aimed (Targeting.aim): their point, the unit they are for, and what they go off from when not the caster (EffectContext.origin)
CastChannel betaAn ability being channelled, kept in the cast order (CastState.channel)
CasterFacts betaWhat the caster brings to an ability's numbers: its stats now, its level as a hero, and the attack damage of its own
CastState betaWhat cast keeps in its order: the seconds of its wind-up left (from when it is in range), whether it walked to its point already, whether it is past turning back (isCommitted), what it channels, and whether the ability carries the caster off (a dash)
CellArea betaA part of the ground, in cells: the first cell, and how many across and down (what World.reshapeGround changed, as its TerrainPatch says)
CellLayerDef betaA layer of cells a game paints its maps with, for its rules to read: where the bushes are, what burns, where a lane runs. A value per cell (0 to 255, 0 being none), kept with the map (GameMap.cells), in the world's ground (Terrain.cells, read with terrain.cellAt), its saves and what each player is sent. The rules change it while the game runs with world.setCells: the players who see a cell are told at once, the others as it comes into their sight (TeamMemory.cells), so a change in the dark is not given away. The editor paints the layers a game lists (Rules.cellLayers), with the values it names
CellLayerValue betaA value a layer of cells is painted with (CellLayerDef.values): its number in the cells, what the editor calls it, and, of a layer of grass or bushes, the style it is to the rules
CellRect betaA rectangle of a map, in cells
ChosenDefaults betaThe default sets a game took, kept with its rules (Rules.defaults): the sets, what was chosen of each, and what they added to the rules by field (ids; packs by pack id), so that a choice made again takes it out first
CinematicChoice betaA player picked an answer of a choice of a cinematic on their screen (the engine's cinematicChoice event), as their screen said with the cinematicChoice command: the rules branch on it (waitFor(cinematicChoiceEvent, ...)), so that the story's branch is the same on every screen and in a replay
CinematicCue betaA cinematic the rules play, as the engine's cinematic event carries it to the screens
CinematicCueSent betaA cue the rules send to the cinematic playing on some screens (cueCinematic), as the engine's cinematicCued event carries it
CinematicEnded betaA cinematic the rules played is over on a player's screen (the engine's cinematicEnded event), as that player's screen said with the cinematic command
CinematicOptions betaHow a cinematic is played when a rule calls for it: who sees it, whether the game waits and whether it can be skipped
Cleave betaWhat a blow from up close does to the enemies around its target (AttackDef.cleave, BuffDef.cleave): a part of its damage, before their armor, for each of them within radius of the target and, where angle says, within a cone of that angle that opens from the attacker through the target (so ahead of the attacker, round and behind the target). Not the target itself, nor anyone the attack could not hit
CleaveNow betaA cleave as it is for one blow: a part of its damage, how far round the target, how wide a cone from the attacker through it (all round when none)
Collection betaDefinitions of one kind, by id: what a mod adds, changes or takes out
CombatState betaWhat a unit keeps of its fighting: cooldown, swing, targets and recovery
CommandDef betaCommands are everything a player can ask for: plain data, and the only way input reaches the simulation, which keeps the door open for replays, the AI and multiplayer. A command type is a CommandDef: the fields it carries, and what it does. What arrives is checked against the fields before anything happens, because on a server it is whatever anyone sends. The engine's own commands are defined the same way as a game module's (Rules.commands).
CommandRecorder betaA game being recorded as its commands
CommandReplay betaA game recorded as its start and its commands (recordGame's kind: 'commands'), to run again (playReplay)
Commands betaThe commands a world takes, by who defines them: the engine's (core), and each pack's, which adds its own by declaration merging, as the heroes pack does: ts declare module '@v12-engine/engine' { interface Commands { mypack: (typeof myPackCommands)[number] } }
Component betaComponents are typed state a game module or a mod keeps where the engine has no field for it: on an entity (entity.get(key)), for the whole world (world.state(key)) or for each player (player.state(key)). The engine's own parts are components too (core.: what a shop sells, an illusion's source), so that a game pays for what it uses and nothing else. A component is plain data, so that it goes into a save with the rest of the world (see saveWorld): numbers, text, lists and plain objects, with other entities by id. One kept otherwise while the game runs (a Map, bytes) says how it is saved and loaded (save, load), wherever it is held. T is what the component holds; S is what a player's snapshot carries of it (snapshot), T itself when it is sent as it is
ComputerPlayer betaA computer player: whatever plays a seat of a world from what it sees, through commands as a player does. The engine's own is a Brain of modules (defineBrain), the melee player among them; a game gives its own in code (defineComputer, listed in Rules.brains). think is asked about once a second (createComputerSystem); save and restore keep what it remembers through a save
ComputerSystem betaThe system a computer player plays from: it is asked to think about once a second (every, in seconds), each seat at another tick of it, to spread the work; it is named for its seat (ai-<player>), which a save keeps what it remembers by
ConcealmentOptions betaHiding places painted on a map, as a layer of cells (CellLayerDef): tall grass, a forest's edge. Who stands in one is seen by another team only from inside the same patch of it (the cells of the layer that touch, sides or corners), or from close by (reach). An attacker in one is seen by whom it hits for a moment, as anyone is (expose), and what detects the invisible (entity.detected) sees it too. A game turns it on, on as many layers as it likes: export const rules = ...myGame, packs: [concealmentPack( layer: 'bush' )] Everything that asks what a team sees (world.isVisibleTo) goes by it: what units pick to attack, the commands a player may give, the fog's memory, and each player's snapshots, so the computer player and the players over a wire see what the rules let them. Nothing is saved: it is worked out from the layer and where everyone stands
ConnectOptions betaWhat connect is given: the rules, navigation settings, maps, limits and a handler for the host's other messages
ConstructionState betaHow far a building under construction has got
Converted betaWhose a unit made someone else's for a while (convert with a duration) was, and for how much longer
CoreStats betaThe stats the engine reads: what a unit has of health, mana and their regeneration, how it moves, sees and attacks, and its armor and magic resist (the two kinds of damage there are besides true). Levels, items, buffs and research change them. A game adds stats of its own with Rules.stats, a pack its own (GamePack.stats: the MOBA stats of mobaStatsPack).
Corpse betaWhat is left of a unit that died, for a while (see corpses)
CorpseState betaA corpse as the player sees it: the id the unit had, of what type, where
CreateWorldOptions betaWhat a new world is made from: terrain, rules, players, seed and navigation
DamageOptions betaHow a blow is described to world.damage: its type, whether it is an attack or crit, its ability, tags and how it kills
Dash betaA rush to a spot: nothing stops it, and what it does happens where it ends
DashSight betaWhat everyone who sees a unit on a rush is told of it (EntityState.components['core.dashing']), for the screen to draw it by (a trail, the look of the effect that sent it: AbilityLook.effects)
DataCellLayer betaWhat a data.json (GameData.cellLayers, every map) or a map's definitions (GameMap.definitions, that map alone) says of one of the game's layers of cells: its values, by their number, each over the code's (DataCellLayerValue), or false to take one of the game's out. What the editor writes of a style made or changed there: { "grass": { "values": { "3": { "name": "Dry field", "foliage": { "flammable": 1 } } } } }
DataDefs betaA definition of each kind
DataField betaA field as the editor shows it: everything said
DataRules betaThe rules a data.json may say (campaign plan RC7), each over the game's: the supply's and the heroes' numbers, the resources and the upkeep's tiers whole (in place of Rules.resources, upkeep)
DataValues betaValues of a definition, as its own fields nest them: { stats: { health: 420 }, cost: { gold: 135 } }. What a data.json keeps of each definition, and what world.redefine is given. A list of things by place (a unit's attacks) is written as a list or as its places ({ attacks: { 0: { damagePoint: 0.5 } } }), each over the thing there. A list of things changed whole (an ability's effects, the units a race's start adds: a rows field) written as places goes over the things there, and written as a list is the list: those things, in that order, each in full
DayCycle betaHow the days go by. Hours run from 0 to 24
Death betaSomething dies. In death it still stands where it was; in afterDeath it is gone from the world
DeathCause betaWhat killed something that died of damage: the blow that did it
DebugAsk betaWhat the debug tools of a screen ask of a world elsewhere (SessionDebug), as said over the wire or to a worker
DefaultSet betaA default set of definitions: what the engine offers a game to take whole or in part (useDefaults)
Delayed betaSomething an ability does a while after it was cast
Delta betaA frame as what changed since another (base, a tick the player has), or all of it (base: null)
DenyOptions betaDenying, as in a MOBA (features-plan E): a player may tell their units to attack one of their own side's, which they never do by themselves, once it is low enough on health that the other side would soon have it: the last hit on it is theirs, not the enemy's. Hooks for Rules.hooks: hooks: [...denying( below: 0.5 )] Only an attack a player orders (CanAttack.ordered): units never pick their own side to attack, nor fight back at it
DestructiblesOptions betaWhat the destructibles pack is made with (destructiblesPack)
Detour betaA unit is about to go round units standing in its way (around), by point, which is longer ground units more than the straight way to the next corner of its path (see RuleSettings.movement.goesAround): change the point, or make it null to have it go straight through, asking them aside. Asked as it comes up to them: keep it cheap
Difference betaWhere two states differ (firstDifference)
DirectorOptions betaWhat a game's director takes (directorPack(options))
EditableField betaA field of a definition the editor may change, and how it shows it
EffectArea betaWhat an effect covers where it lands (effectArea): its shape, where it is laid and the way it faces, with its sizes worked out. A circle, a ring, a rectangle and a cross lie around the point it landed on; a cone, a line and an arc go off from where the effects do (the caster, or the context's origin)
EffectCommon betaWhat every effect may say, whatever its type: who of what it reaches it applies to (effectTargets)
EffectContext betaWhat an effect is run with: the world, the caster, the ability and its level, the target and where it landed
EffectFields betaThe fields the engine's effects read, by name: each type of effect has those of them it reads (EffectTypes, a Pick of these), and a game's own type picks of them or says its own
EffectLanded betaAn effect of an ability has reached one target (effectLanded), after its handler ran: what a game does with each one an ability reached (a passive's stack for each hit, an execute below a threshold). For every target the handler's effectTargets gave; asked only where a handler is there
EffectType betaA kind of effect: its type and what it does (defineEffect). The engine's are the game's from the start; a game lists its own in Rules.effects, and one of a type the engine has takes its place
EffectTypeOptions betaWhat a kind of effect says besides what it does (defineEffect): the fields it reads, each the name of one of the engine's (EffectFields) or said in full, its path the field's name in the effect ({ path: 'pull', kind: 'number' })
EffectTypes betaThe types of effect there are, each with the fields it reads: the engine's, and a game's own, added by declaration merging as it defines them (declare module '@v12-engine/engine' { interface EffectTypes { arrowStun: { ... } } }, with defineEffect)
EffectValueContext betaWhat an amount in code is asked with (EffectValue): the ability's level and what the caster brings now, and the effect as it lands, where it is landing. The tooltip asks it too (abilityValues), with no effect and no target
EngineMessages betaThe messages the engine sends, and their params. The client has words for each of these. A game can send keys of its own as well.
EntityRow betaAn entity as the list of all of them shows it
EntityState betaA unit, building, resource or other entity as the screen is told of it
ErrorSite betaThe part of the game that threw
EventKey betaA typed key for an event of a game's own, made with defineEvent
FallenHero betaSomething that has died, before it leaves the world: whether it stays (stays), out of the world, in the world's entities, to be brought back. No when nothing says so; the heroes pack says yes for a hero (heroesPack), and a handler after it (a higher priority) can say no for a game where heroes fall for good
FallenRecord betaA hero that fell a moment ago (fallenHeroes): what it was, at what levels, where and when
FireShown betaWhat burns, as everyone who sees it is told (onFire): the kind of burning, the tick it started and the tick it burns down at; out, the tick it was put out at, for one that burns no more (charred as far as it came: (out - since) / (ends - since)). A screen draws how far it has burnt from these and its own tick, with nothing sent as it goes
FogMessage betaThe fog of a team, as runs of the same value: 0s first, then 1s, then 0s... Few runs for a map of open fields
FogSettings betaHow the fog of war keeps what was seen (RuleSettings.fog)
FogState betaWhat the player's team sees of the map. The arrays are per cell, row by row
FoliageCell betaA cell of grass or bushes as the rules know it now (foliageAt)
FoliageConceal betaHow a layer of grass hides who stands in it (FoliageLayerOptions.conceal): what ConcealmentOptions says of it, the layer aside, and how tall a unit stands
FoliageFire betaHow fire goes in a game's grass and bushes (FoliageOptions.fire): how often it spreads, what the wind and the slope do to it, how much may burn at once, what it does to who stands in it
FoliageIgnite betaA cell of grass about to catch fire (the foliageIgnite hook): set alight (ignite, an ability) or lit by a cell burning beside it. cancel() keeps it from catching; chance is a handler's to change (a wet valley, a blessed grove)
FoliageLayerOptions betaOne layer of grass or bushes of the pack (foliagePack): its id, what its styles are where they say nothing, how it hides and who tramples it
FoliageOptions betaWhat the foliage pack is made with (foliagePack): a layer of grass or bushes with its settings, more layers beside it, and how fire goes in them all
FoliageStyleDef betaWhat a style of grass or bushes is to the rules: a value of a layer's cells (CellLayerValue.foliage), said in the game's code, in its data.json (GameData.cellLayers, every map) or in a map (GameMap.definitions, that map alone), each over the one before field by field. Plain data, every field: the editor writes it. What a value does not say is the layer's (FoliageLayerOptions.style), then what each field says it is when left out
FollowState betaWhat follow keeps: the tick it last set out after its target
Form betaA hero in one of its forms (form, takeForm): what it was, what turns it back, what it learns in the form and what of its own it put away meanwhile
Formation betaUnits ordered to a point together have their places in a formation worked out (FormationDef, formationPoints): change any in points, by the unit's id, or add or remove some. units are those that walk, or those that fly: each is laid out apart
FormationContext betaWhat a formation lays units out with: the group, where it is sent, the way there, and the room each unit takes. Points are in the world; right and forward are the formation's own axes, each a unit long, for a shape that is drawn facing the way of travel: a place right * x + forward * z from the target
FormationDef betaHow units ordered to a point together are laid out around it (OrderInit.formation, RuleSettings.movement.formation): a shape, which the engine fits the units to, or the places themselves. The engine's own are rows, circle, square and none (coreFormations); a game adds its own (Rules.formations), and changes any laid out with the formation hook
FormationUnit betaA unit as a preview of a formation knows it: where it stands and how big it is
FormOptions betaHow a hero takes a form (takeForm): what it learns there and at what levels, what of its own it keeps, for how long, what turns it back. learns, levels and keeps are read as a HeroForm's; with learns left out, what the hero's type says of the form (HeroDef.forms) is taken, or else what the form's own type learns
FormSent betaWhat every player who sees a hero in a form is told of it (form)
Frame betaWhat a player knows at a tick: the snapshot (without its events, which go their own way), the fog, the camps, the team
FramesReplay betaA game recorded as the frames a watcher of it was sent: only what player saw, and what it was sent of it
FriendlyFireOptions betaWhat the friendly fire pack is made with (friendlyFirePack)
FromMap betaA world made from a map, everything the map places in it there and every race's start done: what a pack or the game starts of its own from the map's data, as the map objectives pack gives the objectives a map gives at the start (mapObjectives). Not for a world loaded from a save, which has them already
FromMapCamp betaA camp that was placed on a map, and the camp it has become
FromMapObject betaWhat was placed on a map, and the entity it has become
FromMapRegion betaA region of a map, and the area it has become
FxCue betaAn effect the rules play on the screens, as the engine's effect event carries it (world.fx)
FxOptions betaHow the rules play an effect (world.fx)
GainedStats betaWhat a unit gained for good (gainStats): the stats added and the parts, everything it gained added up, and how many times it gained
GameBuilder betaThe game a mod is applied to, as it stands after the mods before it
GameFileDef betaA file of the game's own data, and how it is read
GameIdSources betaWhat the game's files say, as the editor reads them: every part is optional, and what is not the shape described is passed over (a file written by hand may be wrong; it is the game's loader that says so)
GameKindListing betaA kind of game a server lets players make a room of, as its list says it (GET /games's kinds): what to ask POST /games for ({ kind: id, settings }), what it is called, and the settings it offers (a map, among them)
GameListing betaA game of a server, as its list says it (GET /games): its room (what to connect to, ws://host:port/<room>; none for a server of one game), the game and mode, where it is at, its seats taken and free, who watches, and its settings (the map, among them, where the mode offers one)
GameMeasure betaA number of a map a game measures of its own (MapEditorDef.measure): the length of the road, for a tower defense
GamePack betaA part of the rules a game opts into (Rules.packs): commands, orders, systems, hooks and the state it keeps, which a game without it pays nothing for. The engine's heroes, camps and shops are one (heroesPack). A game's own lists come after a pack's, so a command, an order, a hook or a system of the same id or name takes its place; withoutCommands, withoutOrders, withoutSystems and withoutHooks take one of a pack's out as they do the engine's
GameResult betaHow a game on a server ended: who won, and each seat's outcome
GameSession betaA seat in a game: the only thing a client needs to play
GatheringInfo betaWhat a worker's owner and their allies are told of what it carries (gathering's snapshot)
GeneratedMap betaA map a generator made (generateMap): the map, what is wrong with it, and the seed it came out of
GeneratedWith betaHow a map was made, kept with it (GameMap.generated): the same again from the same
GeneratorContext betaWhat a pass works with (GeneratorPass.run): the map as the passes before left it, the seed's numbers, noise that repeats across the map, the symmetry, and what to put down with
GeneratorMark betaWhat was put down by a pass, for the passes after to avoid or use (GeneratorContext.placed)
GeneratorOptions betaWhat a map is made with (generateMap): the seed, the size, the players, the symmetry, and the game's own parameters (MapGenerator.params), each at its default where not said
GeneratorParamDef betaA parameter of a generator (MapGenerator.params): a slider, a switch or a choice in the editor's dialog and the page's form, and a value in code (GeneratorOptions.params)
GeneratorPass betaA pass of a generator: one thing done to the map, in its turn (MapGenerator.passes)
GrantOptions betaOptions of a change of a unit's abilities (grantAbility, swapAbility): its level, for how long or how many casts, where on the card
GrantSent betaWhat a unit's owner is told of its abilities given for a while (AbilityGrant): which, for how long, how many casts, and in place of which
GroundBase betaThe ground a world started on, from a map: kept with the world (World.ground), not in its save
GroundChanges betaThe ground as a map the game has, and the cells of it that changed: in a save and in a welcome
GroundItem betaAn item lying on the ground
GroundItemState betaAn item lying on the ground
GroundObjectState betaWhat a ground object keeps of what it does (UnitTypeDef.trigger, use): seconds before it is armed, times it went off or was used, and who is within its reach now (each sets it off as it comes, not again while it stays)
GroundTrigger betaA ground object's trap, mine or pickup (UnitTypeDef.trigger), in a game with the ground objects pack
GroundUse betaSomething on the ground others use (UnitTypeDef.use), in a game with the ground objects pack
HarvesterState betaWhat a worker keeps of its gathering: what it carries and where it gathered
HarvestGathering betaAt work (HarvestState): the seconds of it left, and what it works (working) or is inside of (a mine's, inside)
HarvestKept betaWhat harvesting keeps through every step of it, and from one load to the next: the kind it gathers and where it last did, the resource it holds a place at (claimed, a tree, a place round a building on a resource), the building it gathers at (inPlace), the place it walks to and the one it waits at, whether it walked to its place already, the seconds to its next swing (chop: the rhythm goes on from one load to the next), the hall it brings its loads to
HarvestToDropOff betaBringing the load home (HarvestState): whether it is its last, the resource used up
HarvestToResource betaWalking to its resource, and to its place at it (HarvestState)
HeroDef betaWhat makes a unit a hero: it gains levels, grows with them and learns abilities
HeroesPack betaThe heroes pack, as heroesPack makes it: its rules beside its parts
HeroForm betaWhat a hero is in one of its forms (HeroDef.forms): the abilities it learns there by id (learns), the level each starts at (levels: that of one of the hero's own, or a number), and what of its own the form leaves in place (keeps). Everything else of its own is put away until it turns back ts // Nidalee's cougar: Takedown at Rocket Grab's level and Pounce at Void Swarm's, Swipe learned in the form; the // aspect (it made the form) and the ultimate stay as they are forms: { cougar: { learns: ['takedown', 'pounce', 'swipe'], levels: { takedown: 'rocketGrab', pounce: 'voidSwarm' }, keeps: ['heartbreaker'] } } The shorter shape, a list alone with neither levels nor keeps, is read by slot: the first at the level of the first the hero learns as itself, the second of the second, and so on (Q is Q), a point put into one in the form going to the hero's own at that slot too
HeroItem betaAn item a hero carries, as it is carried over: what it is, its uses left, the game's own state of it
HeroRecord betaA hero as plain data, to take from one world into another: a campaign's hero going on to the next mission with all it has earned. Its level and experience, the points it has not spent, the abilities it learned and how far, and its items slot by slot. Not where it is or how hurt: the next mission puts it where it starts, whole
HeroSent betaWhat a player is told of a hero (heroState): its level, to everyone who sees it; its experience to its side, and to everyone where the rules share it (RuleSettings.hud.shareXp); the points it has to spend and what it can learn, to its side
HeroSettings betaThe numbers and formulas of heroes, the heroes pack's (heroesPack(rules)): how many heroes a player may have, how much experience a level takes, what bringing one back costs. The classic RTS numbers for those left out
HeroState betaWhat a hero has earned: its level, its experience, the points it has to put into abilities (heroState)
HeroSummary betaA hero of the player, for the row of portraits. Fallen ones are in here too
HeroTally betaA hero's kills, deaths and assists, and its kills since it last died (streak): its tally, sent to everyone who sees it, for a scoreboard
HoldDef betaHow an ability is held to charge and let go (AbilityDef.hold), in a game with the holds pack: Varus's Piercing Arrow, Xerath's Arcanopulse, Pyke's Bone Skewer, Viego's Spectral Maw
HoldState betaWhat hold keeps in its order: what it is fighting, 0 for nothing
HookEvents betaThe map of hooks the engine runs, by name, to the event each one hands its handlers
HookKey betaA hook of a game's own, made with defineHookType: a moment of its rules others can take part in, the way the engine's hooks are for its own
HostTiming betaWhere a host's time went over a while: see SessionHost.takeTiming
HotContext betaWhat a module's import.meta.hot gives for hot reload, as Vite has it: what loads the page again
HudSharing betaWhat of a unit the players who see it are told beyond what they always are (RuleSettings.hud), each for the plates over it to show. What is not shared never reaches a player, so no screen can show it. A game's own data goes in a component with replicate (the client's hudData reads it)
Idle betaA unit with nothing to do, this tick: no orders. Set handled and do what it does instead of what idle units do (fight back, go for enemies that come close, which is only for those that fight): a healer that goes to the wounded, a worker that goes back to work. Asked often: keep it cheap
InspectedSection betaA part of what is inspected, as the inspector shows it
Inspection betaSomething as the simulation has it, for the inspector
InventoryInfo betaWhat everyone who sees a unit is told of its items (inventorySlots' snapshot): what it carries; its owner and their allies the slots too, for commands
ItemInstance betaAn item someone carries
ItemOrderState betaWhat the item orders keep: whether they walked to it already
ItemRefill betaHow an item's charges come back (ItemDef.refill): all of them at a shop of the carrier's side or an ally's (shop), and one every every seconds. An item that refills is kept at no charges, waiting for them
ItemSettings betaWhat a hero may carry, and how what it carries works (RuleSettings.items)
Lane betaA lane, as the rules read it: the path, and its two ends, each with the spawner of the side whose waves start there
LaneEnd betaOne end of a lane: the spawner there, and whose
LanesOptions betaWhat a game's lanes do (lanesPack). Every part has the engine's own when left out
LaneWave betaA wave about to come out of a spawner: which of that spawner's it is (1 and up), the lane and the end it walks from, and whose. What LanesOptions.wave makes the units of
LastHitOptions betaWhat a game counts of last hits and denies (lastHitsPack)
LearnableInfo betaAn ability a hero can put points into
Likeness betaWhose picture an entity wears: the type it is drawn as, and the owner whose colour it is drawn in. Nothing in the rules goes by it
LineDef betaSomething someone says: a commander between waves, a hero in a cutscene. The rules say a line is said, so that every player hears it at the same moment and a save knows where a conversation was; the view shows it (a box with a portrait, subtitles) and plays its voice. Who the speaker is on the screen, their name and portrait, is the view's (GameView.cinematics.speakers)
ListenerDef betaHow a game reacts to an event: the engine's ('entityDied', 'enteredArea') or one of its own. Listeners are given in Rules.listeners, and the world subscribes them when it is made, in their order: a new game, a loaded save and every player's machine get the same ones. They run at the end of the tick, once everything in it is settled, and may change the world: what happens then is part of that tick. One with the id of another takes its place, in a mod
LoadState betaWhat load keeps: the tick it last set out for its passenger, and where it was then
LoadWorldOptions betaThe engine's hook handlers without the ones the module does without, then the module's own
LobbySetting betaA setting of a lobby or of a seat (ServerHooks.settings, seatSettings)
LogEntry betaOne thing said. Plain data: it crosses a session, a worker and a file as it is
LoggedEvent betaSomething that happened in the rules, as the event log keeps it
LoggerOptions betaThe options a Logger is made with
LogRing betaThe last entries, kept: what a console panel shows, and what goes with a report of a crash
LoopbackEnd betaAn end of a loopback, which counts what it sends: for a budget of bandwidth
LoopbackOptions betaA connection inside the page, standing in for a network (loopback)
MadeBy betaWho put a unit down, for one made by a spawn of the ground objects pack: in whose name what it does goes off (by), by which ability and at what level, and the others put down with it (group, in order: a portal's other end)
MakeWay betaAn ally standing in a unit's way is asked to step aside, to point (see RuleSettings.movement.makesWay, lookAhead): change where it goes, or make it null to leave it standing. mover is on its way, heading the way of direction
MapCamera betaA view of the map saved under a name: what the camera looks at, from how far, which way and how steeply. For cinematics (cut.camera('gate')), a player's first view, and code (client.lookFrom('gate')). The screen's
MapCamp betaCreeps that guard a spot
MapCheckContext betaWhat a check of a map is handed besides the map and the game: the terrain the map makes (made once, as the first check asks), and whether a point is on the map
MapDay betaThe time of day of a map, in a game with days (Rules.day). The rules': what is done at night is done by it
MapDetail betaHow much detail things are drawn with by their distance on a map (MapEnvironment.detail), over the game's (GameView.world.detail): a forest map drawn lighter. The screen's: the rules never see it
MapDetailLevel betaOne way a thing is drawn, and when, as a map says it (MapDetail.models, MapDoodad.detail): the client's DetailLevel without what only code can say. A level applies when any of its conditions holds; of a thing's levels the last that applies is drawn, the first being its full self
MapDoodad betaScenery: a model on the map that is no entity of the rules, with no health, owner or place in a snapshot. A rock, a fence, a ruined arch, free to lean, float and stretch. What it keeps off the cells under it (blocks) the terrain has, for the paths of units and for building
MapDoodadDetail betaHow one doodad is drawn by distance (MapDoodad.detail)
MapDoodadLight betaThe light a doodad carries (MapDoodad.light), over the one its kind of doodad gives: an open interface the client fills in with what a light of the map is (MapLightSource, less where it stands and its name)
MapEditorDef betaWhat a game brings to the map editor, beyond its units: the fields of its own, what can be scattered, its players, and what it takes for a map to be one of its maps. Each that is decided from something can be given as a function
MapEraseKind betaA kind of thing the erase brush can be set to take (MapEditorDef.erase)
MapFieldDef betaA field of a game's own on what is placed on a map: the wave a spawner sends, whether a gate starts open, what a guard does. The editor shows it in the inspector for what it is a field of, and keeps what it was set to with the object (MapObject.data). The engine does nothing with it: the mapObject hook hands it to the game as the world is made, which is where the game says what it means. Given in Rules.editor.fields
MapFile betaA map the way it is written to a file: JSON, with the layers packed
MapForce betaA team of a map, with a name, and what its players share: for the game to read (world.map.forces)
MapGenerator betaA game's generator (Rules.generator): its parameters, as the dialog and the page show them, and its passes in order. generateMap runs it
MapInfo betaWhat the map a world was made from says that is not an entity, as it is kept in the world: plain data, for a save
MapItemTable betaWhat something drops when it dies (item tables, as classic map editors have them): one item by weight, or none
MapItemTableEntry betaA line of an item table (MapItemTable.items): an item by id, or any item of a level, a class, or both (campaign plan GP3: { level: 3, weight: 2 }), its weight shared among those of the game that match
MapMerge betaA merge of two versions of a map from the one they came from
MapObject betaSomething that stands on the map when the game begins: a unit, a building, a tree, a mine
MapObjective betaAn objective a map gives, as it keeps it: an objective (ObjectiveDef: its id, its words, whether the mission needs it, more about it) and when it is given
MapObjectOrder betaAn order a unit of the map is given as the game begins (MapObject.orders): to go somewhere (move), to walk to and fro fighting what it meets (patrol), to stand somewhere and fight what comes near, coming back after (guard), to stand its ground (hold); to a point, or along a path of the map by its name, bend after bend (a patrol along one walks it back and forth)
MapPaletteGroup betaA group of the palette (MapEditorDef.palette)
MapPath betaA named line of the map, through points in order, with a width: world.map.path('road') (see Path)
MapPlayer betaA seat for a player of the map: the player's id, name, team and colour with the options for what they start with
MapPlayerInfo betaWhat the map says of a player beyond what the world has of them: who plays them, and the game's own fields
MapPoint betaA named spot of the map, facing a way: world.map.point('spawn')
MapProblem betaSomething wrong with a map, as a game sees it: said before the map is played
MapRandomGroup betaA group a placed thing is drawn from when the game starts (random groups, as classic map editors have them): one of these types by weight, or any creep of a level ("a level 3 creep")
MapRefUse betaOne place a thing is named: what names it, where, and what on the map that is
MapRegion betaA named part of the map, which becomes an area of the world made from it (AreaDef): the rules hear who walks in and out (enteredArea, leftArea) and ask who is in it (world.areas), by its name
MapRegionCinematic betaThe cinematic a region of the map plays (MapRegion.cinematic): which, by its id (GameView.cinematics.defs), and who plays it: the engine, as a unit of a player first walks in ('enter', when left out), or the game's own code ('code')
MapReport betaWhat a map is like to play on, measured (see measureMap)
MapResize betaHow a map is being grown or cut (resizeMap), for what moves along with it: where a place goes, whether it is still on the map, and a shape moved and cut to the map
MapRule betaA check of a map (checkMap): what it says is wrong (say), each problem with the rule it breaks (MapProblem.rule), which a map or a game silences. id names the check: the engine's by what they look at (objects, walking), a game's its own
MapSides betaHow many cells a map gains on each side, or loses where it is less than 0 (see resizeMap)
MapThing betaA thing of a kind of a game's own on a map: something the game's editor puts down for its rules to read (a spawner, a waypoint, ground kept clear), where the engine's own kinds (objects, camps, regions, points, paths, doodads) do not say it. Kept with the map under the kind's name (GameMap.data[kind], a list of them), which the engine never looks inside: the rules read them (world.map.things(kind), mapThings)
MapTile betaA ground of a map's own, to paint with as a game's tiles are (MapEnvironment.tiles): to the rules, paint by its id. An open interface: the client adds its look (its picture, colour, pattern)
MapWorldOptions betaWhat a world made from a map is made from: the map, the rules, and what the lobby chose for the players
MarketRate betaOne trade of a marketplace (presetMarket): amount of sell for rate of buy for each one sold
Message betaWhat the simulation tells a player, like "Not enough gold", is a key and some params, never words. The words are the business of the player's screen: the client has English for the engine's keys, and a game's view gives its own (GameView.hud.messages) or other words for the engine's. That keeps the engine free of any one language, and lets a game say "build more farms" where the engine only knows about supply. Params that name something are ids (a resource, a unit type, an upgrade), for the screen to find the name of.
MineInfo betaA deposit of the game's money, as the map shows it (GameSession.mines)
Missile betaWhat an ability sent on its way: it travels in a line and does something to everything it passes through
MissileState betaWhat an ability sent on its way, like a tornado
MissionResult betaHow a mission of a campaign went, the last time it was won
MissionRule betaA rule of a mission, as the map keeps it and the mission rules pack runs it: when a condition of the computer players' language holds, do its actions. Fires as the condition turns true; once the first time only, ever; with every, again while it holds, at most so often. Asked as a player: whose the units of of: 'mine' are, whose objectives { objective } reads; the first player a person plays when left out
MissionRuleState betaWhat a mission rule is now, for the report and the tests: whether its condition held at the last check, how often it fired and when it last did
MobaStatsOptions betaWhat the MOBA stats pack is made with (mobaStatsPack)
ModDef betaA mod: changes to a game, made on top of it instead of on a copy of it. A new hero, other numbers, a rule of its own. composeGame applies mods to a game in the order they need each other, and tells about two mods that change the same thing without one knowing of the other, before anyone plays.
Morphed betaSomething that has just become another type where it stands (morph): a building upgraded, a unit transformed. Its new type's parts are set (stats, abilities, slots, and every Component.onSpawn of a part it did not have yet): what a pack gives it of its own for the type it is now, as the heroes pack makes a hero of what became a hero's type and stocks what became a shop. Run before the entityMorphed event
MorphOptions betaHow morph goes about it where a building's upgrade does not: what a form needs (takeForm)
Moved betaSomeone moved by a dash or a knockback of the moves pack while it rushes (dashing): in whose name (by), by which effect, after whom (chase), whom it met already (met) and the ground it set off from (floor), above which is a wall to it
MovementState betaWhat a unit keeps of its moving: speed, goal, status and the path's bookkeeping
MoveOptions betaOptions for a move order given by code: arrival range, group, facing to end on and whether it is a step aside
NavDebugGeometry betaA mesh of the navigation, for drawing: triangles and lines of it
Navigation betaPathfinding and local avoidance. The simulation only talks to this interface, so the backing implementation can be replaced without touching game logic.
NavigationBuild betaWhat a navigation is built from: the ground's (or the water's) triangles, and how to cut them. Plain data, sent to a worker as it is
NavigationBuildConfig betaHow Recast is told to cut the ground: what the tile cache is generated with
NavigationBuilds betaWho builds a world's navigations and where what was built is kept (CreateWorldOptions.navigation.builds): this thread when the builder is left out (a worker of the page's own: navigationWorker), the process's memory when the cache is, cache: null for nowhere (every world built anew). What an app hands every world it makes (launch, startApp, GameServer.start)
NavigationCache betaWhere what was built is kept, by a hash of what it was built from: in memory when nothing else is said (memoryNavigationCache). A game keeps it elsewhere with one of its own (the browser's storage, a file)
NavigationPort betaWhere a worker hears and answers: a page's worker scope, or Node's parentPort
NavigationSpeeds betaEach cell's speed on the ground, row by row (NavigationBuild.speeds)
NavigationWorkerLike betaWhat a worker is, as far as building goes: a page's Worker, or Node's worker_threads one
NewMapOptions betaThe options createMap makes a map with
ObjectiveDef betaWhat a player is set to do, in a mission: survive ten waves, keep the hero alive, build a frost tower
ObjectiveState betaAn objective of a player, as it stands. Plain data: it is kept in the player's state, and sent to their screen
Order betaAn order a unit carries out or has queued. State is what its behaviour keeps in it (OrderBehavior<State>): empty as the order is given, so every field of it is one that may not be there yet
OrderInits betaWhat each order type is given (Order.init), by type (design review E14): the engine's, and a game's own added by declaration merging, as OrderStates is: ts declare module '@v12-engine/engine' { interface OrderInits { 'mygame.dig': { point?: Vec2 } } } Every field may be missing from what a command sends, which comes from a player: the behaviour's accepts checks what it needs
OrderParams betaWhat an order can be given, every order's field in one: for what reads an order of any type (the queue, a save, a screen's waypoints). An order of a type is given its own of them (OrderInits)
OrderStates betaWhat each order type keeps in its orders (Order.state), by type: the engine's, and a game's own added to it by declaration merging, for registry.order(type) to say what its behaviour keeps: ts declare module '@v12-engine/engine' { interface OrderStates { 'mygame.dig': { dug?: number } } }
OwnEntityState betaThe part of an entity only its owner and their allies get to know
PackFile betaA pack of content as its file has it (packs/<id>/pack.json): plain data, checked against the pack's schema (@v12-engine/engine/schemas/pack.schema.json) as it is read. Its definitions are added to the game's, or put in the place of those of the same id; then its data is laid over the whole as a data.json is (layData), and its settings over the game's
PackMod betaA mod made of a pack (packFromJson): the mod, and the pack's file it was made of
PatchCellsOptions betaHow patchCells finds a patch
PathProfile betaThe bed a path carves, as a road or a river: its middle as smooth along it as a road is (the land along it averaged over four cells each way), lowered by depth, level across width, eased into the land over banks cells each side; painted with ground, and with water in it for a river
PatrolState betaWhat patrol keeps: its two ends and the one it goes to (set as it starts), and whether it found one out of reach
Placed betaAnything with a place and a size: an entity, or what a client knows of one
PlateauSpec betaHigh ground: a roughly round area lifted by whole levels, with cliffs all around except where a ramp leads up
PlayerFacts betaWhat there is to know about a player, for whether they can make something
PlayerInit betaWhat a Player is made from: its id, name, team, colour, starting resources and role
PlayerRow betaA player as the list shows it
PlayerState betaA player as the screen is told of them: name, team, colour, resources and their standing to the player it is for
PoolDef betaA resource of a unit's own beside mana (UnitTypeDef.pools), in a game with the resources pack (resourcesPack): Akali's energy (regen), Tryndamere's fury (gained by attacks, decay after idle), Rumble's heat (gained by casts, overheating at a threshold), Yasuo's flow (moving), Jhin's ammo (reload)
PoolThreshold betaA buff a unit gets as one of its pools reaches at (PoolDef.thresholds): kept on while it holds that much or more (kept: Rumble's danger zone), or put on once as it gets there; one that empties holds the pool still while it lasts, and empties it as it ends (Rumble's overheat)
PrefabArea betaAn area the rules watch, of a prefab: its id gets the spawn's own suffix, so that two of one prefab are two areas *
PrefabCamp betaA camp of creeps of a prefab *
PrefabContents betaWhat a prefab is made of, around its middle (0, 0) *
PrefabDef betaA prefab of a game's own: what world.spawnPrefab puts down as one. Its contents as data, or made for the place and the world (a camp the stronger the farther from the starts)
PrefabInside betaA prefab inside a prefab: spawned with it, its middle where it says from the outer one's, turned and sized with it *
PrefabObject betaA unit or a building of a prefab, where it stands around the prefab's middle *
PresetGeneratorOptions betaWhat the engine's preset takes from a game: what its scenery is
PresetMarketOptions betaWhat presetMarket is given: the trades, and the seconds between two of each (none when left out)
PresetScoreOptions betaWhat presetScore is given: which of the engine's stats (only, or all but without), stats of the game's own after them, and the score's other rules
ProductionInfo betaWhat a building's owner and their allies are told of what it makes (productionQueue's snapshot): its queue and where what comes out goes; and everyone who sees it, how far it is in turning into another type
ProductionItem betaOne thing a building makes: a unit, an upgrade, a revive or a morph
ProductionState betaWhat a building makes: the queue of what it is making, and its rally point
Projectile betaA shot in flight to a target or a point; it deals its damage when it lands (world.projectiles)
ProjectileState betaA projectile in flight as the screen is told of it: where it is, who shot it and what kind of damage it carries
ProxyOrigin betaUnits of the caster's an effect goes off from (EffectCommon.origin): proxies, a shadow, a ball, a sphere, a soldier. The caster's are those it put down (madeBy, a spawn of the ground objects pack), or, of one nobody says put down, those of its owner. In code, a game's effect runs its effects from a unit of its own choice (EffectContext.origin, runEffects), or asks which a proxy origin picks (proxiesOf)
Purchase betaA purchase that may still be undone (undoBuy), kept on the buyer (purchases) for ShopSettings.undo seconds while it stands at the shop and has not used the item
PurchaseInfo betaA purchase of a hero's that its player may still undo (purchases, undoBuy), with the seconds left to
QueuedUnit betaA unit in a queue, not made yet, as the supply it will take is asked of it (RuleSettings.supply.of)
QueueItemState betaAn item in a building's production queue, as the screen is told of it
RallyPoint betaWhere the units a building makes go: a point, or an entity they follow
RampSpec betaA way up a plateau
ReadyFacts betaWhat there is to know about an ability and its user, for whether it can be used right now
RecastNavigationOptions betaThe options a Recast navigation is made with: who builds it, the agents' size and slope limits, and the room for agents, obstacles and path steps
RecastWindow betaAn ability's window to be cast again (AbilityState.recast, AbilityDef.recast)
RecordOptions betaHow a game is recorded (recordGame): whose side it is seen from when played back, and which kind of replay. commands (the default) keeps the start and what the players told it, and plays it back by running it again: a few kilobytes, every side of it, and the same to the last bit while the rules are (determinism D4). frames keeps what a watcher from player's side was sent, sendRate times a second: for a game whose rules cannot be run again
Rect betaAxis aligned rectangle on the ground plane, described by its center and half sizes.
RemainsOptions betaWhat the remains of a game are made of (remainsPack)
RemainsSpec betaWhat rubble or a pile is to be, as a game says it for a death: the unit type it is, and how much of its resource it holds (the type's resource.amount when left out)
RepairState betaWhat repair keeps: whether it walked to it already, what of the cost it still owes, the seconds to its next swing
ReplayPlayer betaA replay playing (playReplay): its session, and its clock
ReplayRecorder betaA game being recorded
ReplicatedEvent betaHow an event of the world is told to a player (replicateEvent): what the seat hears it as, and what it says of it to the player, if anything
ResolvedScore betaThe score's rules, its stats made: what the registry keeps (registry.score)
ResourceDef betaSomething players have amounts of and pay with, like gold, lumber or crystals. A game module lists its own
ResourcesPassOptions betaWhat resourcesPass takes: where the game's mines go, and what the game puts there
ResourceState betaWhat is left of a deposit and how many are at it
RespawnOptions betaWhat a game's heroes do once fallen (respawnPack)
Reveal betaA spot a team sees for a while, with nothing standing there
RevealState betaA spot revealed to a team for a while, as the screen is told of it
Riding betaOne unit riding another (attach): its host, who cast it (caster), the ability and level, the seconds left (until it is let go otherwise when left out), the cooldown put off until it is let go (held) and what happens then (onEnd)
RoadsPassOptions betaWhat roadsPass takes
RuleSettings betaThe numbers and formulas of a kind of game that are not about any one unit: the supply cap, what selling gives back, how a hit is mitigated. In groups, each about one thing: supply, production, the economy, combat, movement, the fog, talk, the camps, heroes, what the HUD is told, the score. A game module changes the ones it wants (Rules.settings: any of a group, the rest of it the engine's) and a pack the ones it brings (GamePack.settings). Read them from world.settings in the simulation, and from session.registry.settings on a player's screen.
RulesProblem betaWhat of a game's rules does not fit together (checkRules): an id that names nothing (an ability's buff, a unit's trains, an upgrade's requires, a shop's items), an effect of a type nobody handles, requirements that wait on each other, and, as warnings, what nothing makes, abilities nothing has, and numbers that do not do what they are there for (an arc or a bounce not of a missile, or of nothing, charges of none). Ids are text to the compiler, so a slip in one shows only when the game runs into it ("Unknown unit type") or never (a button that is not there)
RunesOptions betaWhat the runes pack is made with (runesPack)
SaidLine betaA line as it is said: what the engine's lineSaid event carries, and what goes to the screen
SavedRefs betaThe ids of the game's definitions a component's saved value names, by kind (Component.refs)
SaveHeader betaWhat of a save says whether a game reads it, the rest of it apart: kept beside a save, for a list of them to ask with
SaveRules betaHow a game's saves outlive its patches (Rules.saves). Any change to a game's rules changes which rules they are exactly (registry.hash), and most changes are nothing to a save: a number tuned, a bug fixed. A game that declares this loads such a save as it is. A change a save cannot be read through (a unit type renamed, a component of another shape) takes a new version, and a step that brings the saves made before up to it
SaveWorldOptions betaHow a world is saved (saveWorld)
ScaledStatChange betaA change that grows with the level of the ability it comes from
ScatterPassOptions betaWhat scatterPass takes: how much of what, where
ScoreCount betaWhat a stat is told of an event, for a player: how much (amount, 1 when left out) and what of (type: a unit type, an ability, anything the stat is split by, ScoreStatDef.byType)
ScoreData betaWhat the score keeps in the world (world.state(scoreData)), plain data for a save: by stat, by player, the number; by stat, player and type, the numbers of a stat kept byType; the ticks of the timeline's points, and by stat and player, the number at each
ScoreLineState betaThe timeline a player is told (Snapshot.scoreLine): the ticks of its points, and by stat and player the number at each, for the players they may see
ScoreSettings betaWhat a game counts of its players (RuleSettings.score): the stats, how often the timeline is sampled, and who is told what while the game goes on and after it ended. presetScore() makes one of the engine's stats
ScoreSource betaWhere a stat's numbers come from: an event of the world's ('entityDied') or of the game's own (defineEvent), and what it counts of each (scoreOn)
ScoreStatDef betaA number the score keeps for each player (RuleSettings.score, defineStat): what it is called, how it adds up, where it comes from, and how it is shown. One with no source is counted by the game's code alone (world.score.add)
ScoreState betaWhat a player is told of the score (Snapshot.score): the numbers of the players they may see, as they stood at tick. Rounded to hundredths
SeatCamera betaWhat the rules said of a player's camera that lasts (Snapshot.camera)
SequenceDef betaWhat a mission or a cutscene is mostly made of: do this, wait two seconds, then that, then wait until the gate holds five invaders. Made with defineSequence and given in Rules.sequences, so that a save finds the steps by id: what is kept in the world of a running sequence is which one, which step, and its data, never a function. That is why it is not an async function: one of those cannot be saved halfway through
ServerHooks betaWhat a game does on a server (Rules.server). Only ever run there: a player's screen has none of it. The lobby's settings come to onGameStart as the lobby left them
ServerSeat betaA seat at a game on a server: a player who joined, or a computer player
ServeWorldOptions betaWhat the worker's file gives besides the game: its code that runs on the world, which cannot be sent
SessionCan betaWhat a session can do besides being a seat, each where it can (GameSession.can): a game played in this page holds its pace and saves, a game in a worker of it says its timing too, a seat a computer plays from serves its brain. Asked for as session.can.pace?.advance(): there or not
SessionComputer betaWhat a computer player's seat gives its brain besides the snapshot (SessionCan.computer)
SessionDebug betaWhat the debug tools of a client see of the simulation: an entity as the rules have it, and the events and hooks of the last seconds. Plain data, as the snapshots are, so that it works the same with a simulation somewhere else: the client says what it wants to follow, and reads what came back last
SessionEvents betaWhat the players are told happened during a tick, which cannot be read from the state afterwards: each kind by its type (design review E7). The engine's are told by its replications (replicateEvent(key, type, tell), typed by this entry); a pack's or a game's own added by declaration merging, as OrderStates is. A screen's handlers are keyed by the same names (SessionEventOf)
SessionHostOptions betaWhat a SessionHost is made with: its send rate, catching-up limit, watchdog and error callbacks and whether it owns its world
SessionPace betaThe pace a session holds the game at (SessionCan.pace)
SessionSaves betaSaves of the world a session plays (SessionCan.saves)
SessionTiming betaWhere the time of a simulation run elsewhere went of late (SessionCan.timing)
SetPick betaSome of a default set (SetChoice)
SetUses betaWhat a set's definitions use besides themselves, each taken along as a chosen definition names its id (anywhere in it, or in another taken along): an item's ability, the buff the ability puts on, the ward it plants. Tags all come, as the vocabulary of the set, unless nothing of it is chosen
SharedAbility betaAn ability of a unit as everyone who sees it may be told (RuleSettings.hud.shareAbilities): what it is and its level, and how much of its cooldown is left where the rules share that too
SharedGame betaA game shared for watching (shareGame)
ShareOptions betaWhat shareGame is given: the relay's address, the key and name of the share and whose side watchers see
ShopSettings betaShops (RuleSettings.shop): taking a purchase back
ShownTimer betaA timer the rules show a player (world.timers.show): its words, and the tick it goes off at, for the screen to count down to
Snapshot betaEverything one player knows about the game at the end of a tick
SnapshotField betaA part of the snapshot a player is sent, captured by the feature it is of: the projectiles, the items on the ground, the score. Before the entities (head) or after the players; left out of the snapshot where it gives nothing (undefined). Listed by the engine for its own, by a pack in GamePack.snapshotFields (a key of its own added to Snapshot by declaration merging)
SnapshotView betaWho a snapshot is being made for, as a component shapes its part of it
SpawnedPrefab betaWhat a prefab spawned became *
SpawnLine betaThe spots a spawn of the ground objects pack lays its units on (EffectFields.line): count of them, ends included, along the way it was aimed, length long around where it landed (or from where it went off from to there, when left out), or across it, a quarter turn round (a wall in front of the caster)
SpawnOptions betaWhat world.spawn is told besides type, owner and position: facing, size, look and the rest
SpawnPrefabOptions betaHow a prefab is spawned: where its middle goes, for whom, turned and sized *
Spot betaA spot, and the way it faces: where a wave comes in, where a hero stands, where a camera looks from
StanceDef betaA stance: how a unit without orders takes to the enemies around it
StancesOptions betaWhat a game turns stances on with (stancesPack)
StartingBaseCode betaA start in code: puts down a base at the start location, whatever it likes
StartingBaseData betaA start as data: a hall at the start location and workers on the side of the closest gold mine, as in a classic melee game (startingBase puts it down). Every id is a unit type of the game's (checkRaces says where one is not)
StartMeasure betaWhat one player's start has around it
StartsPassOptions betaWhat startsPass takes
StatChange betaSomething that changes stats: stats is added, percent makes them bigger or smaller by a part of what they are with everything added. Parts from different places add up: two times +10% are +20%.
StatDef betaA stat of a game's own, next to the engine's
StatField betaA part of the stats a pack adds (GamePack.stats): a hero's growth by its level, in the heroes pack. stamp is a number that changes whenever what it adds does, and is 0 when it adds nothing: the stats are added up again when it changes, however it changed (a game that sets a hero's level itself says nothing, and need not)
StatSource betaWhat base stats are worked out under: the rules of a game, and what its own stats start at. A Registry is one
StatSum betaWhat adds up a unit's stats in the sum: what a stat source is handed (StatField.add)
StockInfo betaOne item type a shop has for sale, with how many are left and how far the next is
StockState betaWhat a shop has of one of its wares (shopStock, a component of the entity's)
Summoned betaOn a unit a spell brought: who brought it (by, its master). Dispelling hurts what carries it. A summon effect gives it the rest: whether it walks with its master when it has nothing to do, whom it goes for, and whether it dies with its master (diesWithMaster; a raiseDead unit has only by, and outlives the one that raised it)
SupplyCap betaA player's cap of a pool of supply, once what their buildings provide is added up (see the supply system): change cap (a starting amount, an upgrade, a rule of the game's own). The game's most (RuleSettings.supply.max, a pool's max) still holds after
SystemTiming betaWhat the scheduler measured of a system: milliseconds per tick, averaged, with the ticks it does not run counted as nothing
TagDef betaA tag of items (ItemDef.tags), named and given a look: what a shop shows of it and whether it is one of the shop's filters. A tag no TagDef names still works, shown as its own word (Rules.tags)
TargetFacts betaWhat there is to know about a target, for whether an ability may be used on it
Targeting betaA way of aiming of a game's own, for AbilityDef.target (defineTargeting): the engine's way it is like (what the player gives, what the order walks to), and on top of that what may be aimed at (check), where the effects go from what was aimed (aim), and what the screen draws while it is aimed (indicator)
TargetScore betaHow much a unit wants to attack something, as it looks for a target by itself. Higher is picked first: raise or lower score, or make it -Infinity to pass the target over. Towers of a tower defense go for the creep furthest along its way like this; a taunt makes everyone go for one unit. Runs for every candidate of every search, which is often: the same object is handed out again and again, so keep nothing of it.
TeamMemory betaWhat a team remembers of the map: enemy structures out of sight as they were last seen, and camps found empty
TechEdge betaHow one thing of a tech tree leads to another: from makes to (trains, builds, hires, researches, upgrades to), or to requires from
TechNode betaA thing of a tech tree: a unit or building type, or an upgrade, on its tier (0: made from the start)
TerrainGenOptions betaWhat generateTerrain makes ground from: size, seed, hills, rocks, flats and plateaus
TerrainMesh betaA triangle mesh of the ground: vertex positions and the triangles' indices
TerrainPassOptions betaWhat terrainPass takes: the parameters of the generator it reads where they are not given here
TerrainPatch betaA part of the ground as it is, to put in another of the same size (applyTerrainPatch): a rectangle of cells and every layer of it, the vertices at its corners included. What the editor's Play here sends of the map's ground as it is edited (debug.ground, EQ10), and what a session is told of it (ground)
TerrainSave betaA terrain as plain data: in a save, and sent to a remote player as the game starts
TerrainSurface betaWater and paint of a terrain, next to its shape. Left out for plain ground
TileDef betaWhat the ground of a map can be painted with, named by the game: grass, road, sand. A cell holds the index of its paint: 0 for none, left to the slope and the height, and 1 and up for the game's tiles in the order it gives them (Rules.tiles). The rules read and paint by name (registry.tile('road')); what each looks like is the view's (GameView.ground.tiles). A map file says the name of each index it was painted with (GameMap.tileset), so that a map keeps its paint when the game adds tiles or puts them in another order: it is brought in line with the game's list by name
TilesPassOptions betaWhat tilesPass takes: how a cell is painted, from what the ground is there
TimerDef betaSomething a game does after a while, or every so often: a wave coming, a spell wearing off, a line of dialog. Made with defineTimer and given in Rules.timers, the way listeners are, so that a loaded save finds the code by id: what is waiting in the world is data, which timer and with what, never a function
TimerInfo betaWhat a timer's handler is told about the time it went off
Trace betaWhat a world tells whoever follows it of the rules as they run, see World.trace
Transport betaOne end of a connection: text in, text out, in order
TunableDef betaA number of a game's rules to be tuned while it plays: the seconds between waves, how much a kill pays. Read in the rules with world.tunable(id), and changed while the game runs from the editor's play mode (debug.tune), in the world itself, so that a save and a screen over a wire have the same. Given in Rules.tunables
UnitCondition betaWhat an if asks of a unit, its caster or its target (EffectFields.caster, EffectFields.target): each part it says must hold. Or code (UnitConditionCheck)
UnitPools betaWhat a unit holds of its pools (UnitTypeDef.pools): how much of each (values), the seconds since each was last spent or given (quiet, for its decay), the seconds each has been empty (empty, for its reload) and where the unit stood a tick ago (at, for what fills by walking)
UnitRecord betaA unit as plain data, to take from one mission into the next (carryUnits, placeUnits): what it is, the name the rules knew it by, how much of its health it has (a share, 0 to 1), its veterancy (veterancyPack) and its items slot by slot. Not where it is: the next mission says where they come in. Heroes are carried as heroes (carryOut)
UnloadState betaWhat unload keeps: whether it set its passengers down already
UpgradeEffect betaWhat a level of research changes
Upkeep betaThe upkeep a player is at: its tier, its name and the share of income that reaches them
UpkeepTier betaA big army is paid for with income: past a certain supply, less arrives of what workers gather of the resources with upkeep
ValuePart betaA part of a value that comes from a stat of the caster: 60% of ability power
VeterancyOptions betaWhat veterancy is made of (veterancyPack)
VeterancyRank betaA rank of veterancy: the experience it starts at, its name, and what it adds to a unit's stats (in place of the rank before's: each says all a unit of that rank has)
VeterancyState betaWhat a unit has of veterancy: its experience and the rank it reached (0 for none yet)
WaitingTimer betaA timer as the debug tools show it: seconds until it goes off, and between two times
WaitState betaWhat an order that waits for room at its target keeps (holdOff): attack's, and a game's own
Walk betaA way on foot over a map: its length, and the points it goes through
WindGust betaA gust of wind at a place, for the grass and bushes there to bend to: an explosion's ring, a dragon's wings
WirePatch betaA list or an object sent as the parts of it that changed ($patch): by index for a list as long as the one before, by key for an object, each part whole or a patch of its own, and the keys of an object that are gone ($unset). What a cooldown of one ability of four, or the gold of one player, sends in place of all of them
WorkerGame betaWhat the page says a game in a worker is made from: plain data, which is all that crosses
WorkerGameContext betaWhat the worker's code that runs on a world is given (ServeWorldOptions.onStart, beforePlay): the player at the screen, the map, what the page sent (WorkerGame.args), and a way to tell the page something
WorkerSessionOptions betaWhat a seat at a worker's game is asked for: what to play (WorkerGame), and what connect takes
WorkState betaWhat construct keeps: the seconds to its builder's next blow of the hammer
WorldChecks betaWhat a world checks of itself and of its game as it runs, over the process's: for tests, development, a server that runs games of its own
WorldEvents betaThe events a world emits (world.events), by name, each with its payload; what hooks do not cover and listeners and sessions hear
WorldFailure betaWhy a game ended on an error (world.failure): plain data, for a log, a save's notes, a player's screen
WorldListing betaEverything in the world, for the list of the debug tools: what is out of sight, hidden or scenery too
WorldOptions betaWhat a world is made of (new World): its ground and ways, its game, its players, its systems and hooks, and what it checks of itself
WorldPort betaWhere a worker hears and answers: a page's worker scope, or Node's parentPort
WorldQuery betaWhat a query of the world asks (world.query): each part it says must hold. What a UnitCondition says too (a buff, health under a share, a hero, tags, enemy or ally of of)
WorldSave betaA world saved: everything it takes to carry on with a game later, somewhere else, or from the same moment more than once. Plain data, and with encodeSave text: what is in the world points to definitions by id, and to other entities by id. What is not in it: - the game module (WorldSave.game names it), which loadWorld is given again; - navigation, which is built again from the terrain and the structures, with the agents put back where they were; - systems added while the game ran (World.addSystem), like a computer player: whoever loads adds them again, and what they keep in themselves (System.save) goes back into them as they are added; - state a game module keeps outside the world, like in a WeakMap keyed by it. Keep it in components instead (World.state, Player.state, Entity.get), which are in here. Two numbers say how old a save is, and they are not the same thing. format is the engine's: the shape of the save itself, which the engine brings up to date by itself. version is the game's: what the game keeps in a save (its unit types, its components), which the game brings up to date (Rules.saves). A save is read through both (updateSave), the engine's first
WorldWatcher betaWhat watches a world from outside (World.watch): told of each command a player gives it, each save taken of it, and each tick it ran
WorldWorkerLike betaWhat a worker is, as far as a game goes: a page's Worker, or Node's worker_threads one
XpInfo betaA hero's experience: what it has, at what the level it is at started and at what the next one does (HeroSent.xp)
Zone betaGround an ability goes on working on for a while

Functions ​

NameWhat
abilityAsCast betaThe ability as the next cast of it is: itself, or with its window open (state.recast) its recast (AbilityDef.recast): aimed as the recast is (none for one that goes to a mark), its range, its effects, its mana cost, no health cost, no charges, no wind-up and no channel. The same object every time for an ability. What the order, the button and the aim go by; state is an ability's state or what its owner's screen is told of it (AbilityInfo)
abilityChangesPack betaAbilities changed at runtime: what a game with it (Rules.packs) gets. The effects grantAbility (an ability given, for a while or so many casts), swapAbility (one in the place of another on the card, and back), stealAbility (the target's ultimate in the place of the one cast, for one cast: Hijack) and convert (the target the caster's: Charm); an ability's upgrades, one chosen for good (the upgradeAbility command); what lasts a while kept in the abilityGrants component, told to the owner (a stolen one shown in the place of what it took). grantAbility, removeAbility, swapAbility and upgradeAbility in code
abilityReach betaHow far away the target of an ability may be: what it says, and for some as far as the caster's attacks reach on top
abilityRefusal betaWhy an ability cannot be used right now, or undefined when it can
abilityText betaThe text of an ability as plain words: for a tooltip of words only, a log, a test
abilityValues betaThe values of an ability at a level, for a caster, by name: its own (AbilityDef.values), and what its effects say when it does not name them itself: damage, heal, shield and amount (the first effect of each kind with an amount), duration, radius, chance (in percent), range, cooldown, charges and refill, mana, window (a recast's), count and distance
adoptTileset betaBrings the paint of a map in line with a game's tiles, in place: afterwards index 1 is the game's first tile, and so on. What was painted with a tile the game does not have keeps it, under an index after the game's: the map loses nothing, and the file has it still. Returns the names of those, which no world is given
aggroCamp betaPuts someone on a camp's list as if it had done the camp threat damage (Camp.aggro): a taunt, or a game's own reason for the creeps to come. The camp comes at once, as for a hit, where it helps at once (CampSettings.helpAtOnce)
aimAt betaAims what a unit aims as it goes (Aiming) at a point: what it holds to charge, or the channel it keeps up aimed (channel.aimed: where it goes off at from now on, the caster turned to it). What the aim command does
aimKind betaHow an ability is aimed, as the engine's way it is or is like (AimKind): its target itself for the engine's, the like of a game's own (Rules.targetings). none for a name nothing defines
aimOf betaThe ground an ability covers at a level: a line for what it sends on its way, a circle for what hits an area. Undefined for abilities that are about one unit, or about nothing in particular.
allowed betaWhether a player may send another of a kind now: and counts it, when they may
anyEffect betaAn effect as any type may be (AnyEffect), its fields by name
applyHeroRecord betaMakes a hero of a world what a record says it was: its level, experience and points, its abilities as far as they were learned, and its items in their slots. In place of what it had. What the game no longer has, an ability or an item, is left out. Whole: health and mana full, nothing cooling down
applyTerrainPatch betaPuts a patch (TerrainPatch) in a ground, in place: its heights, water, paint and levels, and the game's layers of cells (a layer the patch has that the ground has not is made). Nothing else: what the rules make of the ground is World.reshapeGround's. Throws where it does not fit (terrainPatchProblem)
areaReach betaHow far from where an area is laid (EffectArea.x, z) the farthest of it is: what to look for units within
areaShapeOf betaThe shape an AreaRef stands for: its own, or the named region's among the map's. Nothing for a region that is not there
assembleGame betaA game with its packs put together (AssembledGame): what the registry, the systems, the hooks, the listeners and the timers of a world of it are made of. Refuses a pack without one it says it goes with (GamePack.requires)
at betaThe value at a level. Levels past the end of the list get the last one
atShop betaWhether someone stands close enough to a shop to trade with it. Anything with a place will do: an entity, or what a screen knows of one
attackersOf betaEveryone fighting the target or closing in on it: of one layer only, when one is named
attackReaches betaWhether one of an attacker's attacks can hit a target where it is, whoever's it is: the ground, the air, the kinds it names (pickAttack). For a canAttack handler that lets a unit attack what is not an enemy
attacksCounted betaHow many of a unit's attacks are counted towards an onHit that goes off every so many (EffectFields.every): the one of an ability's passive at place in its list, of an item's (item: true) or of a buff's (buff: true). 0 when none are: for a screen to show, a test to check
attackStat betaHow hard, how fast or how far an attack hits, from the attacker's stats: the stat the attack names (AttackDef.stats), or the unit's own (attackDamage, attackSpeed, attackRange). The unit's own for no attack
attackTiming betaHow long an attack of the entity takes: from the start of the swing to the hit (the windup), from one swing to the next, and how long it is held after the hit (AttackDef.recovery). Of its first attack, or the one at that place (UnitTypeDef.attacks), by the speed stat it reads (AttackDef.stats)
availableTo betaWhether something of a race (UnitTypeDef.race, UpgradeDef.race) is a player's to make as their race goes: what is of no race is everyone's, and a player of none (the neutral players, the creeps, any in a game without races) may make anything. The available hook has the last word (isAvailable)
availableToPlayer betaWhether a player may make something at all, as the simulation decided (availability, by key) or else as their race goes: what is not is left off their buttons
avoids betaWhether ability does nothing to entity: it is spell immune and the ability does not pierce that, or a buff on it avoids one of the ability's tags
bandOf betaThe ring an attacker fights from, by its reach: 0 for the melee
baseStats betaThe stats a unit type starts with, all of them, in a game: world.registry, or session.registry on a player's screen. By day unless it says otherwise
basinShape betaThe lie of a bay, for terrainPass's shape: the corners high, the ground falling to a sea in the middle, an island in it. With water at 0.25–0.35 the sea takes the middle and the shore runs round it; the starts in the corners (startsPass with a spread of 0.4), the way between them along the shore
blankDefinition betaA definition made of nothing, by an id: what its kind must have (REQUIRED_FIELDS), named by its id
blockByDoodads betaWhat the doodads of a map keep off its cells, and what is kept off them by hand (GameMap.pathing), into the terrain (Terrain.blocked): the most any of them keeps off. With area (cells), there alone: what the layers changed there (a brush's step), the doodads elsewhere as they were; the whole map where a doodad itself changed
board betaPuts a unit into a transport at once, wherever the two are. False when it cannot get in
breakBuffs betaTakes off what a unit carries that breaks on what it just did or had done to it (BuffDef.breaksOn); ability, for a cast, the ability whose buffs stay (what it put on itself)
buffEnded betaWhat a buff that ran out leaves behind: its onEnd, in the name of who put it there
buffsTagged betaThe buffs a unit carries that have a tag (BuffDef.tags): a fire on it, the anti-heal it is under
buildNavigationData betaBuilds a navigation on this thread, and gives back what was built: what a worker does too
builtSoFar betaHow far a structure in a snapshot is built, 0..1: undefined for one that stands (a screen's, a computer player's view)
burningCells betaThe cells of a layer that burn now, in order of their indices: for a game's rules and its computer players. Not to be kept or changed: the pack's own list. None in a game whose grass does not burn
burningOf betaWhat the rules know of a thing that burns or burnt (BurningInfo): none for one that never caught
burningPack betaThings that burn (BurningOptions): trees by default (what can be felled), any type that says burns (UnitTypeDef.burns: a wooden wall, a hut), or what the game decides in code. Set alight by setAlight, an ability ({ type: 'burn', act: 'light' }), the grass's fire (FoliageFire.lights) or one another (spread), a thing burns for its seconds and burns down: felled, burnt away, or leaving a thing of its own (a charred stump), with or without its wood. Put out with putOut. Its look says what plays on it while it burns (UnitLook.burning: fire by default, or a game's own effect for its own kind of burning, how). Off unless a game turns it on: export const rules = ...myGame, packs: [burningPack( spread: chance: 0.2 , damage: 10 )] What burns is not woken (world.wake): a forest costs nothing a tick while nothing in it burns
burningThings betaThe ids of what burns now, in order: for a game's rules and its computer players (one killed by other means, a catapult's blast, is taken out within a second). Not to be kept or changed: the pack's own list
burnMana betaTakes up to amount of a unit's mana and hurts it by as much as it took (times ratio), from source: what the manaBurn effect does, for a game's own rules. Gives back the mana it took: none of a unit that has none, and no damage then
buy betaSells an item to a hero standing at the shop: the one that is named, or the closest one with room. Tells the player why when it cannot
buyBack betaBuys a fallen hero back (HeroSettings.buybackCost): its player pays, it is back at once at its side's home (where it fell when there is none), its wait to come back by itself over, and it may not again for buybackCooldown seconds. False, and the player told why, where it cannot (buybackRefusal)
buybackRefusal betaWhy a fallen hero cannot be bought back now, or undefined when it can: a living one, one being revived at an altar, one the game has no buyback for, one waiting out its last, one whose player is short of its price
byChance betaWhether an effect that happens by chance (EffectCommon.chance) does this time: a draw from the world's numbers (world.rng) under its share at the context's level, or what its code says for the target. True with no chance, and then nothing is drawn (the world's numbers go on as they were); nothing is drawn for a share of 0 or of 1 either
bySlot betaThe engine's rule of attack modifiers (RuleSettings.combat.attackModifiers): of those that share a slot, only the one of the highest priority (the first among equals: abilities, then items, then buffs); those of different slots, and those of none, all of them. In the order they came
callingsOf betaThe callings of a game: those of its heroes pack (heroesPack({ callings })), what the rules say of heroes (RuleSettings.heroes.callings), or the engine's own (defaultCallings). Asked of a registry, the game's settings as they came out; of rules, what they say
callingStrength betaHow strong a hero's type is in a calling: 0 for one it does not have
cameraFor betaThe rules say something of one player's camera: on their screen alone, the same moment of the game each time. cameraFor(world, 1, { pan: { x: 40, z: 60, seconds: 2 }, shake: { strength: 0.5 } })
cameraStep betaA step of a sequence that says something of a player's camera (see cameraFor): [wait(4), cameraStep(1, { shake: { strength: 1 } })]
camouflageOf betaHow near its enemies have to come to see a camouflaged unit (BuffDef.camouflage): the most of what its buffs say, or undefined where it is not camouflaged
campFields betaThe game's fields for a camp
campLayout betaWhere the creeps of a camp stand: the first one in the middle, the rest in a ring around it, facing out
campNamed betaThe camp of this name, as it was given one on the map. It is there for as long as the game, with or without its creeps
campTarget betaWhat a creep of the camp goes for of the camp's list (Camp.aggro): the most threat, then the nearest, the targetScore hook having the last word; nothing it leaves alone for now (shun: it could not get at it, or chased it too long), cannot see or attack, or that stands past the leash. None when the list has nothing for it
canAttack betaWhether an attacker may attack a target: its attack reaches it, it is an enemy, and the canAttack hook agrees. ordered: a player told it to (an attack order), which a game may let it do to its own side (CanAttack.ordered)
canBoard betaWhether a unit can get into a transport: one of its side's that has room, and a unit that walks. What flies, what sails and what carries others do not get in
canBurn betaWhether a thing burns at all in a world's game (BurningOptions.burns, UnitTypeDef.burns, trees): false in a game without the burning pack
canHarvest betaWhether a worker may gather from a resource: one of a kind it gathers (harvester.ids), and then as the game's canHarvest hook says
canLearn betaWhether a hero may put a point into an ability now: by points, levels and its learning, and the canLearn hook
canPlaceStructure betaWhether this structure can be placed here right now, see placementProblem
canRepair betaWhether a worker of the player could mend it
captureOf betaA point by id, or nothing for an id the world has not got
capturePack betaA game with capture points: the points of options.points and of the map (things of the capture kind, which the editor places with the client's captureKind), each an area, counted every few ticks; whose each is and who is taking it in the world (captures, capturesOf) and in the game's report (captures); captured and capturing as they change; capturePoint for the rules' own say. Units count, alive and in sight of nobody in particular; buildings, scenery and the neutral player's do not
capturePoint betaGives a point to a player, or to nobody, from the rules: its progress forgotten, and captured said
capturesOf betaThe capture points of a world, as they stand
carriedPassives betaThe passives of what an entity carries (ItemDef.passive), by ability id, in slot order: those of items sharing a unique name once, the first carried (unless the game says otherwise, ItemSettings.unique). What the abilities system keeps up and the triggers go by
carryIn betaBrings carried heroes into a mission for a player. Each takes the place of the hero the map has for it: the one of that player under the same name, else one of that player of the same type; a hero the map has none for is made at at. The heroes, in the order of the records
carryOut betaThe heroes of a player as records to carry on (see heroRecord): fallen ones too, as a campaign brings them back
carryRefusal betaWhy a carrier may not take an item, or nothing when it may: one more of its group than it may carry (ItemDef.group), or what the game's own rule says (ItemSettings.mayCarry). uses, the parts buying it uses up, by id: they go out as it comes in. handed: it is handed over, and the words say "they". Asked as an item is bought, picked up or handed over; room in the inventory is asked apart (hasRoomFor)
carryResearch betaWhat a player has researched, to carry on (giveResearch): each upgrade's level, by its id
carryResources betaWhat a player has of each resource, to carry on (giveResources): a copy, all of it, or of the kinds named
carryUnits betaA player's units as records to carry on (UnitRecord): those alive, not structures, not heroes (carryOut carries those), and of them what filter keeps (the footmen, the three nearest the gate). In the order of their ids
casterFacts betaWhat an entity brings to the numbers of its abilities, now (see CasterFacts)
castRange betaHow far away the target of an ability may be: what it says, and for some as far as the caster's attacks reach on top
castTimeOf betaSeconds of the wind-up of an ability: in code, or as it says
cellLayerValues betaThe values a layer is painted with, as the editor offers them: its own, or 1, named after the layer
cellsIn betaThe cells of a terrain in a shape, as indices into its layers: the cells whose middle is in it
changePool betaFills a pool of a unit by amount (empties it, under 0), as far as its bounds go, its thresholds' buffs put on and taken off, the time it decays after started over: what the gain effect does, and an ability's cost and gain. Nothing while a threshold's buff that empties it holds it still. How much it changed
chargesLeft betaHow many uses an ability with charges has left (AbilityDef.charges), at its level: what its state says, or all it holds when that says nothing. Undefined for an ability without charges
chat betaA player says a line (chatted): to their side, or to everyone, and to who watches either way. Spaces run together, and cut to the game's length (RuleSettings.talk); nothing for an empty line, a message for too many in a while; and as the beforeTalk hook lets it, which may change the words or who hears them
checkLanes betaWhat is wrong with the lanes of a map, for the editor's checks (MapEditorDef.check): a spawner on no lane or away from its ends, a lane without a spawner at each end, or with the same side at both
checkMapObjectives betaWhat is wrong with a map's objectives (GameMap.data.objectives): one with no id or with another's, one with no words, a list that is not one. Each a click away in the Objectives panel
checkMissionRules betaWhat is wrong with a map's rules (GameMap.data.rules): one with no id or with another's, one with no condition, an action of no form the pack knows, a condition or an action naming what the map or the game has not (a region, an objective, a prefab, a player). Each a click away in the Rules panel
checkPack betaChecks a pack's file as it is read (the schema's rules a loader needs: the pack's schema has all of them): its id and version, and that each list is of definitions with an id, once each. Throws PackError saying where
checkPackSchema betaChecks a pack's file against the pack's schema (@v12-engine/engine/schemas/pack.schema.json, made of PackFile): where it is first wrong, in words with its place (units[2].stats.health: is a string, not a number), or nothing for one that is right. A small reader of the schema, as far as it uses JSON Schema: what a page that loads packs fetches with them, so that a game without packs carries none of it
checkRaces betaThrows for races that cannot be: one there twice, one called random, a unit type or upgrade of a race the game does not have, a resource a race starts with that the game has not, or a start as data (a race's, or the game's) that names a unit type the game has not, saying which was meant where one is close. Run as a registry is made (createRegistry, every world's); for a game's own tests
chooseSet betaThe definitions a choice takes of a default set (SetChoice): those it keeps, changed as it says, and its own besides, one with an id of the set's in that one's place
cinematicCue betaA step of a sequence that cues the cinematic playing (see cueCinematic): [wait(4), cinematicCue('gateOpen')]
clamp betaKeeps a number between min and max: returns min below it, max above it
clearFoliage betaTakes grass away for good: the cells are no style any more (0), and nothing grows back. Returns the cells cleared
clearGround betaThe ground around a place made flat and dry: one level (the one there, or level), no water, no ramps, the ground at one height eased into what is around; mirrored as the map is, unless alone. What a start's clearing and a mine's are made with, for a pass of a game's own
cleaveOf betaWhat a blow from up close of the attacker's weapon at that place cleaves (AttackDef.cleave, BuffDef.cleave): the attack's own, or a buff's at its level, whichever has the larger part. Nothing for none. The engine's RuleSettings.combat.cleave
cloneMap betaA copy that shares nothing with the original
composeGame betaA game with mods on it: a new Rules, which createWorld takes like any other. Its id names the game and the mods (melee+goldRush), and mods lists them with their versions. Mods are applied after the ones they require, otherwise in the order given. Neither the game nor the mods are changed
concealmentPack betaA game where what stands in a layer of cells is hidden from the teams that are not in it with them (see ConcealmentOptions): a visible hook, and a system that works out who has someone in which patch at the start of every tick (the same in every copy of the game, whoever asks what in between). On as many layers as it is given
conditionHolds betaWhether what an if asks of a unit holds (UnitCondition, or code), as the effect of the context lands: every part it says. Nothing said holds; of no unit, nothing said does not
controlOf betaThe buff that takes a unit's orders now (BuffDef.control): the last it carries of them, unless it is unstoppable
cooldownOf betaSeconds an ability of the entity takes to be ready again
copyDefinition betaA new definition, a copy of one the registry has, by an id it has nothing by: what it is drawn as is the one it is a copy of (basedOn) until the game gives it a look of its own. False for one it does not have, or an id it has
coreVictory betaThe rule of a lanes game: a side whose cores have all fallen is out, and the last side with a core wins. A side takes part once it has had a core
costRefusal betaWhat stands in the way of a cost, or undefined when the player can pay it
createItem betaMakes an instance of an item type with an id of its own, with the charges given or those of the type (0 when it has none)
createLogRing betaKeeps the last size entries (500 when left out) of whatever its sink is given
createMap betaFlat grass, two players and nothing on it
cueCinematic betaCues the cinematic playing on the screens of the players it is for (everyone when left out): one waiting for it (cut.untilCue(name)) goes on, and the view's hooks of it (cue:<name>) run. Nothing happens where none plays, or the one playing does not listen for it. params is plain data the cue carries
currencyOf betaWhat a cost asks of the game's money, see Registry.currency. Shops deal in that alone
damageScale betaWhat damage is multiplied by for who deals it and who takes it, once armor or magic resist had their say and before shields: the source's outgoingDamage, and the target's incomingDamage with the part of the damage's own type (incomingMagicDamage), each side's parts added up and never below none, so that nothing turns damage into healing. The engine's formula: the game's is world.settings.combat.damageScale
dataCellLayersProblem betaWhy what a data.json says of the game's layers of cells (GameData.cellLayers) is not right, where it first is not: nothing when it is
dataDefaultsProblem betaWhy what a data.json says of the default sets is not right, where it first is not: nothing when it is
dataEntriesProblem betaWhy what a data.json says of its tags or callings (GameData.tags, callings) is not right, where it first is not: nothing when it is
dataRulesProblem betaWhy rules said as data are not, where they are first wrong: nothing for rules that are
declaredAt betaThe value of an amount where there is no caster to ask its code (EffectValue): at the level, or fallback for code. What the aim the screen draws and a computer player's guesses go by
decodeSave betaReads a save back from text written by encodeSave, turning the stored non-finite numbers into numbers again
defaultCallings betaThe callings the engine brings, those of a classic hero arena game under names of its own. What a game with the heroes pack has when it says none (HeroSettings.callings); a game takes them, some of them, changes them or gives its own: heroesPack({ callings: [...defaultCallings().filter((each) => each.id !== 'roamer'), myOwn] }). A new list each time it is asked, to change as a game likes
defaultCallingSet betaThe callings as a set to choose from (defaultCallings): what is chosen is laid on the rules as the heroes pack's (heroesPack({ callings })), in place of whatever was laid before; a heroes pack is put in where the game has none. A new one each time it is asked
defaultEngageLayer betaThe engine's: from the air for what flies, from the water for boats, from the ground for the rest
defaultEngageRoom betaThe engine's room around a target for attackers like this one: as many as stand side by side around it, on the ring they fight from. Few for the melee around a footman, many around a town hall, all of them for long guns
defaultHeroSpellBuffs betaThe buffs of the engine's hero spells (defaultHeroSpells), to list beside them (Rules.buffs). A new list each time it is asked, to change as a game likes
defaultHeroSpells betaThe engine's hero spells: Flash, Barrier, Second Wind, Brand, Wither, Phantom Stride, Purify, Waystone and Reap, with their buffs in defaultHeroSpellBuffs. A hero has two of them (HeroDef.spells). A new list each time it is asked, to change as a game likes: defaultHeroSpells().filter((spell) => spell.id !== 'waystone')
defaultHeroSpellSet betaThe hero spells as a set to choose from: the abilities (defaultHeroSpells), with the buffs they use beside them (defaultHeroSpellBuffs). A new one each time it is asked
defaultItemsPack betaThe pack of the default items' effects (allyWard, wardSpent, refreshAbilities, quicken, outOfFights, reward, nightCompanion): what the default set brings to a game that takes it (defaultItemSet), and what a game whose own items use them turns on
defaultPickAttack betaThe first of an attacker's attacks that reaches the target where it is (its targets), by place, or -1 for none: the engine's RuleSettings.combat.pickAttack
defaultQueueDistance betaThe engine's distance from the middle of a target at which an attacker waits for room there (RuleSettings.combat.queueDistance): just behind those fighting it, the target's size, two of the attacker, its reach and half a cell out
defaultWave betaThe engine's waves: three close and two that shoot, one more close every fourth wave and one more that shoots every sixth, a siege every third wave (two from the twelfth). Of the types a game has
defineArea betaTyped help for writing an area
defineHookType betaA hook of a game's own: const lifeLost = defineHookType<{ invader: Entity; lives: number } & Cancellable>({ id: 'td.lifeLost' }). The game runs it where the moment is (world.hooks.run(lifeLost, { ... })) and reads back what the handlers made of the event; handlers are written with defineHook({ hook: lifeLost, ... }), by the game or by a mod on it. Ids are shared by every game: give them a prefix of the game's
defineMapField betaTyped help for writing a field
defineTargeting betaA way of aiming of a game's own: defineTargeting({ id: 'wall', like: 'point', check, indicator }), listed in Rules.targetings and named by an ability's target. Its name is said by declaring it in AbilityTargetings (declare module '@v12-engine/engine' { interface AbilityTargetings { wall: true } }), so that an ability's target: 'wall' is typed
defineTile betaTyped help for writing a tile
defineTunable betaTyped help for writing a tunable: returns the definition as given
definitionIn betaThe definition of a kind and id in the registry, as it is now, or undefined
definitionsIn betaEvery definition of a kind the registry has
delayed betaThe host's end of a watcher's transport, with what goes to the watcher held for seconds (see the top of this file). Closing it closes the watcher's, and what is held goes with it
denying betaThe hooks of denying (see DenyOptions)
describeAbility betaWhat the ability says it does, for this caster now: its description with each {value} worked out (or its own describe), as words and values. A name it has no value for is left as it is written, braces and all
destructiblesPack betaDestructibles, as in classic RTS games: what is destructible (UnitTypeDef.destructible, a building of the neutral player placed on the map: rocks, a barricade, a gate to break down) stands in the way until it is brought down, and any unit whose attack reaches it attacks it when told to (the attack command), never of its own accord, as trees are felled by what fells them. A gate that opens and shuts is the map's (setGate); one that is broken down is a destructible
directorPack betaThe director's pack (see the top of this file): its commands, what it keeps, and what keeps a unit it made invulnerable so. packs: [directorPack()], or directorPack({ cinematics: ['intro'] }) for those alone
dispelBuffs betaTakes buffs off a unit, as a dispel does: the good ones of an enemy of by, the bad ones of a friend. Those that say they cannot be (BuffDef.dispellable: false) stay. How many it took
dist betaThe distance between two points on the ground plane
distanceToEdge betaDistance from a point to the edge of an entity
distSq betaThe squared distance between two points, for comparing distances without a square root
dropOnGround betaPuts the item on the ground at the closest walkable point to at, tells the game (itemDropped) and returns the ground item
edgeDistance betaDistance between the edges of two entities
editableFields betaThe fields of a definition the editor may change, as the game says (Rules.editable), each with what it holds and the heading it goes under. None for a game that says nothing of that kind
editableValues betaOnly the values of the fields that can be changed, each as its field takes it. What is not is left out and said: a field the game no longer lets be changed, a value of another kind
editDistance betaHow many letters have to be changed, added or taken away to make one word of another: what says which id was meant
effectAmount betaHow much an effect of damage, heal or a shield (buff) comes to for one target as it lands: its amount (a number, one per level, or code), with what the caster's stats add (scaling), times power (the caster's heal and shield power, for those), the share a bouncing missile has left (EffectContext.share) and how full it was held (EffectContext.held, by HoldDef.scale); then for the target, what its formulas add: a part of what it lacks (byMissingHealth), of its max health (byMaxHealth), of its health now (byCurrentHealth), so much for each stack of a buff (byStacks), parts of its stats (targetScaling); and all of that times what the distance makes of it (byDistance). A game's own effect with an amount calls it too
effectArea betaWhat an effect covers where it lands (EffectCommon.shape, its radius, length, width and angle, code asked as it lands): undefined for one that covers no area (no shape, and no radius), which is for its target alone. What a game's own effect asks to cover what the engine's would (inArea of each unit)
effectAt betaThe effect at a place in its ability (effectIndex): what a screen reads its type and its look from
effectFields betaThe fields an effect of a type has, by their path in it: those its type reads (defineEffect's fields), then those every effect may have (EffectCommon). Only those every effect may have, for a type the game has not
effectHeading betaThe way the effects of a context face: its heading where it has one (a zone's, a missile's way), from where they go off from (effectOrigin) to where they landed otherwise, and the way the caster looks where those are one place
effectIndex betaWhere an effect is in its ability, as the screen is told it (MissileState.effect, the strike's effect, AreaState.effect): its place counting every effect of the ability first to last, each before those it holds (the first of effects is 0, the first it holds 1…). One a chain made (EffectCommon.when) counts as the one written. Undefined for one that is not in the ability (made up in code)
effectOfList betaThe effect a list of effects is of in its ability (a missile's effects, a zone's onEnd, a delay's effects): what a strike of that list is told as. Undefined for the ability's own list, or one not in it
effectOrigin betaWhere the effects of a context go off from: its origin (an entity's place, or the place given), or the caster's
effectTargets betaWho an effect applies to: the caster (on: 'caster'), the target or the caster (no radius), or who is within its radius of where it landed, as affects (fallback when it says nothing), layers, kinds, tags, ifBuff, only and what keeps out of the ability's way (avoids) say, the unit it went off from aside (EffectContext.origin); and of those, who the game lets it reach (beforeEffect, mayReach). A handler of a game's own effect calls it as the engine's do: who it gives is told to effectLanded once the handler is done
effectTypesOf betaThe types of effect a game has (defineEffect): the engine's and its own, in order of their names
encodeSave betaA save as text. JSON, but for numbers JSON has no words for, which game state has: buffs that last forever (Infinity), something never hurt (-Infinity)
endRecast betaCloses an ability's window to be cast again before its time, as its last recast or its end does: the cooldown that waited for it starts. What a game's own rule does (the marked one died, a recast the game says was the last). False where the window was not open
endZone betaEnds a zone of an ability (world.zones) before its time: what happens at its end (onEnd) happens now, unless onEnd is false (a zone called off, not finished). False for one that is not in the world any more
engagedLike betaHow many attackers like this one (the same layer, the same ring) the target has already, the attacker left out
engagedWith betaWhat the attacker is fighting or closing in on, if anything
engageLayer betaThe layer an attacker fights from, as the game's rules say (RuleSettings.combat.engageLayer)
engageWith betaMarks the attacker engaged with the target, giving it a spot around it when it fights from close by (and has none there yet). The engine does this as a unit fights or closes in; a game's own fighting can too
engineMessage betaA message of the engine's own, with its params checked
engineStats betaThe stats presetScore has, by id, those of each resource made of the game (gathered.gold, spent.gold...)
errorFields betaAn error as plain data, for an entry's fields: what it is called, what it says, and where it was thrown
exchange betaTrades amount of one resource of a player's (sold) for another (bought) at a rate: rate of it for each one sold, rounded down (exchanged), the player told. What the exchange effect does (a marketplace's ability, presetMarket), for a game's own rules. Nothing of a resource the game does not have, of one for itself, or more than the player has. Gives back how much came
expose betaLets a team see the entity for a while, for having attacked it: from the dark, from high ground, from anywhere
extinguish betaPuts out what burns there: the cells stop burning as they are, burnt. Returns the cells put out, in order
faceTowards betaTurns a unit a little towards a point, as far as it turns in dt seconds (its type's turnRate, else the game's: RuleSettings.movement.turnRate). For orders that aim at something
fallenHeroes betaThe heroes that fell within the last HeroSettings.fallenFor seconds (8 when the game says nothing), the oldest first. Read it from a death listener (entityDied) to know what the hero that just fell was. None in a game without the heroes pack
farthestAcquisition betaThe farthest any attack of a type looks for enemies by itself (AttackDef.acquisitionRange): the engine's RuleSettings.combat.acquisitionRange. 0 for what does not attack
farthestReach betaHow far the farthest of a unit's attacks reaches, by its stats (its attackRange, or a stat an attack names): what it may hit anything from. 0 for what does not attack
fieldOptions betaWhat a choice field can be set to, as values with what each is called
findItem betaFinds the item instance with this id in the entity's inventory; undefined when it is not there or no id is given
firebreak betaCuts grass down to stubble, which fire does not cross: ruin with cut. What burns there stops burning, cut. A cell burnt already, or cut, is left as it is. Returns the cells cut, in order
fireOnTheMove betaOne tick of an attack that fires as the unit walks (AttackDef.onTheMove): what it shot at last tick while it can still be hit from where the unit is, else the best in range (looked for every fourth tick), swung at without a stop or a turn. Gives back what it is shooting at, none for nothing
fitToPlaces betaFits units to places so that their ways cross as little as can be: the places in order, the front first, each to the unit nearest it, measured from where the group is to where it goes (the unit's place in the group against the place's in the formation). A unit left without a place goes to the target
fitValue betaA value as a field takes it, or the reason it does not
foliageAt betaThe grass at a point as the rules know it (FoliageCell): its style, what happened to it, whether it burns. None where no grass is, or off the map
foliageLayerOfState betaThe layer a state layer is the state of (foliageStateLayer): none for a layer that is not one
foliageLayers betaThe layers a foliage pack was made with, each with its settings: the first, then those beside it (FoliageOptions.also)
foliagePack betaGrass and bushes in the rules, on a layer of cells whose values are styles (CellLayerValue.foliage, FoliageStyleDef): the styles that conceal hide who stands in them (as concealmentPack, patch by patch, while they stand whole), a style may slow or stop one on foot, be crushed under who walks over it, be ruined and grow back, catch fire and pass it on (FoliageFire). What happened to each cell is kept in the layer's state layer (foliageStateLayer). One a game: export const rules = ...myGame, packs: [foliagePack( layer: 'grass', fire: damage: 8 )] A layer of the pack is not given to concealmentPack too: the pack hides in it by itself. Its styles are read from the game's layers as laid (foliageStyle: the code, the game's data.json, the map's definitions), so a style the editor made hides and slows as one of the code's. What it does today: hiding by style and state, a style's speed and walkable, trampling (trample: 'crush', by who tramples says), fire (ignite, FoliageFire) with firebreak, extinguish and stopFire, ruin (ruin) and growing back (regrow, by itself where a style regrows), and the foliage ability effect
foliageStateLayer betaThe id of the layer of cells that keeps what happened to each cell of a layer of grass or bushes (FOLIAGE_STATE): grass.state for grass. A layer like any other (Terrain.cells, world.setCells): saved, told to the players who see a cell and to the others as it comes into their sight, kept with a map that starts with a field already burnt. No game lists it (Rules.cellLayers), so the editor does not offer it to paint
foliageStateOf betaThe state a value of a state layer says (FOLIAGE_STATE): whole for a value that is none of them
foliageStyle betaWhat a style of a layer is to the rules, by its value: what the value says (CellLayerValue.foliage, the game's code with its data and the map's over it) over the layer's own (FoliageLayerOptions.style). None for 0, which is no grass. A value the layer does not list is the layer's own style
foliageStyleProblem betaWhy a style said as data is not one (FoliageStyleDef), where it is first wrong: nothing for one that is. what names it in what is said
footprintCell betaMin cell of a footprint centered as close as possible to the given point
footprintOf betaGives the footprint of a unit type: its own, or a square the width of its collision diameter, rounded up
formationPoints betaIndividual destinations for a group ordered to the same point, in a formation (rowsFormation when none is given), and what the formation hook makes of them. Units that walk and units that fly are laid out apart, each on their own navigation (world.navFor). facing, where the player turned the formation by hand, is the way it faces (a direction as an entity's facing is), over the way of travel
formationPreview betaWhere a group would stand if sent to a target in a formation (by id, rows when unknown), from what a player's screen knows of the units: what the ghosts of a right-click dragged are drawn from (GameSession.formationPlaces). The same shapes as formationPoints gives, units that walk and units that fly each on their own navigation; the formation hook (the simulation's) and a formation that reads FormationContext.world take no part, and the order itself lays the group out as it will
formatNumber betaA number as an ability's text shows it: whole, or with one decimal when it is small and has one
formOf betaThe form a hero is in, none when it is itself (form)
foundAssists betaThe heroes who assisted the kill of victim by killer as the engine counts them: the enemies of the victim that hurt it within the last HeroSettings.assistTime seconds, and the allies of the killer's hero that healed, shielded or buffed it within as long; neither the killer nor its hero, nor what is no hero (an illusion). By id, the same on every machine. What HeroSettings.assists is given to keep or change
freeSlot betaThe index of the first free slot of the entity's inventory, or -1 when it has none or no inventory
freeSpot betaWhere the attacker could fight the target from now: a place with room for it (isCrowded) where no one stands, nor is on the way to: round a unit on its ring, round a building by its sides, the nearest its own side first. straight (the default): only one it can walk straight to without pushing through those fighting a unit (round a building, the way round is the navigation's); false: any, however far round. None when there is no room for it or every place is taken; the target's own place for what flies. What an attacker waiting for room (holdOff) asks before it goes in
friendlyFirePack betaFriendly fire, as in classic RTS games: a unit told to attack (the attack command, never a right click) one of its own or an ally's attacks it. Never of its own accord: units do not pick their own side to attack, nor fight back at it. Nothing of a neutral player's (a rock, a critter) is made a target by it
gainStats betaGives a unit stats for good, as a tome does: added to what it gained before, kept with it in a save, its health and mana raised with them. For the tomes pack's tome effect and a game's own rules (a shrine that makes a unit stronger); it works in a game with the tomes pack (tomesPack), which adds what was gained to the stats
gameIds betaThe ids the game's files name, by what they are the ids of: the unit types (the data's and the looks'), abilities, items, upgrades, resources (rules.resources and what any cost is paid in), speakers (of the cinematics' dialog), cinematics, effects and sounds. Each sorted and without repeats; what the data removed is not there
gameIdsSource betaThe ids of a game as TypeScript, for its code to use: UNIT.footman, and WardenUnit for GameView<WardenUnit>. The editor writes it as <game>.ids.ts next to the game's files, anew with every change of the files it reads
gathers betaWhether a worker gathers a kind of resource at all (harvester.ids): the game's canHarvest hook may refuse it a resource all the same (canHarvest)
generateMap betaThe map a generator makes of options: its passes run in order on a map of the size and players asked, with the game's tiles; then checked (checkMap). A map with a problem that keeps it from being played (a start cut off from the others, or where nothing walks) is thrown away and the next seed tried, tries times; the last is given with its problems. The map says how it was made (GameMap.generated)
generateTerrain betaMakes ground from the options: rolling hills, rocks, flat spots and plateaus, from their seed
give betaGives amount of a resource from one player to an ally (traded), both told. Nothing to who is not an ally, more than the giver has, or a resource the game does not have; and as the beforeTrade hook says: how much arrives, or not
giveBack betaGives a player back what something cost, or a part of it (refund), and says so (resourcesSpent with refund): what the score takes off what was spent
giveItem betaPuts an item into the inventory: into a stack of it with room (ItemDef.stack, its charges added), or the first free slot. False when there is neither. The engine's rules of what may be carried are asked before (carryRefusal)
giveMapObjective betaGives players an objective of the map's, by its id (MapObjective): those given by a rule (at: 'rule'), when the rules say. To every player a person plays when players is left out (mapObjectivePlayers); a player who has it already keeps theirs. Its words' params and its progress go with it, as world.objectives.add. Throws for an id the map does not have: an id in the code that is not on the map is a mistake
giveResearch betaGives a player research carried in (carryResearch): each upgrade up to its level, never down, no further than it goes, and what it does besides stats (UpgradeDef.apply) to the units the player has, as research finishing does. What the game no longer has is left out
giveResources betaGives a player resources carried in (carryResources), on top of what the mission starts it with. What the game no longer has is left out
grantAbility betaGives a unit an ability it has not (GrantOptions: at a level, for a while or so many casts, at a place on its card). What lasts a while needs the ability changes pack (abilityChangesPack) to end; for good, it does not. False where the ability is none or the unit has it already
grantVeterancy betaGives a unit experience, as a kill does: its rank goes up where it reaches the next ones' thresholds, its stats with it, and rankedUp is told for each. Gives back the rank it is at. For a game's own rules (a unit that trains at a camp), and what veterancyPack does on a kill
grantXp betaGives a hero experience: from what was killed, when that is where it comes from. The beforeXp hook has its say
groundAttack betaThe first of a type's attacks that can be told to attack the ground (AttackDef.ground), by place, or -1 for none
groundDifference betaThe cells of two grounds of one size that are not the same, as the smallest rectangle around them; none where they are the same. Every layer, the game's layers of cells too. Two of other sizes: all of after
groundHash betaA hash of a ground, every layer of it and its size: two grounds of the same hash are the same ground
groundObjectsPack betaGround objects: what a game with it (Rules.packs) gets for what abilities put down. Its spawn lays units along a line or round a ring (buildings one to a cell, standing in the way as any building does), each knowing who put it down (madeBy); a unit type may be a trap or a pickup (trigger: its ability goes off as one it is for comes near, armed after arm, gone after times), a thing others use (use: right-clicked, walked up to and used, the useObject order; useObject in code), a wall that stops missiles (blocksMissiles) or a barrel that bursts as it dies and sets off those of its kind near it (burst)
groundSpeedAt betaHow fast a unit goes where it stands, as a multiplier of its speed: the ground's for one on foot (groundSpeedOfCell), 1 for what flies or sails
groundSpeedOfCell betaHow fast one on foot goes over a cell of the map, as a multiplier: the tile's speed times the speed of every layer of cells that is not 0 there (its value's style's, FoliageStyleDef.speed, else the layer's speed); 1 where nothing says. Off the map, 1
groupLimitOf betaThe most of an item's group one carrier may have (ItemDef.group): the item's own limit, the game's of the group (ItemSettings.groups), or 1. No limit for an item of no group
groupRefusal betaWhy one who carries these items (by id) may not take one more of an item's group (ItemDef.group), or nothing when it may: the engine's part of carryRefusal, which a screen asks too, with the game's registry alone, to say so before the buy (the shop window). uses are the parts buying it uses up: they go out as it comes in, so they are not counted. The limit is the item's own, the game's of the group (ItemSettings.groups), or 1
growOnTiles betaGrass grown from the ground's paint made cells of a layer the rules see: every cell whose tile is one of tiles (by id) and that nothing of the layer is painted on is set to value (world.setCells: saved, told to the players, remembered through the fog). What a game calls once, as its world begins, for the grass the client grows on those tiles (FoliageLook.on) to hide and burn as value's style says: from then on they are cells as any painted, and a tile painted later grows nothing to the rules until it is called again. The cells set
gust betaA gust of wind at a place, on the screen of every player who sees it (WindGust): the grass bends to it there (a ring outwards as it spreads, or a push one way where it says around), as client.gust bends it on one screen. A player is told where their team sees its middle or any of its edge; an observer always. Nothing it does decides anything: it is not in the world's state or a save, and it changes nothing of the world
halt betaStops a unit where it is. Its status is idle after
harvesterOf betaWhat a worker carries and where it gathers: none for a type that does not gather (gathering)
hasBuff betaWhether entity has a buff with the id buff on it now
hashInts betaA number in 0..1 for two whole numbers, the same each time and in every engine (it is integer arithmetic)
hasPack betaWhether a game has a pack on, by its id: hasPack(game, HEROES), what the editor asks before it shows a hero's fields
hasRoomFor betaWhether the entity has room for an item: a free slot, or a stack of it with room (ItemDef.stack)
hasTag betaWhether the type of a unit has one of the tags (UnitTypeDef.tags)
healingScale betaWhat healing is multiplied by for who gets it: its incomingHealing (-0.4: an anti-heal), never below none, so that nothing turns healing into harm. The engine's formula: the game's is world.settings.combat.healingScale
healthFloor betaThe least health damage leaves a unit with, by the buffs it carries (BuffDef.minHealth): the highest of them, 0 where none says
healthPerMana betaWhat a unit pays its abilities' mana costs with in health, for each point of mana, by the buffs it carries (BuffDef.paysWithHealth): the highest of them; 0 where it pays with mana
heightsFromPixels betaHeights from the pixels of a picture (RGBA, as a canvas gives them): dark is low, light is high, the picture stretched over the corners of the map's ground. A heightmap made elsewhere, read into a map
heightsToPixels betaThe heights of a terrain as the pixels of a picture (RGBA), a pixel a corner: the lowest black, the highest white
heldShare betaHow full an ability held to charge is (AbilityDef.hold), 0 to 1: none where the unit holds nothing
heroAssists betaThe heroes who assist the kill of victim by killer: those the engine found (foundAssists), as the game's rule keeps them (HeroSettings.assists). None for a victim that is no hero, nor in a game without the heroes pack
heroBehind betaThe hero behind what did something: itself, or the hero whose summon it is (summoned.by). None for what no hero is behind (a tower, a creep)
heroCallings betaA hero's callings, strongest first (in the order its type gives those of one strength), each with its definition: one the game has no definition of is named by its id. None for a unit type that is no hero or says none
heroesOf betaHeroes a player has, fallen ones included
heroFromRecord betaA hero made from a record (see heroRecord) for a player at a point, under the name it had unless told another
heroKillWorth betaWhat the kill of a hero is worth in the game's money, as the engine's rules have it (what assists share, HeroSettings.assistGold): the middle of its bounty (UnitTypeDef.bounty), or 100 and 25 a level
heroOfState betaWhat a player was told of a hero in their snapshot (heroState): its level to everyone, its experience, points and what it can learn to its side. None for what is no hero
heroRecord betaA hero of a world as a record, to carry into another (see applyHeroRecord). Throws for what is no hero
hire betaHires a unit at a place that hires for a player: a tavern's hero, a dock's boat. Paid for, and made next to the place, a boat on the water nearest it. The unit, or nothing with the player told why
holdOff betaOne tick of an attacker that may have to wait for room at the target it was told to fight, called before engage. Closing in on a target with no room left for one like it (isCrowded), or held up on the way past the game's patience (isBlocked), it waits (waitBy): just behind those fighting it, on its own side, making way for others, hitting what else comes into its reach without letting go of its target. Every fourth tick it asks for a free place by the target (freeSpot) and, given one, goes in again. True while it holds off: the caller does not engage this tick; false when it is to fight as ever
holdsPack betaHolds and channels aimed as they go: what a game with it (Rules.packs) gets for abilities held to charge and let go (AbilityDef.hold: cast, the hold starts where the caster stands, and it goes on with what it was doing; the release command, the key let go or a click, sets it off as full as it was held: HoldDef.range, scale, a tap's other effects; it goes off by itself at upTo; a stun, a silence or its death lets go of it for nothing), channels aimed as they go (channel.aimed: the aim command moves where they go off at) and channels kept up as the caster walks (channel.walks). What a unit aims as it goes is the aiming component, told to its owner; releaseHold, aimAt and heldShare in code
holdsUp betaWhether a buff holds a unit up in any way (unstoppable is proof against these): stuns, roots, silences, disarms, controls, suppressions and grounds. Not a slow
homeOf betaA side's home, where its heroes come back and are recalled to: the map's point named home.<team> (home.1), or else the structure of the player's side nearest near (its core, its hall), or else nothing
hotMod betaA mod's module's new version, taken while it runs (hot reload), as hotRules takes a game's: at its end, if (import.meta.hot) import.meta.hot.accept((module) = hotMod(import.meta.hot, goldRush, module?.goldRush)) The mod given is made the new one in place, and every game of the page played with it is made again of its parts as they are now (recompose) and takes that. What does not go (no new module, another mod, mods that no longer go together) loads the page again
hourOf betaHour of the day after so many seconds of play. Noon in a game without days
ignite betaSets grass alight: the cells there that can burn start burning (foliageIgnite is asked of each), and the fire goes on from them. by: who lit it, whom its damage is dealt by. A cell catches where its style burns (flammable over 0), it stands whole or grows back, and it is not on water, a road (the game's road tile), what blocks the way or under a building. Past the most that may burn at once (FoliageFire.maxBurning), the rest wait their turn. Returns the cells that caught, in order; none in a game whose grass does not burn (fire: false)
inArea betaWhether something radius round at a place is in an area, any of it (effectArea): what an effect with a shape reaches
innateLevel betaThe level of a hero's innate (HeroDef.innate) at a level of the hero: one for each of innateLevels it reached, or the hero's own level where it says none; never past the ability's maxLevel where it says one. 0 before the first
inShape betaWhether a point is in a shape
invalidateStats betaSays the stats of an entity, or of every entity when none is said, are to be added up again the next time they are asked for: what a stats hook or a buff's change reads changed (an ally came near, a flag of the game's). What the engine knows about (buffs, items, levels, research, the time of day) it notices by itself
isAvailable betaWhether a player may make a unit type or research an upgrade at all, as their race goes (UnitTypeDef.race), and then as the game's available hook says: what they may not is not on their buttons, and an order for it is refused. What it requires is another question (unlocked), asked only of what is available
isBlocked betaWhether the attacker has been closing in on the target for longer than the game lets it (RuleSettings.combat.giveUpChase) without getting closer
isBurning betaWhether a thing burns now: not one put out, nor one burnt down (or killed by other means while it burnt)
isCleansable betaWhether a cleanse takes a buff off: harmful, and holding its carrier up (holdsUp) or slowing it, but neither a suppression nor being thrown up
isCommand betaWhether a command is one of the engine's of a kind, narrowed to its shape (isCommand(sent, 'order'): its units and its order): what reads a command it did not write, a game's own (ModCommand) passed over
isControlled betaWhether a buff takes a unit's orders now (BuffDef.control): it refuses any new
isCrowded betaWhether the target has no room left for another attacker like this one
isGateOpen betaWhether a gate of the map is open, by its name. Nothing for a name that is no gate
isGroundChanges betaWhether a save's ground is the changes of a map, not the whole of it
isGrounded betaWhether a unit cannot rush or jump of its own now (BuffDef.grounded)
isInvulnerable betaWhether a unit takes no damage and no enemy's ability may be cast on it: by its type (UnitTypeDef.invulnerable) or a buff it carries (BuffDef.invulnerable), as declared or as code decides
isMadeOf betaWhether a game is made of this game or mod: is it, or has it as its base or one of its mods, at any depth
isNight betaWhether the hour (0..24) is night under the day cycle, before its dawn or from its dusk; never night without a day cycle
isObject betaWhether a value is a plain object (not a list, not null): what most of a file's fields are
isPhasing betaWhether a unit walks through other units now, and they through it: a buff it carries says so (BuffDef.phasing), as declared or as code decides
isRooted betaHeld to the spot: it can do everything but walk
isShunned betaWhether the attacker leaves the target alone for now (see shun)
isSilenced betaKept from using its abilities: from this one, when it says which (a silence of fire spells only). Without an ability, whether anything keeps it from using some
isSpell betaWhether the ability is one of the spells the hero brought along, as opposed to what it learned
isSpellImmune betaWhether a unit is immune to spells: by its type, or a buff it carries (an avatar), as declared or as code decides
isStunned betaWhether entity is stunned now: a buff on it stuns it, or has it airborne
isUnstoppable betaNothing that holds a unit up does anything to it now: it carries a buff that is unstoppable
isUntargetable betaWhether a unit is out of everyone else's reach: a buff it carries says so (BuffDef.untargetable), as declared or as code decides
itemsTagged betaThe items of the game with a tag (ItemDef.tags), in the game's order: itemsTagged(registry, 'lifesteal')
itemTier betaThe tier of an item, epic (the old word) read as intermediate: what the registry keeps of it (ItemTier)
keepInnate betaGives a hero its innate (HeroDef.innate) where it has it not, at the level its own level says (innateLevel): as it is made, as it gains a level, as it takes another form. It costs no point, and is none of those it learns
landEffects betaRuns a list of effects where something arrived (runEffects), and tells everyone who sees it that it struck there (abilityImpact, the strike a screen's spell styles draw): what a game's own missile, wave or ball does where it hits. impact: the name the strike goes by, when not the ability's (EffectFields.impact)
lanesOf betaThe lanes of a world's map (mapLanes): what waves walk
lanesPack betaA game with lanes: its maps' lanes checked in the editor, and waves of minions sent along them from every spawner, the first firstWave seconds in and one every every seconds after, each from the wave of its number (see LanesOptions). What it adds goes with what the game has: its timers and components saved, its check after its own
lastHitsOf betaA player's last hits (enemy units they gave the killing blow to) and denies (their own side's), as counted (lastHitsPack)
lastHitsPack betaA game where last hits and denies count, as in a MOBA: each player's are counted (lastHitsOf, saved), a unit denied gives no bounty (as one killed by its own side never does) and only a part of its experience to the enemy heroes near it, and its death says so to the screen (how: 'denied', which the client shows over it). With the rule of denying (denying) unless told otherwise
launchMissile betaSends the missiles of a missile effect (EffectTypes.missile) off, as the engine's missile effect does, and hands them back: what a game's own effect does that wraps a missile (and keeps it, to steer it, or take it out with removeMissile). They go off from the context's origin (a ball, a shadow) when it has one, the caster's place otherwise, towards its point (its target, homing); they are the caster's, and what they hit is in its name
layCellLayerData betaA game's layers of cells with what its data says of them laid over (DataCellLayer): each value over the layer's of the same number, field by field (its foliage style too), one the layer has not added (named Style <n> where it says no name), one said false taken out; in the order of their numbers. A layer that lists no values has its one value, 1, first. A layer the game has not is left out. The layers given are not changed
layData betaThe game with what its data.json says over what its code says: export default layData(game, dataFile). Only the fields the game lets be changed (Rules.editable) are taken, and of the kind each holds; anything else in the file is left out, and said in the log. The game given is not changed
layeredNoise betaSeveral noises, each finer and fainter than the one before: what looks like ground and not like a pattern. 0..1
layerOf betaWhere an entity is right now. What flies is in the air, unless something holds it down
layTuning betaThe tunables of a game with what a file says over their defaults: the values kept from the tuning panel, in the game's tuning.json ({ "td.betweenWaves": 12 }). Code can still set any of them as it likes
layValues betaA definition with values over it: a copy, the parts the values go into copied too, the rest (its functions, its lists of things) shared with the one it was made from. Values by place ({ attacks: { 0: { damagePoint: 0.5 } } }) go into the list there, or make one where there is none. Nothing of the definition given is changed
learnsOf betaWhat a hero learns, in order: what its form says while it is in one (takeForm), its type's (HeroDef.learns) otherwise. Nothing for what is no hero
leaveForm betaTurns a hero in a form back into what it was (takeForm): its type, its own abilities as they were (their cooldowns as HeroForm.cooldowns says, run down while it was away when left out, what it shares with the form as the form left it), the share of its health and mana kept and what it was told going on. why is told with the morphedBack event: one of MorphBack, or a game's own word ('kill': a possessed hero that kills). False for one in no form
lerp betaGoes from a to b by t (0 gives a, 1 gives b); t is not limited to 0..1
lerpAngle betaGoes from angle a to angle b by t the short way round, in radians
letGo betaLets a rider go (attach): it is back in the world where its host is (or where it was), the ability's cooldown starts, and onEnd happens in its name at point (where it is when left out), its host the target. False for one that rides nobody
levelNeeded betaHero level needed to put the next point into an ability
logLine betaAn entry as one line of text: warn [server] tick 120 of td: a connection took in too slowly {bytes: 12}
lookAhead betaLooks ahead of a unit on its way for units standing in it (within RuleSettings.movement.lookAhead): a way round the knot they make is taken where it is not much longer (RuleSettings.movement.goesAround, the detour hook); otherwise those of them that make way (RuleSettings.movement.makesWay) are asked to step aside before the unit reaches them. The way round is beside the knot, on the side it sticks out less, at the knot's middle; the unit heads there, and on to its path from there. The number of units sent to this per tick is spread by their ids (LOOK_AHEAD_INTERVAL)
loopback betaTwo ends of a connection in the page, [client, host]: everything sent is text, delivered after the latency the options give. The whole networked way, in one page and in tests
lowerChain betaA list of effects as it runs (EffectCommon.when): every effect that waits for a moment taken out of the list and put at the end of the list of the nearest one before it that comes to that moment (a missile's effects for hit, its onEnd for end), copied; what waits on what waits itself goes in there. The list itself when nothing in it waits, so the nested shape ({ type: 'missile', effects: [...] }) and a chain are one thing by the time they run. One with nothing to wait on is dropped, and orphan told of it by its index in the list
makeHero betaMakes a unit just made a hero, as its type says (UnitTypeDef.hero): level 1, a point to spend, the abilities it can learn (none learned), the spells it starts with and its innate (HeroDef.innate), those it has not got already. What World.spawn does for a hero's type, and morph for what becomes one
makeWay betaAsks friendly units that are standing around in front of a unit to step aside. Avoidance alone cannot get a unit out of a tight group of idle ones: they would have to move, and nothing tells them to.
manaBurnPack betaMana burn, as in classic RTS games: the manaBurn effect (EffectTypes.manaBurn) takes amount of what it reaches of its mana and hurts it by as much (times ratio). The demon hunter's spell is an ability with it; Feedback is a passive whose onHit has it. burnMana does it in code
mapCells betaWhich cells of a map something on foot can stand on (1) and which have a building or a mine on them (built): for the checks, and for what the editor shows of where one can walk and build. steep counts slopes too steep to walk
mapFields betaThe fields of the map itself, and of its players
mapFileStem betaWhat a map file is called, without what comes after the first dot: the name of the map in small letters, with a dash for whatever is not a letter or a number. The Pass! is the-pass
mapGeneratorWorker betaMaps made in a worker whose file serves them (serveMapGenerator): the page makes the worker as its bundler wants it, mapGeneratorWorker(() => new Worker(new URL('./generate.worker.ts', import.meta.url), { type: 'module' })). Given as a function, the worker is made at the first map asked for: a menu that is never opened fetches none of it
mapLanes betaThe lanes of a map: every path a spawner is on, with what stands at each end
mapNamesSource betaThe names of what is on a map as TypeScript, for a game's code to use: world.named<RoadNames>('gaet') does not compile. The editor writes it next to the map (road.names.ts for road.vgmap.json), anew with every save
mapObjectivePlayers betaWho is given a map's objective when the rules do not say (giveMapObjective): the map's players a person plays, not those it says the computer plays or nobody does (MapPlayer.controller), in the order of their ids
mapObjectives betaObjectives as data on the map (campaign plan EQ3): a map's objectives (MapObjective, kept in GameMap.data.objectives, written by the editor's Objectives panel) given at the start to every player a person plays, as the world is made from the map; those given by a rule wait for the rules (giveMapObjective(world, id)). Done and failed as any objective is (world.objectives.complete, fail); a game that is won by them has objectiveVictory as its victory. The map's checks say what is wrong with them (checkMapObjectives)
mapObjectivesOf betaThe objectives a map gives (GameMap.data.objectives), in the order it gives them: none for a map with none. What is kept there and is no objective (no id, no words) is left out, so that a file changed by hand breaks no rule that reads it; the map's checks say so (mapObjectives)
mapTerrain betaThe terrain a map describes
mapText betaA map as the text of its file, written to be read by a person comparing two versions of it: every part on a line of its own in a set order, one object to a line in the order of their ids with what each holds in a set order too, and the layers last. Moving one object changes one line, whatever was done before
mapThings betaThe things of a kind of a game's own on a map (MapThing), as the map keeps them: none for a kind it has nothing of. What is kept under that name and is no thing (no id, no place) is left out, so that a file changed by hand breaks no rule that reads it
mapTileIds betaThe ids of a map's own tiles (MapEnvironment.tiles)
markedBy betaThe unit a recast goes to (AbilityRecast.mark): of those alive and in the world that carry the buff from the caster, the nearest to it, the lowest id among those as near. None when none does
maxLevelOf betaThe level a hero stops at
maxPlayersOf betaPlayers a map of the game may have (Rules.maxPlayers): 8 when it says nothing, never more than the fog keeps apart
mayDeny betaWhether an attack on one's own side is a deny the rules allow (DenyOptions): told to, low enough, of what may be
mayReach betaWhether an effect may reach a target, as the game says (the beforeEffect hook): what a game's own effect asks of each unit it does something to without effectTargets (which asks it of every one it gives). True where no handler is there. missile: the missile that reached it, for a missile's hit
measureMap betaWhat a map is like to play on: the way on foot between every two starts, the narrowest place on those ways, and for each start the nearest mine and how much it holds, the ground around it that can be built on, and its trees; side by side, with what one start has much more of than another said. Then what the game measures of its own
meets betaChecks requirements and tells the player what is missing. True when there is nothing in the way
memoryNavigationCache betaKept in memory, the last built first, up to maxBytes of them (64 MB when left out): a map of 512 cells a side is under a megabyte
mergeMaps betaMerges two versions of a map from the one they came from: parts and things by their ids (those of its look too: its lights, effects, decals), the ground cell by cell. Never throws for what both changed: ours is kept there, and said (conflicts). Maps of different sizes are not merged (ours, and said)
mergeValues betaValues merged: what b says over what a says, at any depth. Places said over a list go into it ( 0: amount: 50 over a list of effects); a list said is the list
migrateMap betaA map file brought up to the format this reader knows, step by step. Throws for what is not a map file, and for one of a newer format: what changed in it cannot be known here. to and steps are the reader's own when left out
missing betaWhat of a list of requirements a player does not have
missionRulesOf betaThe rules a map keeps (GameMap.data.rules), in their order: none for a map with none. What is kept there and is no rule (no id, no condition) is left out, so that a file changed by hand breaks no game that reads it; the map's checks say so (checkMissionRules). Actions that are of no form the pack knows are left out of a rule the same way
missionRuleState betaWhat a mission rule is now (MissionRuleState): none for a rule the world has not, or has not checked yet
missionWon betaA mission won: how long it took, the best time kept, the heroes it ends with to carry on, the campaign at the mission after it (next), or still at this one when it was the last, and what it carries of the game's own (data: its keys over the ones kept, the rest kept as they were). A new progress: the one given is left as it was
mitigation betaWhat is left of damage once the armor or the magic resist of the target had its say, as a part of it: 100 of it halve what arrives, and below 0 it adds. The engine's formula: the game's is world.settings.combat.mitigation, which is this unless the game says (penetration: mobaStatsPack)
mobaStatsPack betaThe stats of a MOBA, for a game that has them: ability power (what scaling: { abilityPower } reads), critical strikes, armor and magic penetration, life steal and omnivamp, tenacity, slow resistance, heal and shield power, ability haste, with the hero arena games' formulas for each. A game without it has none of these stats
morph betaTurns an entity into another type, where it stands: a building upgraded, a unit transformed (a druid into a bear, a siege tank set up). Everything of the type is the new one's: stats, how it moves (and on the ground or in the air), whether it fights, gathers or carries, its abilities (those of the old type it keeps are kept as they were, at their levels and cooldowns), and what it makes. What it went through stays: health lost, mana, buffs, experience, items. The parts of the game it had none of are given it as spawn gives them (Component.onSpawn), and the morphed hook runs: what a pack gives it of its own for its new type (the heroes pack: a hero's level, a shop's wares). options keep its orders and the shares of its health and mana, and say its abilities: what a hero's form takes (takeForm)
movesPack betaMoves, as in a MOBA: what a game with it (Rules.packs) gets beside the engine's blink, dash, knockback and pull. A dash to the unit it was cast on (to: 'target': after it as it moves, to its edge, or through it), a knockback that throws the way it is told (direction: away, aim, over, towards); for both, what happens to each the one moved meets on its way (collide, stops) and where it meets a wall (onWall). The swap effect (two units trade places) and attach (one rides another, out of the world, until it is let go: its time, its host gone, the ability cast again; letGo in code)
moveTo_2 betaSends a unit walking to a point, the way around what is in the way. How it goes is in entity.movement.status: moving on the way, arrived once there, failed when there is no way there or it got stuck. Held up by others it tries again a few times before it gives up (MovementState.tries). An order calls this once and then watches the status; calling it again with the same goal starts the walk over
moveToEntity betaWalks towards an entity until within range of its edge. Safe to call every tick.
navigationWorker betaA builder that builds in a worker: one whose file serves builds (serveNavigationBuilds). In a page, the page makes the worker, as its bundler wants it: the library makes no worker of its own there. A worker's file of two lines (serveNavigationBuilds imported from the engine, and called), and the page: navigationWorker(() => new Worker(new URL('./navigation.worker.ts', import.meta.url), { type: 'module' })), the builder of every world it makes (NavigationBuilds). Given as a function, the worker is made at the first build: a page whose menu builds nothing fetches none of it until a world is made (OF2); given made, it is used as it is. Given as a function, as many as workers are made as builds are asked at once (a world's navigations, one for each size of unit, the water's, each side's: built side by side, the Well's four in the time of its longest), each build to the one with the fewest under way
nearestDryGround betaThe nearest place to one that is not in the water, at a cell's middle: for a pass of a game's own that puts something down where the ground may be wet
nested betaValues with one field set, nested as the path says: nested('stats.health', 420) is { stats: { health: 420 } }
nestedPartId betaThe id a part of a prefab inside another has in the outer one's copy, as the editor and prefabsFrom number it: made from the inner prefab's id there and the part's id in it (itself one of these, a level down), the same each time it is read; below zero, where a prefab's own parts (the map's ids they had) never are
newCampaignProgress betaA campaign as it is before anything is played: at its first mission, with nothing carried
noStats betaGives a CoreStats with every stat at 0
notReady betaWhy an ability cannot be used right now, or undefined when it can. Items ask for no mana, and silence does not stop them
object betaAn object with these fields. Fields that are not asked for are dropped, so nothing unchecked gets through
objectFields betaThe game's fields for a placed object, by the type it is of. None for a type the game does not have
oneOf betaOne of a few fixed values
onNewGameVersion betaHears of every new version of a game's rules taken in the page (hotRules). Returns what stops it
onNewModVersion betaHears of every new version of a mod taken in the page (hotMod). Returns what stops it
optional betaWhat may be left out
orderSays betaWhat an entity's current order says of a fact (OrderFact): false for an entity with no order, or an order whose behaviour says nothing of it
overChoice betaWhat a data.json takes of a set laid over what the code took (DataSetChoice): the data's all, none, only or except in the place of the code's, the code's own definitions (with) and changes kept
overheal betaHealing past full health, over of it, becomes a shield on whoever was healed, where the healer carries a buff that says so of what it gives (BuffDef.overheal, of: 'given') or the healed one of what it gets (of: 'taken'): its buff put on the healed one, its shield what spilled over (by part), up to most of its max health. What World.heal does with what it could not give
packFromJson betaMakes a mod of a pack's file (its text, or what was parsed of it): checked, then applying its definitions (each list in the order of its ids, a definition the game has put in its place), its data over the whole and its settings. Its hash, of the text as given, goes with the game's mods
packsOf betaWhether a game was made with packs, and which: those of the mods its composition kept a hash of, by id and version
patchAt betaThe patch of a layer an entity stands in, 1 and up, or 0 where it stands in none (ConcealmentOptions). For a game's rules and screen: who is in the grass
patchCells betaThe patch of a layer of cells one cell is in: the cells of the layer that touch it and each other, through sides and corners, as indices (z * width + x) in order. The patches of a hiding layer are these (concealmentPack); the editor's wand picks one. None where the cell is off the ground or 0 const field = patchCells(world.terrain, 'grass', cell, sameValue: true ) world.setCells('grass', field, 3)
pausesLeft betaHow many pauses a player has left (RuleSettings.talk.pauses.each, less what they used)
pay betaTakes a cost out of a purse, per resource; a purse may go below zero, so check shortOf first
penetratingMitigation betaWhat is left of damage once the target's armor or magic resist, less what the source's penetration ignores, had its say: the pack's settings.combat.mitigation
pickAttack betaWhich of an attacker's attacks it uses against a target, by place in UnitTypeDef.attacks, as the game's rules pick it (RuleSettings.combat.pickAttack): -1 for none, its attacks reach not where the target is
pickUp betaHas the entity pick up the item lying on the ground by its id; returns false when none is there, no slot is free or beforePickUp refuses
pileType betaA type of pile, to put in the game's units: something lying on the ground that blocks nothing, is fought by nobody, and is handed (pileOf: its kind and how much) to who walks over it. kind and amount are what it holds when the death that drops it says nothing else
ping betaA player marks a spot of the map (pinged) for their allies (to: 'allies', when left out) or for everyone ('all'): told to them and to who watches, as sessions do. Of a kind the game's rules have (RuleSettings.talk.pings.kinds), as many in a while as they let (RuleSettings.talk), and as the beforeTalk hook lets it, which may change who hears it
pingKinds betaThe kinds of ping a game's rules let go (RuleSettings.talk.pings.kinds), as they are now: its list, or what it works out from the registry (a file of the game's the editor writes)
placementCells betaWhich cells of the ground a structure would cover at point are in the way, row by row from its corner (w across, d rows: siteOf's cell first): taken (free says no), or not explored (explored says no, where it is asked). What a preview draws cell by cell (RV88); placementProblem says the whole, the game's own say among it. None for a structure built on a resource, whose ground is the resource's
placementProblem betaWhy this structure cannot be placed here right now, or undefined when it can. The ground has to be free, then the canPlace hook has its say. With fog, ground the player has never seen counts as taken too: that is for the player's own preview, which must not give away what is in the dark
placeStartingBase betaPuts down what a start as data says (StartingBaseData): the hall at the point, what the race builds on the closest gold mine (onMine) on it, and the workers and the other units in a row on the side of the hall that faces the mine, facing it. With no mine in reach, the row faces north. A classic melee start; a race's start as data does this
placeUnits betaBrings carried units into a mission for a player, round a point (spread apart, in rings: 1.5 when left out), each with its name, its share of health, its veterancy and its items. What the game no longer has, a type or an item, is left out. The units made, in the order of the records
plainData betaA copy of a value that is plain data all the way down: numbers, text, lists and plain objects, which is what a file and a wire can carry. Throws when something in it is not (a Map, a class, a function), saying where: what is whose data it is ("Save", "Map"), where the path so far, advice what to do about it
playCinematic betaPlays one of the view's cinematics on the screens of the players it is for, now
playerFacts betaWhat there is to know about a player for whether they can make something, see trainRefusal
playerFields betaThe game's fields for players (for: 'player') of a registry, as MapFieldDefs
playerSlot betaMakes the MapPlayer for a player's id, with the default name Player <id>, its own team and the colour from PLAYER_COLORS
playFx betaPlays one of the view's effects on the screens of the players who see where it is (or those it is for), now. What it gives back stops it (stopFx). Not in the world's state but for its count: a save, and a player who joins later, know nothing of the effect itself
playReplay betaPlays a replay back, as a watcher's session (connect): a replay of commands run again (playCommands), or what the host sent coming in as it came, by the replay's ticks; speed times as fast. game is the game module it is of, or the modules the page has, by id
playTileset betaThe tiles a world from a map is painted with: the game's, then the map's own that are none of them, as many as a map can hold. The order a played ground's paint is in, and its looks
poolCosts betaWhat an ability costs a caster of its pools now (AbilityDef.cost, grown by costGrowth), by pool: none for an ability that costs nothing of them
poolOf betaHow much a unit holds of one of its pools (UnitTypeDef.pools): 0 where it has none
portal betaPuts a unit somewhere at once, on the nearest ground it can stand on: what a waygate and a town portal do, for a game's own rules. Told to everyone (portalUsed)
portalsPack betaPortals, as in classic RTS games: waygates (UnitTypeDef.waygate), which a unit told to (a right-click, as any building is walked up to) walks into and comes out of where the gate leads (the "Leads to" field of a placed one, a point of the map; setWaygate in code), and the townPortal effect (EffectTypes.townPortal), which takes the caster and its units around it to its side's home nearest where it was aimed (homeOf: the map's home.<team> point, or the nearest of its buildings). portal and townPortal do them in code
presetFountain betaA fountain: a building that keeps the game's aura on who is around it (aura, the id of a passive ability with an aura effect: a fountain of health's regeneration, a fountain of mana's). It cannot be hurt; a map puts it down for the neutral player, so the aura says affects: 'all' to reach everyone (the neutral player is nobody's ally). What is given over the fountain's own goes over it: presetFountain('healingWaters', { id: 'fountainOfHealth' })
presetGenerator betaA generator to take whole: hills and water, the paint, the starts, trees in patches and rocks about, with the parameters levels, water, roughness, hills, trees and rocks; what the trees and rocks are is the game's to say
presetMarket betaA marketplace's abilities: one for each trade (MarketRate), cast at once (target: 'none'), with an exchange effect that trades the caster's owner's resources at its rate. A building of the game's lists their ids in its abilities (abilities: market.map((ability) => ability.id)), the abilities go in the rules' abilities. With less than the amount to sell, the player is told and nothing goes. The computer player does not cast them in a fight (their ai says not now); its brain's spells may
priceOf betaWhat buying an item comes to for someone who carries these things: the items it is made of that are there are used up and taken off the price, and so are the parts of the ones that are not
productionOf betaWhat a building makes, and where it goes: none for a type that makes nothing (productionQueue)
profileReach betaHow far a path's profile reaches from its line, in cells: half its bed and its banks
proxiesOf betaThe units of the caster's an effect with a proxy origin goes off from (ProxyOrigin), in the order it goes off from them: those of its type that are the caster's (put down by it: madeBy; or its owner's where nothing says who put one down), within its range of the caster and near where it was aimed, and of those the ones it picks. The caster is not among them (ProxyOrigin.caster says when it goes off from it too). For a game's own effect, and a screen
putOut betaPuts out a thing that burns: it stands, charred as far as it burnt, and may be set alight again. Whether it burnt
quantize betaAn entity's state with its numbers rounded for the wire: positions to 1/256 of a unit (16 bits over a map of 256), the facing to a 256th of a turn, health and shield up to whole points (what is alive keeps at least one), mana down (an ability is never shown ready that the simulation would refuse), what is under way to hundredths, the seconds left of buffs and of shared cooldowns up to whole seconds
queryWorld betaWhat in the world is all a query asks (WorldQuery), in its order, as many as it says: a new list. Throws for a query that asks is with no player to ask it of, or sorts by distance with no near
queueOf betaWhat a building in a snapshot makes, the first being made: empty for one that makes nothing, or another's (a screen's, a computer player's view)
queuePoint betaWhere an attacker waits for room at a target (holdOff): out at the game's queue distance (RuleSettings.combat.queueDistance) on its own side of it, or at angle (seen from the target, about the up axis), on ground it can stand on
raceOf betaThe race a player plays: none in a game without races, and none for the neutral players and the creeps
randomSeed betaA seed of the moment, for a game no other was (the clock: a session's, never the rules'): where every new world made without a seed of its own gets its seed (a map played in a page, on a server, in a worker). The same seed, the same game
rangeAgainst betaHow far an attacker's attack reaches a target: the range of the one it uses against it (pickAttack), the first's when none does
rankOf betaThe rank a unit has reached, as a definition, or none: of the game's ranks (VeterancyOptions.ranks)
reaches betaWhether an attack that is for these targets is for this one
readCampaignProgress betaProgress as it was kept, checked and brought up to date. Throws on what is wrong
readHeroRecord betaA record read back from what was kept (a campaign's progress, a file), checked. Throws on what is wrong
readScenario betaA scenario file as it is now, checked. Throws on what is wrong with it
recallAbility betaRecall (features-plan F2): a hero stands and channels for a few seconds, then is at its side's home (homeOf), however far; hurt in the meantime, or told to do something else, and it stays where it is. An ability to give heroes (UnitTypeDef.abilities), made of the engine's parts: a channel (AbilityDef.channel) that breaksOnDamage, and the teleport effect when it is finished. Its id, name, how long it takes, its cooldown and key are the game's to say
recompose betaA game made by composeGame made again, of its base and its mods as they are now (a base made of mods made again too): what a game played with mods takes as one of them, or its base, is saved while it runs (hot reload). A game not made so is itself. Throws as composeGame does: mods that no longer go together
recordCommands betaRecords a world from now as its start and the commands given to it from outside a tick (the players', by a session or a server; a computer player's are its system's, which runs again), with its hash every every ticks (300, ten seconds at 30 a second, when left out). Starting takes a save of the world, as saving does (it puts the crowd back as a load does)
recordGame betaRecords a game played in the page (RecordOptions): as its start and its players' commands (kind: 'commands', the default: recordCommands), or as an observer from player's side sees it, what changed sendRate times a second (kind: 'frames'). Frames are answered at once, as by a watcher who missed nothing, so what is kept is what changed and not the whole world again
redefineIn betaPuts a definition with values over it into the registry, in the place of the one there: what is made of it from then on is made of the new one. False for a definition the game does not have
reduceCooldown betaTakes seconds off what is left of an entity's ability's cooldown (AbilityState.cooldown): a number of them, or a share of what is left (0.5: half). Never below 0. A kill that cuts a cooldown, a hit that refunds a part of it. False for an ability the entity does not have
refreshVitals betaBrings the most health and mana an entity can have in line with its stats. What is gained is added to what it has, what is lost is only taken when it has more than it can hold.
refund betaGives back what something cost, or a part of it
refusalOf betaWhat a hook that tells the player refuses with: its reason, or the engine's word where a handler gave none; nothing where it lets through
regionFields betaThe game's fields for a region
regrow betaHas ruined or burnt grass (cut, flattened, burnt) grow back to what it was: over over seconds (growing, which hides and burns as whole grass does, and whole at its end), or at once when left out or 0, when grass growing back already stands whole at once too. What it waited for by itself (regrows) it waits for no more. Told as it is whole (foliageRegrown), by by where it says. Returns the cells that started to, in order
release betaLets go of whatever the attacker was engaged with, and of its spot there. Without the world, the rest of the tick still counts it there, with its spot
releaseHold betaLets go of what a unit holds to charge (AbilityDef.hold), at point (where it was last aimed when left out): it goes off as full as it was held, paid for then (fire), or a tap's effects where it was let go soon. False where it held nothing, or what it held could not go off (the player told why)
reloadGame betaPuts a new version of a world's game into it while it runs, as a game's files are saved during development (hot reload): its unit types, abilities, buffs, items, upgrades and races, the code of their effects and of its orders, and its rules. What world.redefine changed while it ran stays over them, and its units take their types as they are now. What the world was made of otherwise (its systems, hooks, components, resources) is not: a change to those wants a new game, which is said (hotRules loads the page again for one). Throws for another game, or a module that is no game (as createRegistry)
remainsPack betaRemains that are things for a game (RemainsOptions): rubble where buildings fell, piles where units did. The game is the same otherwise; its units list the types (rubbleType, pileType, or its own)
rememberedCells betaWhat a team remembers of cells the rules changed out of its sight (TeamMemory.cells), as a save keeps it: by layer, the value it last knew by cell, a copy. undefined where it remembers none; a layer it remembered and has forgotten all of may stay, empty, until the team's next look
removeAbility betaTakes an ability off a unit; what it took the place of, where it was given in place of another for a while, is back there. False where it had none
removeBuff betaTakes a buff off, before its time is up: the one of it source put on, for buffs each source has their own of, or the first. The buffEnd hook hears of it, and the buff's onRemove
removeDefinition betaTakes a definition out of the registry (the Data panel's Delete): what is made of it from then on is not. False for one it has not. Not for a world that runs: its units of the type are there
removeMissile betaTakes a missile of an ability out of the world before it is done: blocked by a wall of wind, caught, swallowed. It hits nothing more, and every screen is told (missileRemoved). With end, what happens where it ends (EffectFields.onEnd) happens where it is, as if it had come to the end of its way. False for one that is not in the world (world.missiles) any more
removeStacks betaTakes stacks of a buff off an entity: count of the first of it, the buff once none is left; all of it, every one of it there is, when count is left out. What removeBuff does, and an attack that consumes its buff
replaceIn betaPuts what next has into current, in its place: everything that holds current has the new version
replicateEvent betaHow an event of the world is told to a player, written beside what emits it: replicateEvent(healed, 'heal', (heal, view) = view.knows(heal.target) ? type: 'heal', ... : undefined). Listed by the engine for its own, by a pack in GamePack.replications
requirementRefusal betaWhy something may not be made as far as what it requires goes: as the simulation decided (unlocks), or by the finished buildings it requires
resetCamp betaThe camp gives up the fight now, as it does resetAfter after the last blow: its list emptied, every creep of it on the way home
resizeMap betaA map grown or cut on any side: the ground, cliffs, water and paint go on as they were at the old edge where it grows; everything on it moves along, and what is no longer on the map is gone. The map itself is left as it was. What the engine keeps moves (objects, camps, regions, points, paths, doodads, cameras, the players' starts, the bounds, the game's own kinds' things in data); what others keep moves with the resizers given (the client's looks: mapLooksResizer)
resourcesPack betaUnit resources: what a game with it (Rules.packs) gets for pools beside mana. A unit type's pools (PoolDef: energy back each second, fury that decays when unused, heat that overheats at a threshold, flow filled by walking, ammo that reloads), an ability's cost of them (not ready with less, paid as it goes off) and gain (given as it goes off), costs that grow by a buff's stacks (costGrowth, mana too), an attack's cost (attackCost: no attack with less), buffs that drain a pool or mana each second while they last (BuffDef.drain), and the gain effect. changePool, poolOf and poolCosts in code
resourcesPass betaResources: one near each start (towards the map's middle, as far as main says), and more spread over the map, mirrored as the map is, each put down by the game
respawnCamp betaBrings a cleared camp back now, the same creeps where they stood (campReturned): from code, or when its time comes
respawnIn betaHow long until a fallen hero comes back by itself, in seconds: none for one that is not waiting
respawnPack betaA game whose heroes come back by themselves after a while, at their side's home (see RespawnOptions): a saved timer each, shown on the HUD as a revive is, and waited for by the computer player in place of reviving at an altar. Revived at an altar in the meantime, it is back then, and the timer comes to nothing. For a game with the heroes pack on (heroesPack()): one without it is refused
restoreCharges betaGives an entity's ability with charges uses back, up to all it holds: count of them, or all when left out. What a game's effect or hook does where the data's refill is not the way (a kill gives one back). Its cooldown stays
revealUnit betaLets a team see a unit wherever it is for so many seconds (the longer of these and what it had): in the fog (lit where it stands), in a bush, invisible or camouflaged. What the revealUnit effect does, for a game's own code. Works in any game: the engine's fog and sight read it
reviveCost betaWhat it costs to bring a hero back, in the game's money, and how long it takes
reviveHero betaPuts a fallen hero back into the world. One an altar was reviving (back by itself, bought back, by code) is taken out of the altar's queue, what was paid for it given back
roadsPass betaRoads between the starts (or places given), the way something on foot would go (over the level map, by ramps, around water; the gentlest ground preferred), painted with a tile
roomFor betaHow many attackers like this one may fight the target at once, as the game's rules say (RuleSettings.combat.engageRoom)
roomIn betaHow many more a transport has room for
rubbleType betaA type of rubble, to put in the game's units: a resource that blocks its footprint, gathered (cleared) as kind by the game's workers, with no look of its own (the game's looks give it one)
ruin betaRuins grass: cut to stubble (cut, state cut: a firebreak), crushed flat (crush, state flattened, as what tramples it does) or scorched black (scorch, state burnt: nothing left to burn) (FoliageRuin). What burns there goes out as it is ruined. It hides nobody and does not burn until it has grown back (regrow, or by itself after its style's regrows seconds, over its grows). A cell is left as it is where it is that already, or burnt (nothing to cut or crush), or cut (nothing to crush). Told (foliageRuined), by by where it says. Changes the state layer alone: the ways are not weighed again. Returns the cells ruined, in order
rulesOf betaThe module underneath what a host is given: a game's (toRules()), or the module itself
runEffects betaRuns a list of effects as the engine runs every list (EffectDef[]): each by its handler, in the order of its chain (EffectCommon.when lowered into what it waits on). What a game's own effect does with the effects it holds (defineEffect({ type: 'orb', run: (context, effect) => runEffects(context, effect.effects) })), and a hook or a system with a context it puts together (EffectContext: the caster whose they are, the ability, the place, an origin they go off from). Nothing is told: landEffects is for where something arrives
runesPack betaRunes, as in classic RTS games: an item that is a power-up (ItemDef.powerUp, RunesOptions.powerUp in code) is used as it is picked up, by a unit that walks over it (RunesOptions.takes) or is told to pick it up, and never carried: whoever picked it casts its ability where it stands. A rune of healing is an item whose ability heals around; a tome one whose ability has the tomes pack's tome effect. usePowerUp does it in code
runReplay betaA replay of commands run again, to its end or a tick, with no screen: the world as it is then, the first tick whose hash differs from the one kept (none when all were the same), and what differed first at the first checkpoint (recordCommands' checkpoints) where the world was not the one recorded: the entity and its field (entities[id 11].pos.x), and what each held. A replay with no checkpoints says the tick alone. What a test of a replay, and a server checking one, use
satisfies betaWhether a version is in a range: 1.2.3 exactly, or ^1.2 for 1.2 and later of major version 1
saveDifference betaWhere two saves of a game first differ, as checkDeterminism looks (what decides first: the tick, the random state, the players, the entities): the path to it (entities[id 11].pos.x) and what each holds there, or nothing when they are the same. What the screens remember of the map, and the hash of the rules they were made with, are left out; with the game's registry, so are components that hold what they are made with (a screen asking for one makes it). What a replay that came apart says at its checkpoints (runReplay), and v12 save diff
saveHeader betaThe header of a save
saveProblem betaWhether a game loads a save, as far as the save's header says (saveHeader): nothing, or why not. For a list of saves, which has no need to read each of them whole. What only the whole save says (something in it the game no longer has, a game that decides save by save) is found as it is loaded (updateSave, loadWorld)
scaled betaAn amount with what the stats of the caster, and the levels of a hero, add to it
scatterPass betaThings scattered over the map: as many as the density says, in patches of a noise, at least spacing apart, off the starts and what else they avoid, where they may go; each put down by what, mirrored as the map is. Trees now; rocks, houses, ruins and the rest the same way, with another what
scenarioOfMap betaA map made for a test, as a scenario
scenarioOfWorld betaA world at the moment that matters, as a scenario
scenarioWorld betaThe world of a scenario, with the game's module: a map made into a world as a game would make it (with the seed 1, so that it is the same every time), or a saved world loaded as it was
scoreOn betaA source of a stat, typed by its event, the engine's or the game's own: scoreOn(entityDied, ( entity, killer ) = killer && player: killer.owner )
sell betaGives an item back at a shop nearby, for a part of its price. What has charges is worth as much as is left of it
sellValue betaWhat a shop pays for an item: a part of its price (the item's sellRate, or the game's sellPrice), and of what is left of it for what runs out (a stack counts each of it)
sendWave betaSends a spawner's next wave now, whatever its timer, as the game's lanes say (LanesOptions): for scripts, tests and debug tools. Its units come out by the spawner, walk the lane fighting what they meet (attackPath), then go for the goal at its far end. Gives back the units, none for a spawner on no lane
serializeMap betaA map as its file. Throws when what the game keeps with it (data) is not plain data, saying where
serveMapGenerator betaWhat a worker's file of a game's maps does: it makes, with the game's generator (Rules.generator) and its registry, the map of each set of options it is sent, and sends it back. A worker's file of two lines, the game's rules imported and this called with them; port is where it hears, as for serveNavigationBuilds: the worker's own scope when left out
serveNavigationBuilds betaWhat a navigation worker's file does: it builds what it is sent and sends back what it built. port is where it hears: the worker's own scope when left out (a page's worker)
setAlight betaSets a thing alight: it burns for its time (BurnsDef.seconds), then burns down and leaves what it leaves (BurnsDef.leaves). by: who lit it, whom its damage and its kill are by; how: another kind of burning than its own; seconds: another time. The game is asked first (burnStart). One that burns already, does not burn, or is past the most that may burn at once (BurningOptions.maxBurning) does not catch. One put out before goes on from as far as it had burnt. Whether it caught
setAnchored betaAnchored units stand their ground instead of being pushed around by units walking past.
setCooldown betaSets how many seconds an entity's ability waits before it can be used again (AbilityState.cooldown), whatever it had left: 0 makes it ready. What a game's effect or hook does where the data's cooldown is not the way (a cooldown that depends on what the cast hit, a recast that starts it). False for an ability the entity does not have
setFoliage betaPaints grass of a style: world.setCells on the layer, checked (a value the layer has a style for, or 0), the cells whole again. Returns the cells that changed
setGate betaOpens or shuts a gate of the map by its name, while the game runs: what walks goes through it or around, and every screen draws it so (gateChanged). False when the map has no gate by that name
setGhost betaGhosts walk through other units. Classic RTS games do this for workers hauling resources so mining never jams.
setHeroLevel betaPuts a hero at a level as if it had got there: the points to spend, the stats that grew, the experience of that level. No message, no event and no beforeXp: for a hero that starts a map at that level, not one that earns it. Never down
setRace betaMakes a player play another race from now on: a campaign's mission, a game's own way of choosing. What they have stays theirs; what they may make is the new race's. Throws for a race the game does not have, or for the neutral players and the creeps
settleHeroKill betaA hero fell to killer, with these assisting: their records, the streaks (the killer's hero one more, the victim's ended, its killer paid the shutdown for it), and the assists' gold. The pack's death hook, after the experience
setWallGate betaOpens or shuts a gate of a wall, for everyone: open, what walks goes through its cell, whoever's; shut, around it. Its look is open or shut. False for what is no gate, or one still going up
setWaygate betaSays where a waygate leads (a point of the map by its name, or a place), or shuts it (null): what the editor's "Leads to" field says of a placed one, in code. Any building can be made a waygate so
shapeArea betaHow much ground a shape covers, in cells
shapeAsBox betaA shape as a circle or a rectangle: a polygon as the rectangle round it. For what draws only those (mist, clouds and weather in a region of the map)
shapeAt betaA shape moved to stand at a point and sized scale times: a prefab's area where the prefab is put
shapeBounds betaThe box round a shape: its least and greatest x and z on the map
shapeReach betaThe radius of a circle round the whole shape from its middle (x, z): what the spatial index is asked for
shareGame betaShares the page's world through a relay, for others to watch. Fails when the relay cannot be reached
shareWith betaShares with an ally, or no longer: control of the player's units (shareControl), and what the player's team sees (shareVision, when the ally is of another team: a team sees as one already). Nothing for who is not an ally
shieldOf betaWhat is left of the shields on an entity
shootsUphill betaWhether the target stands on higher ground than the attacker. Nothing is uphill from the air
shopNear betaWhether a shop the player can trade with is close enough to the entity
shortOf betaThe resource a purse is short of for a cost, or undefined when it can afford it
shun betaHas the attacker leave the target alone for a while: not picked by itself again until then
silences betaWhether a buff's silence keeps its carrier from an ability, or from any when none is said. For both ends
siteOf betaGround a structure of this type covers when placed at point
siteWords betaA part in words: the handler "thorns" of the hook "damage"
slotsOf betaThe slots of what a unit carries, null for an empty one: none for a type that carries nothing (inventorySlots)
smoothstep beta0 at from and before, 1 at to and after, eased in and out between: a shader's smoothstep
snapshotOf betaWhat a snapshot carries of a component, typed: snapshotOf(entity.state, shopStock) on a screen, or in a computer player's view. undefined when the player was not told it
sortTargets betaSorts what was found in an order (TargetOrder), in place, and gives it: ties by who came into the world first, so the same on every machine. nearest and farthest need the point they measure from
spawnCamp betaPuts a camp of creeps on the map. The creeps stand around the point and come back to it
spawnPrefab betaA prefab put down in the world as one: its objects spawned (world.spawn, for the owner given or as each says), its camps (spawnCamp: a world with camps seats the creeps, PlayerInit.creeps), its areas added under ids of their own; turned and sized around its middle as asked
spawnStartingBase betaPuts down a player's start at a point, whichever form it is in: the code's spawn, or the base the data describes (startingBase). Nothing for no start
spend betaHas a player pay a cost, and says so (resourcesSpent, what the score counts as spent): on what, and its id. For a game's own purchases too, so that they count as the engine's do. The purse is not checked: shortOf first
spendCharge betaOne use of an item that has charges. The last one takes the item with it
splitMissile betaSplits a missile where it is now (EffectFields.split), as it would once done: what a game's own recast does (Vel'Koz's Plasma Fission). It is gone, its onEnd not happening; false for one not in the world, or with no caster or ability left
spotFor betaWhere the attacker goes to fight the target from: its spot around it, out where its weapon reaches, or the target itself without one. The game's approach hook has the last word
stanceOf betaThe stance of a unit, as a definition: the one its component names, else the default (the first of stances with the default's id, else the first of them)
stancesPack betaA game whose units have stances: the component, the command, and the engine's acquisition read through hooks. In the default stance nothing changes. Defensive units fire at what their attack reaches and let go of what steps out of it, returning to where they stood (the engine's own way home); hold fire fires back at the last to hit it; no attack leaves everyone alone. A unit given an attack order fights whatever its stance
standsInWay betaWhether another unit stands in a mover's way: there, standing still, and on the same crowd, where each steers round the other and neither walks through. What moves is steered round by the navigation; what is a ghost is walked through; what flies or sails goes its own way. What the mover walks to, or stands where it is going, is not in its way either: it stops by it, close enough (a follower by the one it follows, a unit sent where another stands), rather than send it off
startDash betaSends an entity rushing to a spot (dash.x, dash.z): nothing stops it on the way, its orders wait, and what dash.effects do happens where it ends. A leap (dash.height) takes it off the ground until it comes down
startOf betaThe start of what a host is given, where it says none of its own: a game's (toStart()); a module has none
startsPass betaThe starts: as far apart as the symmetry allows (mirrored from one, or around the middle), each on flat, dry ground (a clearing made for it), the player's start set, and what the game puts there
steerMissile betaTurns a missile that is steered (EffectFields.steer) towards a point, as its owner's steer command does: it turns that way as it flies, as fast as its rate lets it. False for one that is not steered, or not in the world
stepAside betaAsks an ally standing in a unit's way to step aside, as the rules allow (RuleSettings.movement.makesWay, the makeWay hook). direction is the way the unit is heading, a unit long; agent where its path goes, for the step to be off it. True when it goes
stopFire betaPuts out every fire of a layer, or of all the pack's layers when none is named: what burns is burnt, what waits its turn is not lit. Returns how many cells were burning
stopFx betaStops an effect the rules played (playFx), on every screen: as its own stop says, over fade seconds
summonsOf betaThe living units a spell brought for master (the summon effect's, and raiseDead's), in the order of their ids
supplyGivenOf betaWhat a finished building of a type provides of the one pool of supply (UnitTypeDef.supplyGiven)
supplyOf betaWhat a type takes of the one pool of supply there always is (UnitTypeDef.supply, a number or its supply)
supplyPoolsGivenOf betaWhat a finished building of a type provides of the game's own pools, by name (UnitTypeDef.supplyGiven said by pool)
supplyPoolsOf betaWhat a type takes of the game's own pools of supply, by name (UnitTypeDef.supply said by pool, the one pool left out)
surrender betaA player gives up: out of the game as if beaten, once the game's beforeSurrender lets them. The rest of their side plays on; a side with nobody left loses, as the game's own way to win says (lastTeamStanding counts one who gave up as one who was in the game)
swapAbility betaPuts an ability in the place of another of a unit's (from), at its level (or options.level): for good, or for a while or so many casts (until, uses: then from is back, its cooldown having run on). A stance, an awakened ability, a weapon of a set. False where it has no from, the new one is none or it has it already
swingTiming betaHow long an attack takes, from the start of the swing to the hit (the windup), from one swing to the next, and how long the unit is held after the hit (AttackDef.recovery, 0 when left out), for a unit whose type attacks base times a second and that now attacks speed times. Undefined for what does not attack
symmetricPlaces betaThe places a point is mirrored or turned to, the point first (as the editor's mirrors)
takeCorpses betaTakes up to most corpses nearest a point, within radius, out of the world, and gives them; which, those of them it may take (the caster's allies', for a resurrection)
takeForm betaTurns a hero into one of its forms where it stands (into, a unit type that is a hero's: its stats, growth and look are the form's), as the morph effect does. Kept: its id, owner and place, its level and experience, its items, its buffs, the share of its health and mana, and what it was told (it goes on as the form). It learns the form's abilities (FormOptions.learns) at the levels the form says (levels: one of its own's, or a number; by slot in HeroForm's shorter shape, Q is Q); those of its own it keeps (keeps, the ability that made the form, the spells it brought, any of its own the form learns) are the same, cooldown and all; the rest are put away until it turns back (leaveForm), their cooldowns as cooldowns says (running down by the time away when left out). A hero in a form already turns back first
takeItem betaTakes the item instance with this id out of the entity's inventory and returns it; undefined when it does not carry it
targetFacts betaWhat a target is to a caster, for targetRefusal
targetingOf betaA game's own way of aiming an ability (Rules.targetings), where its target names one
targetRefusal betaWhy an ability may not be used on a target, or undefined when it may
techOf betaTypes of the finished buildings a player has, with what those count as
techTree betaThe tech tree of a game's rules: its things that are made or make something (scenery and the map's creeps left out), the edges between them, and each one's tier. Tiers go by what makes what from what nothing makes and from the buildings that make the builders, require nothing and are no other's upgrade (a hall; else, where everything is made of something, the buildings that require nothing, are no upgrade and make something), each thing after what it requires; a loop of requirements stops at the number of things
tellRules betaTells the mission rules a word, as the game's code does for what the rules cannot know on their own (the boss fell, the player chose): a rule when: { told: word } fires at the next check, and the word is heard no more after it. What a rule's timer does as it goes off
terrainPass betaThe ground: a height field of noise, mirrored as the map is, quantised into cliff levels with the ground rolling within each, water in the low ground, and ramps cut between the levels so that every part can be walked to
terrainPatch betaA rectangle of cells of a ground as it is (TerrainPatch): to be put in another
terrainPatchProblem betaWhat is wrong with a patch for a ground (TerrainPatch): out of it, or of layers of other lengths. Nothing when it fits
tilesPass betaThe paint: each cell a tile by what the ground is there, through the game's tiles by name
tomesPack betaTomes, as in classic RTS games: the tome effect (EffectTypes.tome) gives what it reaches stats for good (gain: a point of a stat of the game's own), a hero experience (xp) and levels (levels). A tome is an item whose ability has the effect, with a charge, used from the inventory, or as it is picked up with the runes pack (runesPack). What a unit gained is kept with it and in a save (gainedStats), and a game gives it from its own rules with gainStats
toMessage betaTurns a MessageRef into a Message: a bare key becomes { key }, a message is returned as it is
tooNear betaWhether a target is too near for one of an attacker's attacks (AttackDef.minRange), by place in its attacks: within its dead zone, edge to edge
townPortal betaTakes a unit and as many as count of its owner's units within radius of it, nearest first, to its side's home nearest near (homeOf), spread around it: what the townPortal effect does, in code. Gives back who went, none when the side has no home
trainRefusal betaWhy a player cannot have a unit made, or undefined when they can, as far as they and the unit type go: whether the building has room, and what a game's hooks say (they can change the cost), is for the simulation. In the order the player is told
underConstruction betaWhat a structure being built has done and needs: none once it stands, or for what was put down whole (constructionSite)
undoable betaWhether a purchase may still be undone (undoBuy): within ShopSettings.undo seconds of it, the buyer alive and at the shop still, the shop standing, the item carried with its charges as bought and its ability not used
undoBuy betaTakes a purchase back (ShopSettings.undo): the latest the hero may still undo, or the one named by its id. The item goes (out of its stack, where it went into one), what it cost comes back whole, the parts it used up come back as they were, and the shop has it back in stock. False, and the player told why, where it cannot (undoRefusal)
undoRefusal betaWhy a purchase of the hero's may not be undone, or nothing when it may: nothing to undo (none within the time, the hero away from the shop, the item used), or no room for the parts to come back
unitMatches betaWhether what a UnitCondition says holds of a unit, out of an effect: every part it says. is (enemy or ally) is asked of the player of: it never holds with none. What an if asks (conditionHolds), what an effect's where asks and what a query of the world asks (world.query)
unload betaLets out what a transport carries, on the land nearest it (or nearest near, within reach of the transport), spread around it. How many got out: none when there is no land in reach
unlocked betaChecks that something is the player's to make at all (isAvailable: their race, the available hook), then what it requires, by unlockRefusal, and tells the player what stands in the way. True when nothing does
unlockRefusal betaWhy a player may not make something as far as what it requires goes, or nothing: the finished buildings it requires, and then the requirement hook (see Requirement). For a unit or structure type, or a level of research
updateMapTerrain betaBrings a terrain of the same size in line with the layers of a map, in place, for editing. With area, only what a change to those cells can have changed: the cells and the corners of cells within reach of it. Returns the cells whose terrain was worked out again, for whoever draws it to draw again: their corners are the vertices that changed
updateSave betaA save as the game reads it now, whatever it was saved by: brought up from an older version by the game's (Rules.saves.migrate), each one version at a time. loadWorld runs it; a tool that keeps saves up to date runs it by itself. The save handed in is not changed. Throws a SaveError, which says why, for one that cannot be read: another game's, newer than this game, of a version the game has no step from, made with other rules by a game that refuses those (anyVersion loads it all the same), or with something in it the game no longer has, all of which the error names
upgradeAbility betaMakes an ability of a unit's into one it may become (AbilityDef.upgrades), for good: at its level, with its cooldown. False where it has no such ability or that is not one it may become
upgradeLevel betaLevels of an upgrade a player has, counting the one being researched
upgradeOf betaThe type a building in a snapshot is turning into, and how far, 0..1: undefined for one that is not
upgradesOf betaThe types a building can be upgraded into (UnitTypeDef.upgradesTo), as a list: one for most, none for one that turns into nothing
upkeepOf betaWhat a player's army costs them, by how much supply they use
useDefaults betaThe game with default sets taken, as it chooses of each (SetChoice, all of a set it says nothing of): their definitions in the fields of the rules they go in, after the game's own, one of the game's with the id of one of a set's in that one's place; what they use besides (SetUses); the packs they need, where the game has none of their id. Kept with the rules (Rules.defaults), so that its data.json can choose again (layData), and so that calling it again chooses again: useDefaults(game, [], { items: 'none' }). The game given is not changed ts export const game = layData(useDefaults(rules, [defaultItemSet], { items: { except: ['sightWard'] } }), dataFile)
useObject betaUses a ground object (UnitTypeDef.use), as the useObject order does once there: its ability goes off, the user its target, and it is gone after its times. False where it is no such thing, or not for this one
usePowerUp betaUses an item on the ground as a rune is used: whoever picked it casts its ability (where it stands, no mana), and it is gone from the ground, told as an item picked (itemPicked). What the runes pack does as a unit walks over one; false for an item not on the ground
validTarget betaWhether an ability may be used on a target: as its targets say, and the canTarget hook
valueAt betaWhat is at a path of a definition, or undefined
valueFor betaThe value of an amount for an ability's text (abilityValues): at the level, or what its code says for the caster as it is, with no effect landing and no target
valueOf betaThe value of an amount, a time or a size of an effect as it lands (EffectValue): at the context's level, or what its code says for the target (none for what is not for one: a zone's time, an area's size). fallback where it says nothing
valueText betaA value in words: 80, or 80 (50 + 60% ability power) when stats add to it
vec2 betaMakes a point from an x and a z, both 0 when left out
veterancyPack betaVeterancy for a game's units (VeterancyOptions): the killer of an enemy earns what it was worth, ranks come at their thresholds, each rank's stats are added (the stats hook). The game is the same otherwise
visionPack betaVision: what a game with it (Rules.packs) gets for what is seen. A buff that reveals its carrier to the team of whoever put it on (BuffDef.revealed), the revealUnit effect (the caster's team sees each it reaches for its duration; revealUnit in code), camouflage (BuffDef.camouflage: enemies see the carrier only from that near) and true sight (UnitTypeDef.trueSight, BuffDef.trueSight: the invisible and camouflaged enemies that near are found). Everything that asks what a team sees goes by it (world.isVisibleTo: what units pick, the commands a player may give, the computer players, each player's snapshot), and the fog is lit where a revealed or found unit stands, as for what a detect found. Nothing of its own is saved: what is revealed is the detection component
waitBy betaHas the attacker let go of the target and wait for room by it (queuePoint): no spot held there, no swing, walking out of the way of those fighting it to stand. What holdOff does when there is no room or no way; a game's own order may call it as it likes
waitUntil betaWaits until test holds: asked at the end of every tick
walkBetween betaThe way on foot between two points of a map, with what the checks count as in the way. Nothing when there is none
walkingTime betaSeconds a unit type takes over a way on foot, at the speed it starts with
wallLine betaThe cells of a wall along a drag, as the genre lays one: along the longer of its two directions first, then the other, a cell's middle each (x + 0.5), from where it started to where it ended, each once
wallsPack betaWalls for a game: its pieces (types with wall: { family }) join with their neighbours as they are put down and taken away, and a builder lays a line of them (buildLineCommand). A game's pieces draw by their shape with UnitLook.looks (single, end, straight, corner, tee, cross); its gates (wall.gate) by open and shut, opened and shut by their owner (wallGateCommand)
wavesSent betaHow many waves a spawner has sent
waygateTarget betaWhere a waygate leads, or nothing for one that is shut or leads to a point the map does not have
withCallings betaThe rules with their callings in the place of what they were (callingsOf): the heroes pack's, made again with them (its own options, rules and parts kept), or the rules' heroes settings for a game without the pack. What a data.json's callings (GameData.callings) and the Data panel's Callings come to. The rules given are not changed
withoutEditor betaThe map without what its editor keeps of its own (GameMap.editor): what a game is given to play. The very map where it has none
workerSession betaPlays a game in a worker, and seats this page's player at it: the worker's file calls serveWorld with the same game. Settles once the world is made there and its welcome is in; fails with what the worker said went wrong const session = await workerSession(new Worker(new URL('./game.worker.ts', import.meta.url), type: 'module' ), rules: game, map )
worthless betaWhether killing an entity gains its killer nothing: an illusion
xpWorth betaExperience a kill is worth

Values ​

NameWhat
ABILITY_CHANGES betaThe ability changes pack's id
abilityCast betaAn ability went off: who cast it, at what level, at whom or where
abilityGrants betaA unit's abilities given for a while (AbilityGrant), in the order they were given. Told to its owner
abilityImpact betaWhat an ability set off arrived: a missile hit, a rush ended, the time was up
AIM_KINDS betaEvery AimKind, in the order the aims are listed in tools
aimCommand betaAims what the player's units aim as they go of an ability (aimAt): what the screen sends, ten times a second at the most, while one holds or channels it, for where the pointer is
aiming betaWhat a unit aims as it goes (Aiming): while it holds an ability to charge, or channels one aimed. Told to its owner
assistLog betaWhat a hero's harm and help a moment ago was (AssistLog), on the hero, while assists count (HeroSettings.assistTime)
attackStarted betaA unit began an attack: its swing, at its target where it has one
AURA_LINGER betaAuras keep their buff alive by renewing it. It wears off this long after leaving the aura
AVOIDANCE_LEVELS betaWhat each AvoidanceLevel changes of DEFAULT_AVOIDANCE: the sampling (adaptiveDivs, adaptiveRings and adaptiveDepth, which what an agent costs a tick goes by)
BLOCKS_BUILD betaWhat a doodad keeps off a cell, in Terrain.blocked: building, walking too, or building on a bridge one walks on
BLOCKS_WALK betaThe Terrain.blocked value for a cell where walking and building are both kept off
boarded betaA unit got into a transport (UnitTypeDef.transport), or out of one
bool betaChecks a value is true or false and gives it, or throws Invalid
boughtBack betaA fallen hero was bought back (buyBack): who, for whom, at what cost
bounty betaA player was paid for a kill: the unit killed, who was paid, how much
buffApplied betaA buff was put on, or put on again (renewed, with the level it had before: previousLevel)
buffRemoved betaA buff came off: it ran out (expired), or was taken off. Not for the buffs of something that dies
BUILD_REACH betaHow far around a start counts as its ground, for building and trees
buildLineCommand betaLays a wall along a drag with the player's builders: a build order for each cell of the line (wallLine), queued after one another (after what they were doing, with queue), for the first builder of theirs among the ids that can build the type. What cannot be built where it is (a unit, a tree in the way) is refused there as one built by hand is
BURNING betaThe burning pack's id (burningPack), for hasPack
burnPutOut betaSomething that burnt was put out (putOut, an ability): it stands, charred as far as it burnt
burnStart betaAsked before a thing catches fire (BurnStart): a handler refuses it or changes its chance. Once for every try: of a call, a spread, or grass burning beside it; so a handler does little
burnStarted betaSomething caught fire: how, who lit the fire it is of, what kind of burning it is. What a game's rules and its computer players hear; the screens are told by what burns (onFire)
burnt betaSomething burnt down: what kind of burning it was, who lit it, and what it left where it stood (BurnsDef.leaves), where it left a thing
cameraOrdered betaThe rules pan or shake one player's camera (see cameraFor)
campCleared betaEvery creep of a camp is gone. It comes back after a while, when it says so (see Camp.respawn)
campMember betaOn a creep: the camp it belongs to
campReturned betaA camp cleared came back, its creeps where they stood (see respawnCamp)
camps betaThe camps of a world, by id less one
CAPTURE_FIELDS betaThe fields of a capture point on the map, as the editor's kind offers them and the rules read them: its reach, its time, what it does contested, and whose it is at the start
CAPTURE_KIND betaThe kind of thing on the map a capture point is placed as (the editor's captureKind)
captured betaA point changed hands: whose it is now (nobody's for one let go by code), and whose it was
captures betaThe capture points of the world, by id: whose each is and who is taking it. Kept in a save; in the game's report as captures (a list), for the HUD and the computer
capturing betaA side (a team) began taking a point, or none is any more
cargo betaThe component holding a transport's passengers, replicated to allies; set on spawn for types with transport
castCancelled betaA wind-up called off before it went off (castStarted with no cast after it): stunned, killed, ordered elsewhere
castStarted betaA unit began casting an ability, at a point where it has one. duration: seconds of the wind-up
cellsChanged betaCells of a layer (Terrain.cells) were set to a value (setCells): told to the players who see them, the others as they come into sight (cellsSeen)
cellsSeen betaCells of a layer that changed out of a team's sight came into it (TeamMemory.cells): told to that team's players
channelEnded betaA channelled ability stopped: run to its end, or broken off (interrupted)
channelStarted betaA channelled ability started to be kept up, or ended: done, or interrupted
chatted betaA player said a line (see chat): to their side, or to everyone
checkpoint betaThe rules marked a moment to start again from, like the start of a wave: a session keeps a save of it
chopped betaA worker struck the tree it is working on
cinematicChoice betaA player picked an answer of a cinematic's choice, as their screen said (see cinematicChose)
cinematicCued betaThe rules cue the cinematic playing on some screens, or everyone's (see cueCinematic)
cinematicEnded betaA cinematic the rules played is over on a player's screen, as their screen said (see cinematic's wait)
cinematicPlayingCommand betaA player's screen says a cinematic began on it (playing: true, its id) or ended: while one plays there, the director's commands it sends are taken
circleFormation betaA circle: a ring around the target, the first place at the front, and rings within it where one is not enough for them all, a spacing apart, down to the middle. As few rings as hold them, and the units shared out among them as their room goes: a disc as thick everywhere, every ring's places even, the outer ring first
commandHandled betaA command that came with a number of its sender's (seq) was carried out: refused with the first error the player was told, or not
commandRejected betaA command turned away (RejectedKind: why, for what counts them, as a server's cheat counter does), with the reason in words for the log
consoleSink betaWrites entries to the console, each by its level. An error among the fields is shown as the console shows errors
constructionCancelled betaA construction was called off by its owner: it dies next, with the reason cancelled
constructionFinished betaA building went up whole and works
constructionSite betaA structure being built: how far it is, how long it takes, who works on it (UnitTypeDef.construction). Set as a site is put down (SpawnOptions.underConstruction), taken off once it stands; a structure's only (a unit given it is not seen as one). Everyone who sees it is told how far it is (0..1)
constructionStarted betaA building's site was put down: what it will be, while it goes up
controlled betaA unit a buff's control holds (BuffDef.control): the buff, and who put it on. Set the first tick it holds it, and taken off the first tick after, as what it was told goes on. Saved with the unit, told to everyone who sees it
converted betaWhose a unit made someone else's for a while was (Converted)
COPY_OF betaWhat a definition in a data.json is a copy of, when the game has none by its id: "copyOf": "footman", "name": "Champion" is a footman by another name. The copy is the definition it names, with what else is said over it, and knows what it is a copy of (basedOn)
coreCommands betaThe commands the engine knows, which every game has
coreFormations betaThe engine's formations: rows (the usual), circle, square and none
coreHooks betaThe rules the engine brings along, written as hook handlers like any game module's. A module can leave any of them out by id (Rules.withoutHooks), or put its own in place of one by giving a handler the same id.
coreSystems betaThe systems the engine brings along, by phase: decisions first, then movement, then everything that reacts to where units ended up. Within a phase, in this order. A module can do without any of them by name (Rules.withoutSystems), or put its own in place of one by giving a system the same name
corpses betaThe corpses of a world. Saved with it
damaged betaSomething took damage: who dealt it, how much, of which type, whether a critical strike, and by an attack or an ability
dashing betaAn entity on a rush (Dash): where it goes, how fast, what it does as it lands. Filed (index), for what moves those on one; told to everyone who sees it as a DashSight
DATA_KINDS betaThe kinds of definition a game's data is kept for, by the field of the game module they are listed in
DEFAULT_HEIGHTS betaThe heights the ground goes from and to when a game does not say
DEFAULT_ITEMS betaThe id of the pack of the default items' effects (defaultItemsPack), as GamePack.id has it
DEFAULT_STANCE betaThe stance of a unit that was given none: the engine's own way
defaultItemAbilities betaThe abilities of the default items: what using one does (ItemDef.ability), and their passives (ItemDef.passive)
defaultItemBuffs betaThe buffs of the default items: what their abilities and passives put on, and what their passives keep on the carrier
defaultItems betaThe engine's default items: six consumables, three to start with, ten basic, twelve intermediate and four pairs of boots built of them, twelve legendaries, and three relics, found and never sold
defaultItemSet betaThe engine's default items as a default set (useDefaults): its items, with the abilities, buffs, unit types and tags they use, the pack of their effects (defaultItemsPack) and the hero arena stats (mobaStatsPack) where the game has neither. useDefaults(rules, [defaultItemSet], { items: { except: ['sightWard'] } }); in a data.json, "defaults": { "items": "none" }
defaultItemTags betaThe default tags of items, named and coloured: the shop's filters (TagDef.filter) and its words. A game adds to them or puts its own in their place (Rules.tags)
defaultItemUnits betaThe unit types the default items bring into the world: the Sight Ward's ward and the Wolfhide Charm's wolf. A game's own of the same id comes in their place
defaultSettings betaThe engine's rules: those of a classic RTS melee game
definitionChanged betaA definition changed while the game runs: what it is now
deposit betaWhat is left of what can be gathered from an entity, and who is at it (ResourceState): a mine's gold, a tree's lumber. What its type gives (UnitTypeDef.resource) as it is made. Filed (index), for what looks for the nearest
DESTRUCTIBLES betaThe destructibles pack's id
detection betaSeconds the teams that found an invisible entity with something that reveals it can go on seeing it, by team. Filed (index), for the fog to light those that have it
directing betaThe cinematic playing on each player's screen, by its id, as their screen said (cinematicPlaying): whose director's commands are taken
DIRECTOR betaThe id of the director pack, the namespace of its commands and components
DIRECTOR_ACTIONS betaWhat a director's command does (DirectorCommand.action)
DIRECTOR_ORDERS betaThe orders a director's command gives (order): to a spot, or at a unit
directorCommand betaA cinematic's say over the game (see the top of this file): action with what it takes. unit is the one it is done to (any player's); spawn puts one of unitType down for owner at at, turned to facing, named name for what comes after it in the cinematic (world.named)
directorInvulnerable betaThe units a cinematic made invulnerable (director with invulnerable): nothing hurts or kills them until it says otherwise
EFFECT_MOMENTS betaWhat an effect waiting for a moment waits on (EffectCommon.when): the types that come to it, and the list of theirs it goes into
entityMorphed betaAn entity became another type: from, what it was
entityRemoved betaSomething left the world for good: a corpse gone, a building taken down, a unit removed by the rules
entitySpawned betaSomething was made in the world: a unit trained or spawned, a building put down, a tree of the map
environmentChanged betaover: the seconds the screens ease into it over, where the rules said
exactMath betaThe simulation's maths, the same in every engine: what a game's rules use in the place of Math's, so that its worlds come out the same in a page, on a server and in a replay (sin, cos, atan, atan2, hypot, exp)
exchanged betaA player traded one resource for another at a rate (see exchange): how much of what went, and how much of what came
exposure betaSeconds an entity stays in sight of other teams, by team, for having attacked them: seen where it stands, in the fog and in a bush. Filed (index), for the fog to light those that have it
fallen betaThe heroes that fell, as the heroes pack remembers them (fallenHeroes): saved with the world. Those older than HeroSettings.fallenFor go as the next falls
fighting betaHow an entity fights (CombatState): its cooldown, its swing, what it is engaged with. What attacks has it from its type's attack; an upgrade that takes the attack away takes it. Filed (index), for the combat system to go through
FOLIAGE betaThe id of the foliage pack (foliagePack), for hasPack
FOLIAGE_STATE betaWhat has happened to a cell of grass or bushes, as the values of the layer's state layer (foliageStateLayer): whole (0: as it grew, and what a cell never touched is), flattened (crushed under what walked over it, or by ruin), cut (down to stubble: fire does not cross it), burning, burnt (charred: by a fire, or scorched by ruin), growing (coming back to whole). The style stays in the layer itself, so that what grows back is what stood there. Values past these are kept for states to come
foliageBurnt betaCells of grass burnt out this tick: charred now, to grow back where their style says
foliageFireOut betaThe last burning cell of a layer went out: burnt out, put out or stopped
foliageIgnite betaAsked before a cell of grass catches fire (FoliageIgnite): a handler refuses it or changes its chance. For every cell a fire tries, so a handler does little
foliageIgnited betaCells of grass caught fire this tick, by layer and cause: what a game's rules and its computer players hear. The screens are told by the state layer's cells, each as far as it sees
foliageRegrown betaCells of grass are whole again: grown back by themselves, or by regrow (by whom, where it said)
foliageRuined betaCells of grass were ruined (ruin, firebreak, an ability, what tramples): how, and by whom where someone did
form betaOn a hero in one of its forms: see Form. Saved with it, told to everyone who sees it, and filed in the world's index
FORMATION_GAP betaThe gap between two units standing next to each other in a formation
formSystem betaTurns back what is in a form whose time is up (Form.until): the living, in the order of their ids. A fallen hero in a form that does not end with its death turns back once it is brought back, if its time is up by then
FRIENDLY_FIRE betaThe friendly fire pack's id
fxStarted betaThe rules play one of the view's effects at a place or on an entity, for everyone who sees it (see world.fx)
fxStopped betaThe rules stop an effect they played (see world.stopFx)
gainedStats betaWhat a unit gained for good from tomes or the game's own rules (gainStats): saved with it
gameOver betaThe game ended, with the winning team (0 for none)
gameReloaded betaA world took a new version of its game while it ran (reloadGame, hot reload): what the rules hear (world.events.on(gameReloaded, …)), and every screen (GameView.on), to make again what it made of the old one
gateChanged betaA gate opened or shut while the game runs: every screen hears it, to draw it open or shut
gathering betaWhat a worker carries and where it gathers (UnitTypeDef.harvester): set as it is spawned (and as its type changes), for a type that gathers. Its owner and their allies are told what it carries (GatheringInfo)
GROUND_OBJECTS betaThe ground objects pack's id
groundObject betaWhat a ground object keeps (GroundObjectState): on every unit whose type has a trigger, a use, blocksMissiles or a burst, from the moment it is made
groundReshaped betaA part of the ground was reshaped (World.reshapeGround): told to every player
gusted betaA gust of wind blew at a place (gust, WindGust): where, and the gust. Told to the players who see the place, as a gust message, for their screens to bend the grass and bushes there. Nothing of the world changes by it
healed betaSomething was given health back, and by whom
heroAssisted betaA hero shared a kill as an assist (heroAssists): who, of whom, who killed it, and the gold its player was paid for it
HEROES betaThe id of the heroes pack (heroesPack): hasPack(game, HEROES)
heroLevelUp betaA hero went up a level
heroRevived betaA hero came back to life (at an altar, or by the rules)
heroShutdown betaA hero on a streak fell (HeroSettings.shutdownGold): whose streak of how many, and the gold its killer's player was paid on top of the kill for ending it
heroState betaA hero: what it has earned (HeroState). Set as a unit of a type that says it is one (UnitTypeDef.hero) is made, filed by owner (world.index.with(heroState, player), heroesOf). What is a hero is what has it: a fallen hero stays in the world's entities, out of the world, to be brought back
heroStrike betaWhen a hero last hit a hero of another side, in seconds of the game's time: what the lane towers of the side it hit go for first, for a while (LanesOptions.towerAggro)
heroTally betaA hero's tally (HeroTally): kills, deaths, assists, its streak and when it may buy itself back
HOLDS betaThe holds pack's id
id betaThe id of an entity or a player
ids betaChecks a value is a list of at most 1000 entity ids and gives it, or throws Invalid
illusion betaOn an illusion: whose copy it is, the part of its damage it deals, and how much more it takes. Told to its side only: to everyone else it is the real one
impact betaAn attack that hits an area came down
INCOMING_DAMAGE betaThe stat that makes damage of a type more or less for whoever takes it, on top of incomingDamage: incomingMagicDamage for magic. Flat names, not incomingDamage.magic: a stat is one number by its id, and the data's paths (stats.incomingMagicDamage) read a dot as a step into an object
index betaA whole number, 0 or more
inventoryChanged betaWhat a unit carries changed: an item given, taken, bought, sold, used up, or a hero carried in with theirs
inventorySlots betaThe slots of what a unit carries (UnitTypeDef.inventory), null for an empty one: set as it is spawned (and as its type changes), for a type with slots. Sent to everyone who sees it as InventoryInfo: the items it carries, and to its owner and their allies the slots, for commands
itemDropped betaAn item was put on the ground
itemPicked betaAn item was picked up from the ground
itemUndone betaA hero took a purchase back at a shop (undoBuy)
killStreak betaA hero killed another and is on a streak of this many since it last died
LANE_SPAWNER_KIND betaA spawner as the editor offers it (a MapKindDef of @v12-engine/client): its tool, its fields, a ring at each, in the scene's kinds
LANE_SPAWNERS betaThe kind of thing a spawner is: where it is kept in the map's data, by this id
laneMinion betaA minion of a lane: the lane it walks (its path's name), from which end. On every unit a wave brings
lastTeamStanding betaThe rule of a melee game: whoever has no building left is out, and the last team in the game wins. Players only take part once they have had a building, so a world with nothing but a few units in it, like most tests, has no losers. Game modules with other ways to win bring their own system.
leftArea betaA unit walked out of one. What dies in an area is not said to leave it
lineEnded betaA line was skipped by whom it was said to: it ends early for them
lineSaid betaSomeone said a line, to some players or everyone (see world.dialog)
list betaA list of anything, or none for one left out: each of its values checked by the caller, by its own path
LOG_LEVELS betaThe levels of log entries from least to most important, in the order Logger.says ranks them
madeBy betaWho put a unit down (MadeBy): on what a spawn of the pack makes
MAIN_SUPPLY betaThe one pool of supply there always is, in a supply said by pool (UnitTypeDef.supply)
MANA_BURN betaThe mana burn pack's id
manaChanged betaA unit's mana changed by something it did or was given: spent on a cast (amount below 0, ability the one cast) or given by an effect (above 0). Not its regeneration, which would be every tick
MAP_CREEPS betaOwner of the creeps
MAP_NEUTRAL betaOwner of trees, mines and whatever belongs to nobody
MAP_OBJECTIVES betaThe map objectives pack's id
MAP_OBJECTIVES_KEY betaThe key of the map's data its objectives are kept under (GameMap.data.objectives)
MAP_RULES betaThe engine's checks of a map, in the order they run: players, what is placed, random groups, names, regions, paths, walking, races, the fields that name things, the styles of grass painted
MAP_RULES_KEY betaThe key of the map's data its rules are kept under (GameMap.data.rules)
MAX_LEVEL betaHighest cliff level
MAX_MAP_PLAYERS betaPlayers a map may have at most, whatever the game: each could be a team of its own, and the fog of war keeps 32 teams apart (MAX_FOG_TEAMS). How many a game allows is its own (Rules.maxPlayers, 8 when it says nothing)
MAX_MAP_SIZE betaThe largest, the same for the editor and a map file. 512 until a game needs more (S37 is what makes more cost little)
MAX_TILES betaThe most tiles a game can have: a cell holds its tile in a byte, and 0 is none
messageSent betaFeedback for a player, like "Not enough gold": what the client finds the words for
missed betaAn attack went wide. Where it would have landed, and whom it was for
missileHit betaAn ability's missile reached what it was sent at
missileRemoved betaAn ability's missile is gone: it hit, or ran out
missileSpawned betaAn ability's missile set off
MISSION_RULES betaThe mission rules pack's id
MOBA_STATS betaThe MOBA stats pack's id
morphCancelled betaThat was called off, or the building died before it was done
morphedBack betaA hero in a form turned back into what it was (leaveForm): the form it was in, and what turned it back (its ability cast again, its time, its death; none when it took another form or code did it)
morphStarted betaA building started to turn into another type (UnitTypeDef.upgradesTo), over time seconds
movedBy betaWho is being moved by the moves pack's dash or knockback, and how (Moved): on while the rush lasts
MOVES betaThe moves pack's id
moving betaWhat moves of an entity: where it goes, how fast, how it is doing (MovementState). Units that walk, swim or fly have it from their type's speed; a building, a tree, or a unit an upgrade stopped has none. Filed (index), for the movement system to go through
NEW_DEFINITION betaWhat a definition in a data.json says to be one of its own, made of nothing, where the game has none by its id ({ "new": true, "name": "Peon", "stats": { "health": 220 } }): what its kind must have (REQUIRED_FIELDS), its name its id until it says, with what else is said over it. A unit type's kind is taken from it too
noneFormation betaNo formation: every unit to the point itself, as units sent one by one go
number betaAny finite number
objectiveChanged betaAn objective of a player was given (was undefined), got further along, was done or failed
onFire betaWhat burns or burnt and was put out, on the thing itself (FireShown): told to everyone who sees it as it is (no part of it one player's, so that what a team remembers of a tree is the same for each of them), kept by a save. snapshotOf(entity.state, onFire) on a screen; isBurning and burningOf in the rules
pauseAsked betaA player asked for a pause, and the rules let them (see askPause): whoever runs the world pauses it, for seconds at most
PHASES betaThe parts of a tick, in the order they run. The player commands of the tick have been applied before any of them. - commands: first, for what reacts to the commands, or adds some of its own - decide: units choose and carry out what they do: abilities, orders - move: everything that moves, moves - resolve: what follows from where things ended up: attacks land, buildings go up, units are trained - cleanup: bookkeeping once everything happened: what runs out, what each team sees, who won
pileOf betaWhat a pile holds: the resource and how much. Told to everyone, for its look and its tooltip
pileTaken betaA pile was picked up: by whom (a unit's id and its owner), what and how much
PING_KINDS betaThe kinds of ping hero arena games have: a game's are its rules' (RuleSettings.talk.pings.kinds), look first
pinged betaA player marked a spot for their allies, or for everyone (see ping)
PLAYER_COLORS betaThe colours players are given by their number, in 0..1; past the end they start again
playerDefeated betaA player lost: their units and buildings are gone, or the rules said so
playerSurrendered betaA player gave up (see surrender): playerDefeated follows
point betaChecks a value is a point { x, z } of numbers and gives it, or throws Invalid
pools betaWhat a unit holds of its pools (UnitPools): on every unit whose type has pools, from the moment it is made. Its players are told how much of each it holds (values, whole numbers), as they are of its mana
PORTALS betaThe portals pack's id
portalUsed betaA unit went through a waygate, or a town portal: told to everyone who sees either end, for a sound and a flash
presetBlight betaBlight: ground spoiled, a layer of cells a map's maker paints and the rules spread (world.setCells('blight', …)), drawn by the client's blightLook. What it does (who builds on it, who heals on it) is the game's: melee's undead in the example
presetFoliageStyles betaReady-made kinds of grass to the rules (FoliageStyleDef), by the names of the client's looks (presetFoliage): values: [{ value: 1, name: 'Meadow', foliage: presetFoliageStyles.meadow }]. A meadow burns and grows back, tall grass, reeds, wheat, a thicket and a hedge hide who stands in them; dry grass burns hottest, snow grass hardly; a thicket slows those on foot, reeds a little; nothing walks through a hedge (walkable: false). A game changes what it wants: { ...presetFoliageStyles.wheat, trample: 'none' }
presetTiles betaThe tiles of an RTS's ground, by the ids the client's TILE_LOOKS has looks for: tiles: presetTiles in the rules, tiles: TILE_LOOKS in the view. A game adds its own beside them, or takes some (presetTiles.filter(...))
productionQueue betaWhat a building makes (UnitTypeDef.trains, researches, upgradesTo, revives): its queue, and where what comes out goes. Set as it is spawned (and as its type changes), for a type that makes anything. Its owner and their allies are told the queue and the rally point; everyone who sees it how far it is in turning into another type (ProductionInfo)
PROFILE_SMOOTH betaHow far along a path its land is averaged each way, in cells: what makes a road as smooth along it as a road is
projectileRemoved betaAn attack's projectile landed or was taken away
projectileSpawned betaAn attack's projectile set off
PROTOCOL_VERSION betaThe version of what goes over the wire between a host and its players: the messages here and in session/remote.ts, and how deltas are made (session/delta.ts). The host says it in its welcome and a player says it when joining a server; a player of another version is refused with a reason, not left to fail somewhere strange. Raised by one on any change of their shape, which a game's own data (Registry.dataHash) does not show
purchases betaThe purchases a hero may still undo (Purchase, undoBuy): kept on the buyer, sent to its player (PurchaseInfo: each with the seconds left to undo it), dropped as they run out, as the hero leaves the shop or as the item is used (expirePurchases, the abilities system's every tick)
RANDOM_RACE betaWhat is chosen for a seat or a player to have a race drawn for them as the game starts, from the world's own numbers: the same on every machine
rankedUp betaA unit reached a rank: told to everyone, for a sound or a word on the screen
redefinitions betaWhat a world's definitions were changed to while it runs (world.redefine), by kind and id: kept with the world and in its save, so that a load has them again
regionCinematic betaA region of the map with a cinematic (MapRegion.cinematic, ED4) plays it for everyone, once, the first time a unit of a player (not the neutral, nor a building) walks in, unless the game plays it its own way (play: 'code')
releaseCommand betaLets go of what the player's units hold of an ability (releaseHold): what the screen sends as the key is let go, or on a click, with where the pointer is
REPATH_SPREAD betaOver how many ticks the chasers look for new paths after the navigation changed: an eighth of them each tick
REPLAY_SLICE betaMilliseconds of a look a replay being played spends running its game on, at most: what a seek has to catch up on (minute 15 is 27,000 ticks from the start) is run a slice a look, the page drawn between them
REQUIRED_FIELDS betaWhat a definition of each kind must have besides its id and its name, as the type says (UnitTypeDef.radius...), with what one made of nothing starts as (NEW_DEFINITION: the Data panel's New, from empty). A unit type is a unit unless its kind says otherwise
researchFinished betaA building finished researching an upgrade: which, and its level now
resourceChanged betaA pool of a game's own on a unit (rage, energy, charges) changed: emitted by the game's rules (world.events.emit('resourceChanged', …)), heard by the screens of the unit's owner and allies (resource)
RESOURCES betaThe resources pack's id
resourcesDeposited betaA worker handed in what it carried: amount as it went into the purse, upkeep what upkeep took of it at the door
resourcesSpent betaA player paid for something (spend), or was given back what they paid (refund, giveBack): on what (unit, upgrade, structure, item, hire, repair... or a game's own word), and its id
RETURN_GRACE betaSeconds a creep on its way home is deaf even to a hit: so that one led to the end of its leash does not turn on the first arrow in its back and come straight back out
rgb betaA colour as the client draws it: [r, g, b], each a number
riding betaWho rides another (attach, Riding), out of the world while it does
rootConsole betaThe root logger's writing to the console: stopped and started again
rootLogger betaThe logger everything is under when nothing else is said: a world's, a server's, the client's. It writes to the console (rootConsole.stop() ends that, for a page or a server that keeps its log elsewhere), from info up
rowsFormation betaThe engine's usual formation: a tight group keeps its shape as it is, and a scattered one lines up in rows across the way of travel, as many across as there are rows, the units ahead in the front rows
ruleFired betaA mission rule fired: its id. For a pack of the game's that does what the rules cannot
RUNES betaThe runes pack's id
rustled betaOne hidden in a layer of cells moved in it, or stepped into it (ConcealmentOptions.rustle): told to the teams it names that do not see it (all of them, where none are named), where they see the ground, as a shake of what the layer draws there
SAVE_FORMAT betaThe format saves are written in now: a save of another is refused. The engine keeps no steps up from an older one while it and its games are made (a game's own versions have SaveRules.migrate)
SCENARIO_FORMAT betaThe format scenarios are written in now
scoreData betaThe world's component the score is kept in (core.score, on the world's own entity): what a save keeps of it
seconds betaAny number of seconds: a finite number, not below 0
shopStock betaWhat a shop has of each of its wares (UnitTypeDef.sells): how many are left and the seconds until the next one. Set as the shop is spawned, counted down by the abilities system while the shop stands; filed in the index (world.index.with(shopStock)); sent to everyone who sees the shop as StockInfo (how far the next one is, 0..1, not the seconds), the delta comparing ware by ware
SHUN_TIME betaSeconds a target that could not be got at is left alone (see shun)
SOFT_WALLS betaWhat walls: 'soft' changes of DEFAULT_AVOIDANCE, under the level and a game's own numbers: what is ahead counts within 1.5 s (Detour's 2.5) and weighs 1.5 (2.5), and going the speed it wants weighs 3 (2), so that a slower velocity that would touch a wall a little later no longer wins
squareFormation betaA square: a block of rows a spacing apart, as many across as deep (one row fewer where that holds them), filled to the middle, the front row first. Where they do not fill the last row, the back one, those in it stand in its middle
stance betaThe stance a unit is in, by its id; absent for one in the default stance. Told to its owner, so that the HUD shows it
stanceCommand betaPuts units of the player's in a stance ({ entities, stance }). Units of another's, and ids of nothing, are left out. A stance the game has not got is kept as a word and behaves as the default: the hooks know the game's list
STANCES betaThe four stances every RTS has: aggressive (the engine's own way, when no stance is set), defensive, hold fire and no attack. A game gives stancesPack its own list in their place, or adds to these
STAT_WORDS betaHow a stat is called in the text of an ability
steerCommand betaTurns the player's missiles of an ability that are steered (EffectFields.steer) towards a point, as they fly (steerMissile): what the screen sends while one is in the air, for where the pointer is
stopCommand betaStops what units are doing, as the classic Stop does: a plain interrupt. They fight what comes near again at once; a unit that is to stand down and take no fights is put in a stance (stanceCommand, stancesPack)
string betaChecks a value is text of at most 200 characters and gives it, or throws Invalid
summoned betaOn a unit a spell brought: see Summoned. Filed in the world's index, so that summonsOf goes through summons and nothing else
swingCancelled betaA unit's swing was called off before its blow landed (moved away, told something else, its target gone, stunned): told to the players as attackCancelled, for the screen to cut the attack to the walk
teamChanged betaA player went over to another team (setTeam)
text betaWords of any length: what a file says (a line of dialog, a name), not what a player sends (string)
TOMES betaThe tomes pack's id
traded betaA player gave an ally resources (see give): how much went, and how much came after the tax
tunableChanged betaA tunable changed while the game runs: for what has to be worked out again from it
tuneCommand betaSets a tunable while the game runs: for players allowed the debug tools
unitHired betaA unit was hired at a place that hires (UnitTypeDef.hires)
unitTrained betaA building trained a unit: the building, and the unit made
unloaded betaA passenger left its transport
upgradeAbilityCommand betaMakes one of a unit's abilities into one it may become (upgradeAbility): Viktor's augment chosen
veterancy betaWhat a unit has of veterancy, told to everyone (a rank shows on its plate): none for one that has earned nothing
VETERANCY_RANKS betaRanks as many games have them: three, at 50, 150 and 300 experience, 10%, 20% and 30% more damage and health
VISION betaThe vision pack's id
walkingChannel betaA channel a unit keeps up as it walks (AbilityDef.channel.walks), as the cast order keeps one it stands in (CastChannel)
wallGate betaA gate of a wall (UnitTypeDef.wall.gate): whether it stands open, every screen told. Open, it is in nobody's way, whoever walks; shut, it is a piece of the wall. Its owner opens and shuts it (wallGateCommand, setWallGate)
wallGateChanged betaA gate of a wall opened or shut (setWallGate)
wallGateCommand betaIts owner opens or shuts a gate of a wall (setWallGate), for everyone
wallJoined betaA piece of wall took another shape, or turned: a piece came or went beside it
WATER_DEEP betaWater that nothing on foot crosses, a Terrain.water value
WATER_NONE betaWhat covers a cell: nothing, water that can be waded through, or water nothing on foot crosses
WATER_SHALLOW betaWater that can be waded through, a Terrain.water value
waygate betaWhere a waygate leads: a point of the map by its name (as the editor's field keeps it), or a place. A waygate without it, or with null, is shut
worked betaA worker struck what it is mending
worldFailed betaThe game ended on an error in its rules (world.failure): it is not stepped again
xpGained betaA hero earned experience (grantXp): how much, after beforeXp, and the level it is at after it

Types ​

NameWhat
AbilityTarget betaHow an ability is aimed: the engine's ways (AimKind: none, unit, point, direction, vector, passive), or a game's own (AbilityTargetings, defineTargeting)
AbilityValueDef betaHow a game gives a value of an ability: an amount and what scales it, or worked out in code
AimKind betaThe engine's ways of aiming an ability, what every way of a game's own is like (Targeting.like): at once (none), at a unit, at a point (walked into range of), towards a point (from where the caster stands), along two points (vector: where it starts, in range, and the way it goes from there), or not cast at all (passive)
AimPiece betaA piece of what an indicator draws (Targeting.indicator): a shape (AimShape) at a place on the ground, turned to heading (radians, 0 the way of +z) for one that points somewhere (a line, a cone, an arc)
AimShape betaThe ground an ability covers: what the player aims with, and what is shown when it goes off
AiRole betaWhat a unit type is for, to a computer player: the engine's roles, or a word of the game's own. A type can have several (a ghoul is a gatherer and a soldier) - worker: gathers and builds; gatherer: gathers (a worker is one too); topper: what is put up on a deposit of the money to gather it there (builtOn) - hall: takes deposits and trains workers; supply: provides supply and trains nothing; barracks: trains soldiers; altar: trains or revives heroes; workshop: researches; tower: a building that attacks; shop: sells or hires - soldier: a unit that fights and is no hero; hero; caster: fights with mana; healer: has an ability that heals; siege: attacks that splash, fell or are aimed at the ground; air: flies; scout: the fastest of the soldiers; detector: finds the invisible
AmountFormula betaThe fields of the formulas an amount of damage, heal and a shield (buff) may add to it, for each target as it lands (effectAmount)
AnyEffect betaAn effect seen as any type may be, every field of the engine's by its name: for what reads effects of every type alike (an ability's tooltip numbers, the rules' check of what they name). A handler reads its own type's (EffectOf)
AnyHook betaA hook: one of the engine's by name, or a game's own
AnySetChoice betaWhat a game takes of a set, as useDefaults is given it for sets of any kind (SetChoice): a function of change says the kind of definition it is given ((def: ItemDef) => ({ ...def, cost: { gold: 900 } }))
AreaRef betaWhere something of the map is, by a shape of its own or by a region of the map, named: mist, clouds and weather in places (MapMistArea.shape). By the region, it is where the region is, moved with it, and is the rules' too
AreaShape betaWhere an area is on the map: a circle, a rectangle by its middle and size, or a polygon by its corners round a middle of its own (points, each from x and z, three or more, in order round it: moving the middle moves it whole)
Audience betaWho a part of a snapshot is for: the owner alone, the owner and allies, or everyone
AvoidanceLevel betaHow carefully a crowd steers: 'low' samples fewer velocities, a cost a tick that grows with the crowd, 'high' more
BuffBreak betaWhat takes a buff off before its time (BuffDef.breaksOn): its carrier hurt, an attack of its landing, a cast of its
BuffControl betaA buff's own control (BuffDef.control in code): run every tick it holds its carrier, in place of the orders it waits on, to steer it as it likes (with moveTo, engage and the like). source is who put it on, while it is there
BurnCause betaWhat sets a thing alight: set alight by a call or an ability (light), caught from a burning thing about it (spread), or from burning grass (foliage)
CallingStrength betaHow strong a hero is in a calling, from 1 (a little of it) to 3 (what it is above all)
ChatAudience betaWho a line of chat or a ping is for: the player's side, everyone in the game, or who watches alone (observers: what one who watches says, which no player hears; a host gives every line of theirs this, SessionHost)
Check betaCheckers for what comes in from the outside, like the commands of a player. On a server that is whatever anyone sends, so nothing is taken on trust: a checker either hands back the value as the type it promises, or throws Invalid saying what is wrong with it, and where (td.intro.lanes[2].items[0].at is a number): the commands of a player, a cinematic's file, a lane's own items and the game's other files are checked by these alike. ts const fields = { building: id, unitType: string, queue: optional(bool) } type Fields = Checked<typeof fields> // { building: number; unitType: string; queue?: boolean }
Checked betaThe type a set of checkers hands back. Fields that may be left out are optional
CinematicOutcome betaHow a cinematic the rules played ended on a player's screen: played to its end, skipped, stopped (the game left, code stopped it), made way for another, or never played (one already playing would not make way)
CinematicWait betaWhat a sequence waits for after a cinematic it played: its end for the player it was for (ended), the first of the players' ends (any), or every player's (all). ended for a cinematic of several players is all
Command betaA command a world takes, as it comes in: its type, who sent it, and its fields. The engine's, and its packs' (Commands)
ComponentFieldDef betaA map field of a component's: as a game's own field on a map (MapFieldDef), its id the component's
ComponentOptions betaWhat defineComponent takes: everything of a component but its id
Contested betaWhat a point does while two sides stand in it: nothing moves (pause), what was gained is lost (reset), or the larger side takes it as if alone (majority; a tie pauses)
ControlKind betaThe orders a buff gives its carrier (BuffDef.control): away from who put it on, to them, or at them
Cost betaWhat something costs: an amount of each resource it takes, by resource id. What is left out costs nothing
DamageType betaPhysical damage is held off by armor, magic damage by magic resist, true damage by nothing
DataCalling betaWhat a data.json says of a calling (GameData.callings): a CallingDef without its id, any of it, over the game's of the same id. One of its own is named by its id where it says no name
DataCellLayerValue betaWhat a data.json, or a map's definitions, says of a value of a layer of cells (DataCellLayer.values): its name, colour and style, any of them, over the game's value of the same number; one the game has not is a value of its own
DataKind betaThe kind of definition a game's data is kept for: one of DATA_KINDS (units, abilities, buffs, items, upgrades, races)
DataSetChoice betaWhat a data.json takes of a default set (GameData.defaults): all of it, none, only some ids, or all but some. Over what the code chose of it, whose own definitions (with) and changes stay; the data changes the set's definitions as any other (items.<id>)
DataTag betaWhat a data.json says of a tag (GameData.tags): a TagDef without its id, over the code's of the same tag
DataValue betaWhat a field of the data can hold: a number, words, yes or no
DeathReason betaWhy something died, when it was not of damage: killed by the rules (killed, world.kill), its building called off (cancelled), its time out (expired), a resource used up (depleted), brought down by a blast (felled), taken away with what it stood on or by the debug tools (removed), or the game's own word (sold, sacrificed). damage for one that ran out of health
DeepPart betaPart of a definition, at any depth: what a set's change lays over one
DefinedCommand betaA command type, with make to put one together for a session to send
DirectorAction betaOne of the DIRECTOR_ACTIONS: what a director's command does
EditableData betaWhat of a game's data the editor can change, by kind (Rules.editable). all for every field of every definition
EditableFields betaWhich fields of a kind of definition can be changed: all of them (every number, word and yes or no in the definition, as it has them, but its id and kind), some (their paths, or fields said in full), or none (nothing, or an empty list). A function says it for each definition, as it is now: null for none
EffectHandler betaCarries out an effect, whatever its type: what the registry hands for a type (registry.effect), to call with an effect of that type
EffectMoment betaThe moment an effect of a chain waits for (EffectCommon.when): a missile's hit (hit), a pull's arrival (arrived), a dash's landing (landed), a missile's or a zone's end (end)
EffectOf betaAn effect of one type
EffectShape betaThe shapes of ground an effect may cover (EffectCommon.shape)
EffectValue betaAn amount, a time or a size of an effect: a number, one per level (Scaled), or worked out in code for each target as it lands ((context, target) => number: a share of what the target lacks, more for each mark on it, by how far it flew). Code is asked with no target where the effect is not for one (a zone's time, an area's size) and by the tooltip; what the screen draws before a cast (the aim) has no caster to ask, and takes AbilityDef.aim
EngageLayer betaWhere an attacker fights from: ground, air and water for the engine, any other name for a game's own
EntityChange betaAn entity that changed, as a list rather than an object (what goes over the wire for each one adds up): its id, the fields that are new, those that are gone, and of what only its owner is told (own), the same, and its fields that changed in part, as what changed in them (WirePatch: one ability's cooldown). Trailing parts that say nothing are left off, the others 0
EntityKind betaWhat an entity is: a unit, a building or a resource
EntitySave betaAn entity: its type, and every field it has, as plain data. agent is how it moves, when it does
ErrorAnswer beta- throw: the error goes on to whoever stepped the world. Nothing is hidden: for tests and development - end: the game ends there, with the reason kept (world.failure) and told to the players. The world is not stepped again. What a server and a launched game do when nothing is said: one game ends, and nothing else does - disable: the part that threw is switched off and the game goes on without it: the handler, the listener, the system or the timer no longer runs; the order is taken off its unit, the command refused. Never done unasked: a rule that is quietly gone is a game that goes quietly wrong
ErrorPolicy betaWhat to do about an error: the same for all of them, or decided for each
EventAudience betaWho of the players gets an event of a game's own on their screen (see defineEvent): everyone, or those a function picks, from what the event says and what the seat may know (SessionView: its player, knows, sees)
EveryOptions betaHow a timer repeats, and what it is given, for one whose handler takes something
Fields betaA set of named checkers: what an object must have
FieldValue betaWhat a field can be set to: one of those, a list of words (ids: the abilities of a unit, what a building trains), or a list of things whole (the effects of an ability: a rows field)
FoliageCause betaHow a cell of grass caught fire (FoliageIgnite.cause, foliageIgnited): set alight (ignite, an ability), caught from a burning cell beside it (spread), or from a burning thing beside it (burning: BurningOptions.lightsFoliage)
FoliageRuin betaHow grass is ruined (ruin): cut to stubble (a firebreak), crush flat, scorch black with nothing left to burn
FoliageState betaWhat has happened to a cell of grass or bushes, by name (FOLIAGE_STATE)
FoliageWhere betaWhere something is done to grass: a shape on the ground, or cells by their indices (as world.setCells takes them)
FormCooldowns betaWhat becomes of a hero's cooldowns going in and out of a form (HeroForm.cooldowns)
GameData betaThe values of a game's definitions, by kind and id: what its data.json holds. removed takes definitions of the game's out, by kind (the Data panel's Delete): what still names one is the rules' check's to say (checkRules)
GameHostMessage betaWhat the host sends a player
GameNavigationOptions betaHow a game's worlds find their way (Rules.navigation): RecastNavigationOptions, with radii also 'auto' (the default) or false
GroundLayer betaA layer of the ground that can change: heights, levels, water, waterHeights, tiles or blocked
HarvestState betaWhat harvest and return keep in their orders: the step it is at, with what that step keeps beside what every step does (HarvestKept). A step's own fields stay in the order as it goes on to the next (a save has them as they were), and are read only in their step
HookHandler betaThe function a handler for the hook K is, taking the world and the hook's event
HookName betaThe name of one of the engine's hooks, a key of HookEvents
HostToPlayer betaEverything a host, a server or a relay sends a player
HudShareRule betaA rule of HudSharing: one value for every unit, or a function deciding it for each (only heroes', only a boss's)
InspectTarget betaWhat the inspector can look at: an entity, a player, or the world itself
IssuedCommand betaAny command on its way in: the engine's own, or a game module's
ItemTier betaWhere an item is in a shop, and in its build tree: what is used up (consumable), what a hero starts with (starter), the parts (basic), what they build (intermediate), what it all leads to (legendary), and what is found, never sold (relic: loot of camps, bosses and quests). The client's tiers, or a game's own (GameView.hud.shopTiers). epic is the old word for intermediate, still read as it (itemTier)
KnockbackDirection betaWhich way a knockback throws, in a game with the moves pack (EffectFields.direction)
KnownBuilding betaA building a side learned of by sight, where it saw it: its id and its rectangle
Layer betaWhere something is: on the ground, or above it
LazyMaps betaThe maps of a game, each read as it is asked for (mapsFrom given loaders): a function giving the map, a promise. A map is read (parseMap) once, when first asked; the next ask gets the same map, which a game copies before it changes anything (structuredClone)
LineAudience betaWhom a line is said to: a player, some, or everyone
LobbyServerMessage betaWhat the server tells everyone connected, as it changes
LogContext betaWhat a logger adds to each of its entries: the game and the tick of a world, the fields of a part
LogLevel betaHow much an entry matters: debug for whoever looks closely, error for what went wrong
LogSink betaWhere entries go: the console, a file, a panel, a service
MapFieldKind betaWhat a field holds: a number, words, yes or no, one of a few, a unit type, a player; a region, a point or a path of the map (kept by id, so that a rename does not lose it; handed to the game by name); a colour ([r, g, b], 0 to 1); a list of words; a vector on the ground ({ x, z })
MapFieldOption betaOne of the things a choice field can be: the value kept, and what the inspector calls it when that is not the value
MapGenerating betaMakes a map of options somewhere else than this thread (mapGeneratorWorker): a menu's preview of a random map that does not stop the page while it is made
MapMigration betaBrings a file of one format up to the next
MapRef betaSomething of a game or a map that others name: a unit type, a doodad's model, a prefab, a region, a point or a path (by name), a thing named on the map, a cinematic, a file of the game's
MapRefTarget betaWhat on the map a use is: what a click on it selects
MapResizer betaWhat moves along with a map grown or cut, of what others than the engine keep with it (resizeMap): the client's looks under map.environment (mapLooksResizer of @v12-engine/client), the editor's own. Changes the copy it is given, as resizeMap hands it on
MapSymmetry betaHow a map is mirrored, so that it is fair: not at all, across x, across z, both ways, a half turn about the middle, or quarter turns (a square map, its sides even). As the editor's symmetry says it
MapTarget betaA thing on a map, by its kind and id: what a problem is about, which the editor selects. thing is one of a kind of the game's own (MapThing), with the kind's name
MessageKind betaHow a message to a player is shown: an error, information or a hint
MessageParams betaThe values a message's params can hold: a string, a number or a list of strings
MessageRef betaA message, or a bare key for one without params. What hooks give as the reason something is called off
MissionActionData betaWhat a mission rule does, as plain data: one of a closed set of actions. Each takes who it is for (to) where that matters: every player a person plays when left out (mapObjectivePlayers), as the map's objectives are given
ModCommand betaA command of a game module, as its definition's make puts it together. Sessions send it like the engine's own
MorphBack betaWhat turns a form back into the hero it was (EffectFields.back): the ability that made it cast again (ability), its time up (time), or its death (death: it falls as itself, and is brought back as itself)
MoveStatus betaHow a unit's move is going: it is not moving, on its way, got there, or could not
NavigationBuilder betaWhat builds a navigation: given what to build, gives back what was built (Recast's tile cache, exported). On this thread (buildNavigationData), or in a worker (navigationWorker)
Noise2 betaNoise between 0 and 1 at a point, u and v 0..1 across the picture it repeats over
NoState betaWhat an order that keeps nothing keeps
ObjectiveStatus betaWhere an objective stands: open while it can still be met, done once met, failed once it can no longer be
OrderFact betaA fact the engine asks of an order, its behaviour's to say (OrderBehavior.committed, waiting, channelling, building)
OrderInit betaWhat a command asks a unit to do: the order's type and what it is given (OrderInitOf). Turned into an Order once it is accepted
OrderInitOf betaWhat an order of a type is given: its OrderInits entry, every order's fields (OrderParams) for a type not in it
OrderStateOf betaWhat an order of a type keeps: its OrderStates entry, any plain data for a type not in it
OrderStatus betaWhere an order stands after an update: still running, done, or failed
Outcome betaHow the game stands for the player
PlayerCommand betaA command as the client writes it. Who it comes from is decided by the session, never by the sender
PlayerPingKind betaA kind of ping: one of RuleSettings.talk.pings.kinds
PlayerRelation betaWhat two players are to each other, when set apart from their teams (World.setRelation)
ProductionKind betaOne of the five things that are made: a unit trained, an upgrade researched, a building morphed, a hero revived, a structure put down
Purse betaAmounts of resources, by resource id: what a player has. A resource left out is none of it
RaceHookDef betaA hook handler of a race (RaceDef.hooks): run only where the event is of one of the race's players. Whose an event is, is of(event) where it is given, or else its player, or else the owner of the first there is of its entity, caster, attacker, worker, buyer, hero, producer, source, target: the one doing it before the one it is done to (a damage is its source's)
RejectedKind betaWhy a command was turned away (commandRejected): a type the game has not got, fields not as its definition says, a player not in the game, a unit not theirs, one there is not, more than a tick takes, or a director's command sent with no cinematic playing on the sender's screen (directorPack)
Relation betaWho a target is to the one using an ability on it
RelayNotice betaWhat the relay tells pages besides the game itself
Replay betaA game recorded (recordGame), to play back (playReplay): its commands, run again (CommandReplay), or the frames a watcher of it was sent (FramesReplay)
ResourceId betaThe id of a resource, as its game module defines it (ResourceDef)
RuleSettingsInit betaWhat a game says of its rules (Rules.settings), or a pack (GamePack.settings): any of them, a group in part ({ supply: { max: 200 } }), the engine's for the rest. The score and the HUD's sharing are given whole
SavedGround betaThe ground of a save or a welcome: all of it, or the map it started as and what changed of it
SaveMigration betaA step of a game's own, from one version of its saves to the next. The save is plain data in the engine's format of now (the engine's own steps run first), and a copy: the step changes it in place, or gives another
SaveMissing betaWhat a save has in it that the game does not have, by kind: their ids
SaveRefusal betaWhy a save is not loaded: - notASave: it is not a save, or says nothing readable of its format or its version - game: it is another game's - newer: it was made by a newer version of the game, or of the engine, than this one - noWay: it is of an older version of the game's saves, and the game has no step from there (SaveRules.migrate) - rules: it was made with other rules, and the game does not load those (SaveRules.onMismatch) - missing: it has in it what the game no longer has (SaveError.missing) - ground: its ground is a map of the game as it was, which the game no longer has as it was (S36)
Scaled betaA value that can grow with the level of an ability: one number, or one per level
Scaling betaWhat the stats of the caster add to an amount. level is for every level of a hero past the first, bonusAttackDamage for the attack damage it has on top of what its type and its levels give it
ScenarioFile betaA situation for a test to start from, set up in the editor: a map made for it, or a world saved at the moment that matters (in the editor's play mode). Kept in the tests' scenarios (<scenarios>/<game>/<name>.scenario.json: tests/scenarios unless the project says otherwise), or in a game's folder, and loaded with what was named in the editor found by name. It says which format it was saved with, and is brought up to date like a map (readScenario): one that no longer loads fails its test with what is wrong
ScoreAudience betaWho of the players is told a player's numbers: that player alone (own), their side (allies), everyone, or none; or a function of the world, who is told (undefined for an observer) and whose numbers they are
ScoreCounted betaWhat a stat's source makes of an event: nothing to count (undefined), one player (one more for them), what one player is counted, or several of those
ScoreFormat betaHow a stat's number reads on a screen: a whole number (the default), a decimal one, a percent (0..1), or time (seconds, as 3:05). A screen's own (GameView.hud.score.format) goes over it
ScoreKind betaHow a stat takes what it is told: sum adds it up (the default), count adds one each time whatever the amount, max keeps the most it was told, min the least, last what it was told last (a gauge: the army now)
ServerToPlayer betaWhat a player is told besides the game: a server's lobby, a pause, the result, or, watching through a relay, that nothing is shared yet or that the game watched ended
SessionEvent betaThings that happened during a tick and cannot be read from the state afterwards: one of SessionEvents
SessionEventOf betaThe event on a screen of a kind
SetChoice betaWhat a game takes of a default set, in code: all of it (when left out), none, or some: only these ids, all except these, with definitions of its own besides or in the place of the set's of the same id (with), and some of them changed (change, by id: fields laid over the set's, or a function of it)
SetKind betaA field of the rules a set's definitions go in (DefaultSet.kind): a list of definitions with ids
SpentOn betaWhat a player pays for, as resourcesSpent says it: a unit, an upgrade, a structure, a morph, a revive (production), an item, a hire, a repair, a trade at a market (exchange), or a game's own word
StartingBase betaWhat each player gets at the beginning of a game on a map, for players the map places nothing for: as data (StartingBaseData: a hall, workers and what else by unit type, editable in the Data panel) or as code (StartingBaseCode). What they start with of each resource is in its ResourceDef
StatKey betaA stat: one of the engine's (CoreStatKey), or one a game defined. Checked when the game is built
Stats betaAll of a unit's stats: the engine's, and the game's own by their ids
Step betaOne step of a sequence
SummonAggro betaWhom a summon goes for, besides what it would find itself (Summoned.aggro)
SystemOver betaWhat a system runs each for (System.over): every unit, what has a component, or the units a test says yes to
SystemPhase betaThe part of a tick a system runs in, see PHASES in the scheduler
TargetOrder betaThe orders a query and an effect sort what they found in (WorldQuery.sort, EffectCommon.sort): nearest and farthest to its point (by the edge of each), the least or most health, the least or most of it as a share of its max (lowestHealthShare: the most hurt), or random, drawn from the world's numbers (world.rng), so the same every run. Ties go by who came into the world first
TextSegment betaA piece of the text of an ability: words, or a value to show as one (bold, its parts in their colours)
TriggerType betaThe kinds of trigger a passive has (EffectTypes): what sets each off is said by its type
UnitConditionCheck betaAn if's condition in code: whether it holds of the unit (the caster or the target), as the effect lands
WallShape betaWhat a piece of wall is, among its family's: its shape, by the pieces of its family beside it