Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface DisconnectDelta

Delta about why a player disconnected.

This does not occur if both AIs play a game correctly.

Hierarchy

Index

Properties

Properties

data

data: { player: GameObjectReference; timeout: boolean }

Data about why the disconnect occurred.

Type declaration

  • player: GameObjectReference

    The player that disconnected.

  • timeout: boolean

    If they disconnected because they timed out, and the game server was forced to disconnect them, or if their end disconnected unexpectedly.

game

game: Partial<BaseGame & UnknownObject>

The state of the game, but ONLY changed keys.

A game delta is probably the most complex part of understanding communication in the cadre framework. Refer to these docs for more help: https://github.com/siggame/Cadre/blob/master/gamelog-format.md#deltas.

type

type: "disconnect"

The type of delta, or reason it occurred.

Generated using TypeDoc