Skip to content

ModeSeat beta ​

Interface of @v12-engine/engine/server

ts
export interface ModeSeat

A seat a mode has: a player of the world, by default for whoever joins, or for the computer

Members ​

base ​

ts
base?: Vec2;

Where it starts, for a computer player to know where its opponents are

fixed ​

ts
fixed?: Record<string, string>;

Settings of the seat that are not the lobby's to choose, by name (ServerHooks.seatSettings): the race a map gives its player (MapPlayer.race)

name ​

ts
name: string;

The seat's default name, shown in the lobby

player ​

ts
player: PlayerId;

The world's player this seat plays

preset ​

ts
preset?: Record<string, string>;

Settings of the seat chosen for it until someone chooses otherwise, by name: its team and its colour on the map (seatLooksOf)

team ​

ts
team?: number;

The team it plays for, shown in the lobby: the map's, for a mode made from a map