Skip to content

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.

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;

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;

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;