Sein Command Authority Policy
Class · USeinCommandAuthorityPolicy : UObject
#include "Input/SeinCommandAuthorityPolicy.h"
abstract: use a subclass · can be subclassed in Blueprint · deterministic: safe in simulation code
Stateless command authority strategy.
The dispatcher invokes the selected class default object. Implementations must derive decisions solely from the command and deterministic world state; which connection sent a command is the network session’s concern.
Events and overrides
Section titled “Events and overrides”Authorize Command
Section titled “Authorize Command”Overridable in Blueprint, with a native default
Authorize one structurally valid command for its registered scope.
bool AuthorizeCommand(const USeinCommandAuthorityView* View, const FSeinCommand& Command, ESeinCommandAuthorityScope Scope, FGameplayTag& OutRejectionReason) const;Can Control Entity
Section titled “Can Control Entity”Overridable in Blueprint, with a native default
Entity-level primitive used by Entity and mixed-recipient EntitySet scopes.
bool CanControlEntity(const USeinCommandAuthorityView* View, const FSeinCommand& Command, FSeinEntityHandle Entity) const;Resolve Resource Payer
Section titled “Resolve Resource Payer”Overridable in Blueprint, with a native default
Resolve who pays/refunds an entity action. This is separate from control.
FSeinPlayerID ResolveResourcePayer(const USeinCommandAuthorityView* View, const FSeinCommand& Command, FSeinEntityHandle Entity) const;