Skip to content

UnitPools beta ​

Interface of @v12-engine/engine

ts
export interface UnitPools

What a unit holds of its pools (UnitTypeDef.pools): how much of each (values), the seconds since each was last spent or given (quiet, for its decay), the seconds each has been empty (empty, for its reload) and where the unit stood a tick ago (at, for what fills by walking)

Members ​

at ​

ts
at?: Vec2;

Where it stood a tick ago, for a pool that fills by walking

empty ​

ts
empty?: Record<string, number>;

Seconds each has been empty, for one that reloads

quiet ​

ts
quiet?: Record<string, number>;

Seconds since each was last spent or given, by pool

values ​

ts
values: Record<string, number>;

How much it holds of each, by pool