Class RegionActionGate
Authority gate for region actions that mutate gameplay state (buffs, attributes). The server is authoritative for gameplay; clients only observe the result through the normal replication/reconcile path, so these actions must never run on a client peer.
public static class RegionActionGate
- Inheritance
-
RegionActionGate
- Inherited Members
Methods
Decide(bool, bool, bool)
Pure decision: may a gameplay-mutating region action execute?
public static bool Decide(bool hasInitiator, bool isServerStarted, bool isReconciling)
Parameters
hasInitiatorboolTrue when the event carries a live initiator with a network object.
isServerStartedboolTrue when this peer is running the server.
isReconcilingboolTrue while the prediction system is replaying (never mutate then).
Returns
ShouldExecuteGameplay(ICharacter, EventData)
Evaluates Decide(bool, bool, bool) against a real initiator and event.
public static bool ShouldExecuteGameplay(ICharacter initiator, EventData eventData)
Parameters
initiatorICharactereventDataEventData