Skip to content

Sein Player State

Class · ASeinPlayerState : APlayerState

#include "GameMode/SeinPlayerState.h"

can be subclassed in Blueprint

A SeinARTS player’s Player State. Add Sein components to a Blueprint of this class to define the player’s entity in the simulation: tech, custom per-player data, and passive abilities such as income or upkeep. Select the Blueprint as the Game Mode’s Player State Class. The match builds the player’s identity and starting resources itself (from the match settings, resource catalog and faction), replacing any authored copy.

The actor itself stays ordinary replicated Unreal state (name, ping). Simulation data is read from the player’s entity, never replicated.

Player

This player’s entity in the simulation, or an invalid handle before the match starts.

FSeinEntityHandle GetPlayerEntity() const;

Match

This player’s result in the match: None while it plays on, or when the match was aborted. Reason is why it was decided.

ESeinPlayerResult GetMatchResult(FGameplayTag& Reason) const;

FSeinPlayerID SeinPlayerID

Blueprint read-only

The match slot this Player State plays. The Game Mode sets it when it binds the slot.

TObjectPtr<USeinEntityBridgeComponent> EntityBridge · default CreateDefaultSubobject<USeinEntityBridgeComponent>(TEXT("EntityBridge"))

Read-only in Details · Blueprint read-only

Carries the Sein components this Blueprint authors; the player entity is built from them.