Nebula
Protocol

EndSessionMsg

Worker -> gateway: this gateway no longer speaks for the session, because the player connected again through another gateway (NebulaConfig.SingleSessionPerPlayer).

generated from the sources
public struct EndSessionMsg

Worker -> gateway: this gateway no longer speaks for the session, because the player connected again through another gateway (NebulaConfig.SingleSessionPerPlayer). The gateway lets its client go with a SessionReplacedMsg and does not despawn the pawn, which the new connection has taken over. Fenced by Generation the same way SpawnPlayerMsg is: a gateway that has since claimed the session with a newer generation ignores it.

Fields

ClientId

public ulong ClientId;

Generation

public ulong Generation;

Reason

public string Reason;

Why the session ended, fit to show the player.

Methods

Write

public void Write(NetworkWriter w);

Read

public static EndSessionMsg Read(NetworkReader r);

On this page