Skip to content

MapPlayerInfo beta ​

Interface of @v12-engine/engine

ts
export interface MapPlayerInfo

What the map says of a player beyond what the world has of them: who plays them, and the game's own fields

Members ​

controller ​

ts
controller?: MapPlayer['controller'];

Who plays the player: a person, the computer or nobody; the game's to say when left out

data ​

ts
data: Record<string, unknown>;

The game's own fields for the player (MapPlayer.data), with the defaults of those not set

id ​

ts
id: number;

The player's id