Skip to content

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.

The simulation tick the command is being authorized at.

int32 GetSimulationTick() const;

The current match state.

ESeinMatchState GetMatchState() const;

A copy of the match settings.

FSeinMatchSettings GetMatchSettings() const;

True when Player is registered in this match.

bool IsRegisteredPlayer(FSeinPlayerID Player) const;

Every player registered in this match.

TArray<FSeinPlayerID> GetRegisteredPlayers() const;

True when Entity is alive.

bool IsEntityValid(FSeinEntityHandle Entity) const;

The player that owns Entity.

FSeinPlayerID GetEntityOwner(FSeinEntityHandle Entity) const;

A copy of every tag Entity carries.

FGameplayTagContainer GetEntityTags(FSeinEntityHandle Entity) const;

A copy of every tag Player’s entity carries, such as SeinARTS.Player.Defeated.

FGameplayTagContainer GetPlayerTags(FSeinPlayerID Player) const;

Read an arbitrary deterministic component as a value copy.

bool GetEntityComponent(FSeinEntityHandle Entity, UScriptStruct* ComponentType, FInstancedStruct& OutComponent) const;

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;

True when Source grants Target this diplomacy (see the Diplomacy library).

bool HasDiplomacy(FSeinPlayerID SourcePlayer, FSeinPlayerID TargetPlayer, FGameplayTag DiplomacyTag) const;