Enum PlayerRequestGate
- Namespace
- FishMMO.Server.Implementation
- Assembly
- FishMMO.Server.dll
Whether a player request passes through the character-state gate before the handler runs.
public enum PlayerRequestGate
Fields
RequireCanAct = 0Refuse the request unless CanAct(ICharacter) passes. The default, and correct for anything that changes game state.
SkipCanAct = 1Resolve the character but do not ask whether it may act.
Only for requests that are not themselves an action — joining a queue, asking the server what it already knows — AND where the action the request eventually leads to is gated separately. A handler that reaches for this needs a comment saying which later gate covers it; see
OnServerGroupFinderQueueBroadcastReceivedandTryResolveArenaBoard, both of which lead to a transfer thatHandleMatchedEntrygates on CanActOrMove(IPlayerCharacter).
Remarks
An enum rather than a bool, because the opt-out is the dangerous half and a bare
false at a call site carries no reason with it. SkipCanAct has to be typed out,
which is the point: it is the spelling a reviewer can grep for, and the one that reads wrong
on a handler that mutates game state.