Skip to content

ConnectOptions beta ​

Interface of @v12-engine/engine

ts
export interface ConnectOptions

What connect is given: the rules, navigation settings, maps, limits and a handler for the host's other messages

Members ​

limits ​

ts
limits?: PlayerLimits;

What the player's side keeps and how often it asks: pingEvery, maxJitter, keptSnapshots, keptScreenEvents (PlayerLimits)

maps ​

ts
maps?: readonly GameMap[];

The maps the welcome's ground may be one of (S36): the game's own (Rules.maps) when left out

ts
navigation?: RecastNavigationOptions;

Settings for the navigation the player's side builds of the ground

onServer ​

ts
onServer?: (message: ServerToPlayer) => void;

What else the host says, before the game and during it: a server's lobby, a pause, the result

rules ​

ts
rules: Rules | Record<string, Rules>;

The game module the host runs: the player's side needs its data, and checks it is the very same version. Or the games the player has, by id, for a host that says which it runs