ResourceState beta
Interface of @v12-engine/engine
ts
export interface ResourceStateWhat is left of a deposit and how many are at it
Members
amount
ts
amount: number;How much of the resource is left in it
occupants
ts
occupants: number;How many workers are at it, inside or working on it
under
ts
under?: EntityId;The building that stands on it (UnitTypeDef.builtOn), by id: none when nothing does