Table of Contents

Struct PortalStatesBroadcast

Namespace
FishMMO.Shared
Assembly
FishMMO.Shared.dll

Server → owner: every portal in one scene that is open for this player, replacing what the client held for that scene.

public struct PortalStatesBroadcast : IBroadcast
Implements
IBroadcast
Inherited Members

Remarks

Sent when the player enters a scene and again whenever the server finishes reading the records that decide it, so a client never has to ask. Only open portals are listed; anything absent is closed. Two parallel arrays of primitives rather than a struct array, so no custom serializer is involved (six bytes a portal).

Nothing here is trusted: travel is re-decided on the server at every use. The client copy only drives how a portal looks.

Fields

Indices

The open portals' authored indices.

public ushort[] Indices

Field Value

ushort[]

RemainingSeconds

Seconds each stays open, rounded up; NoExpiry for one that does not close (opened for this character, or permanently for the world).

public int[] RemainingSeconds

Field Value

int[]

SceneName

The scene the portals stand in (the scene asset's name).

public string SceneName

Field Value

string