Sein Diplomacy Subsystem
Class · USeinDiplomacySubsystem : UWorldSubsystem
#include "Players/SeinDiplomacySubsystem.h"
The Diplomacy service: directional grants from one player to another (shared vision, present as friendly, …), each held by source-attributed references. The grants live in the world state; this service answers queries from a derived per-pair refcount. Blueprints reach it through Match’s Diplomacy library (USeinDiplomacyBPFL).
C++ members (6)
bool HasDiplomacy(FSeinPlayerID SourcePlayer, FSeinPlayerID TargetPlayer, FGameplayTag DiplomacyTag) const;True if SourcePlayer grants DiplomacyTag to TargetPlayer. Direction is the tag’s; ShareVision A -> B means B may consume A’s vision. Self-pairs are true for a registered player and never stored.bool ShouldPresentPlayerAsFriendly(FSeinPlayerID SourcePlayer, FSeinPlayerID ViewingPlayer) const;True when Source grants the viewer Present As Friendly: a presentation hint, not an alliance state.bool GrantDiplomacy(FSeinPlayerID SourcePlayer, FSeinPlayerID TargetPlayer, FGameplayTag DiplomacyTag, FGameplayTag SourceKindTag, int64 SourceInstanceID);Grant one source-attributed diplomacy reference (authorized simulation code).bool RevokeDiplomacy(FSeinPlayerID SourcePlayer, FSeinPlayerID TargetPlayer, FGameplayTag DiplomacyTag, FGameplayTag SourceKindTag, int64 SourceInstanceID);Revoke one source-attributed diplomacy reference (authorized simulation code).TArray<FSeinDiplomacyGrantRecord> GetDiplomacyGrantRecords() const;bool HasAnyDiplomacyGrants() const;Fast path: true when any diplomacy grant exists.