Class PortalClientStates
The local player's view of which portals are open, per scene, as the server last reported it.
public static class PortalClientStates
- Inheritance
-
PortalClientStates
- Inherited Members
Remarks
Written by the client's portal state system from PortalStatesBroadcast and PortalStateChangedBroadcast; read by PortalActivation to choose its look. A timed opening carries its own end, in local realtime, so it closes on the client without another message. Presentation only — the server decides every use.
Methods
Apply(string, int, int)
Applies one portal's change.
public static void Apply(string sceneName, int portalIndex, int remainingSeconds)
Parameters
ApplyScene(string, ushort[], int[])
Replaces a scene's entries with a full report.
public static void ApplyScene(string sceneName, ushort[] indices, int[] remainingSeconds)
Parameters
Clear()
Forgets everything. Disconnect.
public static void Clear()
IsActive(string, int)
Whether a portal is open for the local player now.
public static bool IsActive(string sceneName, int portalIndex)
Parameters
Returns
SecondsLeft(string, int)
Seconds a portal stays open for the local player: PositiveInfinity when it does not close, 0 when closed or unknown.
public static float SecondsLeft(string sceneName, int portalIndex)
Parameters
Returns
Events
Changed
Raised with the scene name after its entries change.
public static event Action<string> Changed