Table of Contents

Class RegionActionGate

Namespace
FishMMO.Shared
Assembly
FishMMO.Shared.dll

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

hasInitiator bool

True when the event carries a live initiator with a network object.

isServerStarted bool

True when this peer is running the server.

isReconciling bool

True while the prediction system is replaying (never mutate then).

Returns

bool

ShouldExecuteGameplay(ICharacter, EventData)

Evaluates Decide(bool, bool, bool) against a real initiator and event.

public static bool ShouldExecuteGameplay(ICharacter initiator, EventData eventData)

Parameters

initiator ICharacter
eventData EventData

Returns

bool