Protocol
KickPlayerMsg
Worker -> gateway: remove this player (MsgId.KickPlayer, protocol 23), sent by NebulaWorker.Kick to the gateway that speaks for the session.
generated from the sources
Struct in namespace
Nebula · Packages/com.1by3.nebula/Runtime/Protocol/Messages.cspublic struct KickPlayerMsgWorker -> gateway: remove this player (MsgId.KickPlayer, protocol 23), sent by NebulaWorker.Kick to the gateway that speaks for the session. The gateway sends the client a KickedMsg with the same code and reason, closes the link and ends the session. Fenced by Generation: a gateway that has since claimed the session with a newer generation ignores it.
Fields
ClientId
public ulong ClientId;Generation
public ulong Generation;Code
public ushort Code;The game's own code for why; passed to the client unchanged.
Reason
public string Reason;Why, fit to show the player.
Methods
Write
public void Write(NetworkWriter w);Read
public static KickPlayerMsg Read(NetworkReader r);