SeinARTS Diplomacy Library
Class · USeinDiplomacyBPFL : UBlueprintFunctionLibrary
#include "Diplomacy/SeinDiplomacyBPFL.h"
deterministic: safe in simulation code
Diplomacy between players: directional grants such as shared vision, keyed by a SeinARTS.Diplomacy.Grant tag. Source -> Target means Target may use what Source shares (for Share Vision, Target sees what Source sees). Each grant names the system that holds it (a SeinARTS.Diplomacy.Source tag plus an instance ID), and the diplomacy holds while any grant for it remains. The lobby’s teams seed them at match start; these nodes change them during the match, asymmetrically if you like.
The grants live in Simulation’s Diplomacy service, USeinDiplomacySubsystem.
Blueprint nodes
Section titled “Blueprint nodes”Grant Diplomacy
Section titled “Grant Diplomacy”Grant Target this diplomacy from Source, held by one source instance. Granting the same source instance again adds another reference; each Revoke Diplomacy removes one. False outside the simulation or for an invalid player, tag or self-pair.
static bool SeinGrantDiplomacy(const UObject* WorldContextObject, FSeinPlayerID SourcePlayer, FSeinPlayerID TargetPlayer, ) FGameplayTag DiplomacyTag, ) FGameplayTag SourceKindTag, int64 SourceInstanceID);Revoke Diplomacy
Section titled “Revoke Diplomacy”Remove one reference that Grant Diplomacy added for this exact source instance. False when no such grant exists or outside the simulation.
static bool SeinRevokeDiplomacy(const UObject* WorldContextObject, FSeinPlayerID SourcePlayer, FSeinPlayerID TargetPlayer, ) FGameplayTag DiplomacyTag, ) FGameplayTag SourceKindTag, int64 SourceInstanceID);Has Diplomacy
Section titled “Has Diplomacy”True when Source grants Target this diplomacy. A registered player always has it with itself.
static bool SeinHasDiplomacy(const UObject* WorldContextObject, FSeinPlayerID SourcePlayer, FSeinPlayerID TargetPlayer, ) FGameplayTag DiplomacyTag);Should Present Player As Friendly
Section titled “Should Present Player As Friendly”True when the viewing player should see Source’s units as friendly (Source grants the viewer Present As Friendly). For HUD and marker colors; it changes no gameplay.
static bool SeinShouldPresentPlayerAsFriendly(const UObject* WorldContextObject, FSeinPlayerID SourcePlayer, FSeinPlayerID ViewingPlayer);