OwnEntityState beta
Interface of @v12-engine/engine
ts
export interface OwnEntityStateThe part of an entity only its owner and their allies get to know
Members
abilities
ts
abilities?: AbilityInfo[];The unit's abilities with their cooldowns and charges, for its owner's command card
build
ts
build?: string;What it is about to build, for a build order
fighting
ts
fighting: boolean;Whether the unit is in a fight now
goal
ts
goal?: Vec2;Where it is walking to right now
hidden
ts
hidden: boolean;Inside something, like a worker in a mine
order
ts
order: string | null;Type of the order being carried out
orders
ts
orders: number;Orders in the queue, the current one included
passive
ts
passive: boolean;Whether the unit is set not to fight back or chase (passive stance)
shared
ts
shared?: boolean;Another player's, which this one may command: its owner shares control with them (world.shareControl)
waypoints
ts
waypoints?: Vec2[];Destinations of the orders waiting in the queue: none while nothing waits