Sein Command Authority View
Class · USeinCommandAuthorityView : UObject
#include "Input/SeinCommandAuthorityPolicy.h"
cannot be subclassed in Blueprint · deterministic: safe in simulation code
Read-only view of the match that an authority policy uses to decide whether a command is allowed. It offers copies and pure queries only, so a policy cannot change the state it is judging.
Functions
Section titled “Functions”Get Simulation Tick
Section titled “Get Simulation Tick”The simulation tick the command is being authorized at.
int32 GetSimulationTick() const;Get Match State
Section titled “Get Match State”The current match state.
ESeinMatchState GetMatchState() const;Get Match Settings
Section titled “Get Match Settings”A copy of the match settings.
FSeinMatchSettings GetMatchSettings() const;Is Registered Player
Section titled “Is Registered Player”True when Player is registered in this match.
bool IsRegisteredPlayer(FSeinPlayerID Player) const;Get Registered Players
Section titled “Get Registered Players”Every player registered in this match.
TArray<FSeinPlayerID> GetRegisteredPlayers() const;Is Entity Valid
Section titled “Is Entity Valid”True when Entity is alive.
bool IsEntityValid(FSeinEntityHandle Entity) const;Get Entity Owner
Section titled “Get Entity Owner”The player that owns Entity.
FSeinPlayerID GetEntityOwner(FSeinEntityHandle Entity) const;Get Entity Tags
Section titled “Get Entity Tags”A copy of every tag Entity carries.
FGameplayTagContainer GetEntityTags(FSeinEntityHandle Entity) const;Get Player Tags
Section titled “Get Player Tags”A copy of every tag Player’s entity carries, such as SeinARTS.Player.Defeated.
FGameplayTagContainer GetPlayerTags(FSeinPlayerID Player) const;Get Entity Component
Section titled “Get Entity Component”Read an arbitrary deterministic component as a value copy.
bool GetEntityComponent(FSeinEntityHandle Entity, UScriptStruct* ComponentType, FInstancedStruct& OutComponent) const;Can Player Control Entity
Section titled “Can Player Control Entity”True when Player may issue Command Type to Entity: its owner, or a player holding an active Entity Control grant for it.
bool CanPlayerControlEntity(FSeinPlayerID Player, FSeinEntityHandle Entity, FGameplayTag CommandType) const;Has Diplomacy
Section titled “Has Diplomacy”True when Source grants Target this diplomacy (see the Diplomacy library).
bool HasDiplomacy(FSeinPlayerID SourcePlayer, FSeinPlayerID TargetPlayer, FGameplayTag DiplomacyTag) const;