Struct PlayerDisconnect

Namespace
Unity.Multiplayer.Core

Server side: a seated player's connection ended.

public readonly struct PlayerDisconnect
Inherited Members

Constructors

PlayerDisconnect(ulong, Disconnection, Seat)

Creates the record.

public PlayerDisconnect(ulong clientId, Disconnection why, Seat seat)

Parameters

clientId ulong
why Disconnection
seat Seat

Properties

ClientId

The connection that ended.

public ulong ClientId { get; }

Property Value

ulong

Seat

The seat after the disconnect: Held while it waits for the player, Released when it was freed, or null when the seat had already moved to a newer connection of the same player.

public Seat Seat { get; }

Property Value

Seat

Why

Why, as the server saw it: ClientLeft, TimedOut, or Kicked (including a connection replaced by the same player reconnecting).

public Disconnection Why { get; }

Property Value

Disconnection

Methods

ToString()

Returns the fully qualified type name of this instance.

public override string ToString()

Returns

string

The fully qualified type name.