RoomKind beta
Interface of @v12-engine/engine/server
ts
export interface RoomKindA kind of game a player may make a room of (features-plan H2): what a "New game" makes (POST /games), with the settings asked for (the map) where the game offers them
Members
name
ts
name: string;What a list calls it
room
ts
room: RoomOptions | ((settings: Record<string, string>) => RoomOptions);The room it makes: the same options for each, or a function that makes a room's options each time one is made, with the settings asked for (a random map for each: generatedMode). A kind of a function is listed and matched by a room it makes once, at first