SelectionItem beta
Interface of @v12-engine/client
export interface SelectionItemOne of what is selected, as the panels show it
Members
active
active: boolean;Of the type the command card is about
activity
activity: string;What it is doing now, in words: Idle, Moving
buffs
buffs?: BuffInfo[];The buffs it has now
carries
carries?: string[];Names of what a unit of someone else carries
carrying
carrying?: number;How much it carries of a resource, for a worker
carryingKind
carryingKind?: ResourceId;Which resource it carries
carryingName
carryingName?: string;The name of what it carries
color
color: string;CSS color of the owning player
construction
construction?: number;0..1 while under construction
health
health: number;Health it has now, in points
hero
hero?: HeroDetails;What the hero panel shows of it, when it is a hero
icon
icon?: string;Its type's picture (IconSet.units)
id
id: number;Unique id of the entity
inventory
inventory?: (ItemSlot | null)[];For units of the player that can carry things. Null for empty slots
lifetime
lifetime?: {
left: number;
total: number;
};What is left of the time it lasts, for what is gone by itself after a while
mana
mana?: number;Mana it has now, in points; none for a unit that has none
maxHealth
maxHealth: number;Health it has at most, in points
maxMana
maxMana?: number;Mana it has at most, in points; none for a unit that has none
name
name: string;The entity's name as the player reads it
own
own: boolean;Whether it is the player's own
ownerName
ownerName: string;The name of the player who owns it
pools
pools?: PoolBar[];Its pools beside mana (UnitTypeDef.pools: energy, fury, heat…), in their order, as its mana is shown
queue
queue?: QueueInfo[];What it is training, building or researching, first in line first
queueTitle
queueTitle?: string;What its queue's panel is headed, by what it does first: "Training", "Researching", "Upgrading to", "Reviving" (the HUD's words, without the item)
resource
resource?: {
amount: number;
kind: ResourceId;
name: string;
};What is left in it, for a mine or a tree
shield
shield?: number;What its shields still hold
stats
stats: StatLine[];What it is capable of, the stats that are worth a line
typeId
typeId: string;The entity's unit type id