Skip to content

SelectionQuery beta ​

Interface of @v12-engine/editor

ts
export interface SelectionQuery

A search of what is on the map by its fields (parseSelectionQuery): for each field, what it is to be (each one held), and the words of no field, matched against what the Hierarchy calls a thing

Members ​

kind ​

ts
kind: string[];

A kind of thing, as its row of the Hierarchy or its kind is called: kind:building, kind:region, kind:doodad

name ​

ts
name: string[];

Words in its name (name:gate)

owner ​

ts
owner: string[];

A player by id (owner:2) or by name with no spaces (owner:player2), neutral or creeps

tag ​

ts
tag: string[];

A tag of the unit type (tag:ranged): the game's (UnitTypeDef.ai.tags) and the kit's (ranged, melee, hitsAir)

type ​

ts
type: string[];

A unit type by id or name (type:footman): an object of it, a camp with it among its creeps

words ​

ts
words: string;

The rest, matched against what the Hierarchy calls it