CaptureState beta
Interface of @v12-engine/engine
ts
export interface CaptureStateA capture point as the world keeps it: where it is, how it is taken, whose it is, and who is taking it now (a team) and how far they have got (0 to 1)
Members
by
ts
by: number | null;The team taking it now; null while nobody is
contested
ts
contested: Contested;What the point does while two sides stand in it
id
ts
id: string;The point's id, which the events name it by
name
ts
name?: string;What the point is called to the players, where it has a name
owner
ts
owner: PlayerId | null;The player it belongs to; null while nobody holds it
progress
ts
progress: number;How far the taker has got, 0..1
radius
ts
radius: number;How far around its middle counts as in it, in cells
time
ts
time: number;Seconds a side alone in it takes to make it its own
x
ts
x: number;Where the middle of the point is, east-west in cells
z
ts
z: number;Where the middle of the point is, north-south in cells