Skip to content

MapFieldKind beta ​

TypeAlias of @v12-engine/engine

ts
export type MapFieldKind = 'number' | 'text' | 'toggle' | 'choice' | 'unit' | 'player' | 'region' | 'point' | 'path' | 'color' | 'list' | 'vector';

What 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 })