SeinARTS Match Library
Class · USeinMatchBPFL : UBlueprintFunctionLibrary
#include "Lib/SeinMatchBPFL.h"
deterministic: safe in simulation code
Nodes for the match: its settings and state, ending or aborting it, defeating players, pausing, conceding, pre-rendered cinematics and votes. The For Player variants act for a chosen player.
Blueprint nodes
Section titled “Blueprint nodes”Get Match Settings
Section titled “Get Match Settings”The match’s settings, fixed when the match was built. Empty outside a match.
static FSeinMatchSettings SeinGetMatchSettings(const UObject* WorldContextObject);Get Match State
Section titled “Get Match State”Current match state (Lobby / Starting / Playing / Paused / Ended).
static ESeinMatchState SeinGetMatchState(const UObject* WorldContextObject);Start Standalone Simulation
Section titled “Start Standalone Simulation”Start a built standalone match, or resume a stopped one. Network matches start themselves.
static bool SeinStartStandaloneSimulation(const UObject* WorldContextObject);Defeat Player
Section titled “Defeat Player”Defeat Player in an ability or effect graph. Reason is your own tag, such as MyGame.Defeat.HeadquartersLost. A player whose result is decided keeps it. Once the tick’s defeats leave one team, End When One Team Remains ends the match for it (Basic Match Settings; on by default).
static void SeinDefeatPlayer(const UObject* WorldContextObject, FSeinPlayerID Player, FGameplayTag Reason);End Match
Section titled “End Match”End the match in an ability or effect graph. Winners are victorious and every other player still playing is defeated; with no Winners, every player still playing draws. Reason is your own tag, such as MyGame.Victory.Annihilation. The world stops after this tick.
static void SeinEndMatch(const UObject* WorldContextObject, const TArray<FSeinPlayerID>& Winners, FGameplayTag Reason);Abort Match
Section titled “Abort Match”Submit the match administrator’s request to end the match with no results, such as for a host that closes the session. In a network match only the host’s request counts. Empty Reason records SeinARTS.Match.End.Aborted.
static void SeinAbortMatch(const UObject* WorldContextObject, FGameplayTag Reason);Request Pause
Section titled “Request Pause”Submit this machine’s player’s request to pause the match. The authority policy decides whether that player may. True when submitted.
static bool SeinRequestPause(const UObject* WorldContextObject);Request Pause For Player
Section titled “Request Pause For Player”Request Pause as Player. A machine acts for its own player; a network host also for an AI-run player and for Neutral; a standalone game for any player. Otherwise nothing is submitted and this returns false.
static bool SeinRequestPauseForPlayer(const UObject* WorldContextObject, FSeinPlayerID Player);Request Resume
Section titled “Request Resume”Submit this machine’s player’s request to resume a paused match. True when submitted.
static bool SeinRequestResume(const UObject* WorldContextObject);Request Resume For Player
Section titled “Request Resume For Player”Request Resume as Player, on the same terms as Request Pause For Player.
static bool SeinRequestResumeForPlayer(const UObject* WorldContextObject, FSeinPlayerID Player);Concede Match
Section titled “Concede Match”Submit this machine’s player’s concession: it is defeated, with SeinARTS.Match.End.Conceded. What happens to its units is the game’s rule. True when submitted.
static bool SeinConcedeMatch(const UObject* WorldContextObject);Concede Match For Player
Section titled “Concede Match For Player”Concede Match as Player, on the same terms as Request Pause For Player.
static bool SeinConcedeMatchForPlayer(const UObject* WorldContextObject, FSeinPlayerID Player);Get Match Extensions
Section titled “Get Match Extensions”The match settings’ extension structs. Read one with Get Struct From Instanced Struct. Empty outside a match.
static TArray<FInstancedStruct> SeinGetMatchExtensions(const UObject* WorldContextObject);Set Simulation Paused
Section titled “Set Simulation Paused”Pause or resume the simulation from a scenario or ability. A paused simulation runs no ticks; commands keep arriving and run once it resumes, and visual events still reach presentation.
static void SeinSetSimPaused(const UObject* WorldContextObject, bool bPaused);Is Simulation Paused
Section titled “Is Simulation Paused”True while the simulation is paused.
static bool SeinIsSimPaused(const UObject* WorldContextObject);Play Pre-Rendered Cinematic
Section titled “Play Pre-Rendered Cinematic”Tell presentation to play a pre-rendered cinematic, keyed by a tag of your choosing (such as MyGame.Cinematic.Intro). Blocks Sim pauses the simulation first, so every player sees it at the same tick. Skip Mode and Vote Threshold travel with the event for your cinematic UI.
Defaults: bBlocksSim = true, SkipMode = ESeinCinematicSkipMode::VoteToSkip, VoteThreshold = 1.
static void SeinPlayPreRenderedCinematic(const UObject* WorldContextObject, FGameplayTag CinematicID, bool bBlocksSim = true, ESeinCinematicSkipMode SkipMode = ESeinCinematicSkipMode::VoteToSkip, int32 VoteThreshold = 1);End Cinematic
Section titled “End Cinematic”Tell presentation the cinematic has ended and, when Resume Sim If Paused is set, resume a paused simulation. Call it when the cinematic finishes or its skip vote passes.
Defaults: bResumeSimIfPaused = true.
static void SeinEndCinematic(const UObject* WorldContextObject, FGameplayTag CinematicID, bool bResumeSimIfPaused = true);Start Vote
Section titled “Start Vote”Submit this machine’s player’s command that starts a vote of Vote Type. It opens on the next tick and fires the Vote Started visual event. Required Threshold counts only for a Threshold vote; a vote fails after Expires In Ticks (0 = never). True when submitted.
Defaults: Resolution = ESeinVoteResolution::Majority, RequiredThreshold = 1, ExpiresInTicks = 300.
static bool SeinStartVote(const UObject* WorldContextObject, FGameplayTag VoteType, ESeinVoteResolution Resolution = ESeinVoteResolution::Majority, int32 RequiredThreshold = 1, int32 ExpiresInTicks = 300);Start Vote For Player
Section titled “Start Vote For Player”Start Vote as Player, on the same terms as Request Pause For Player.
Defaults: Resolution = ESeinVoteResolution::Majority, RequiredThreshold = 1, ExpiresInTicks = 300.
static bool SeinStartVoteForPlayer(const UObject* WorldContextObject, FSeinPlayerID Player, FGameplayTag VoteType, ESeinVoteResolution Resolution = ESeinVoteResolution::Majority, int32 RequiredThreshold = 1, int32 ExpiresInTicks = 300);Cast Vote
Section titled “Cast Vote”Submit this machine’s player’s vote on the open vote of Vote Type: 1 for yes, 0 for no. True when submitted.
static bool SeinCastVote(const UObject* WorldContextObject, FGameplayTag VoteType, int32 VoteValue);Cast Vote For Player
Section titled “Cast Vote For Player”Cast Vote as Player, on the same terms as Request Pause For Player.
static bool SeinCastVoteForPlayer(const UObject* WorldContextObject, FSeinPlayerID Player, FGameplayTag VoteType, int32 VoteValue);Get Active Votes
Section titled “Get Active Votes”Every open vote, for listing in UI.
static TArray<FSeinVoteState> SeinGetActiveVotes(const UObject* WorldContextObject);Check Vote Status
Section titled “Check Vote Status”Whether a vote of Vote Type is open. A resolved vote reads Not Started again, so learn the outcome from the Vote Resolved visual event.
static ESeinVoteStatus SeinCheckVoteStatus(const UObject* WorldContextObject, FGameplayTag VoteType);