Skip to content

Sein Broker Data

Struct · FSeinCommandBrokerData : FSeinPayload

Parent: Sein Component Data

#include "Components/SeinCommandBrokerData.h"

deterministic: safe in simulation code

Sim-component for command broker entities.

A broker wraps a set of entities (all owned by the same FSeinPlayerID) as a single dispatch target. Member dispatch is delegated to a designer-pluggable USeinCommandBrokerResolver, which consumes the capability map + order context and returns per-member (ability, target) tuples the system issues internally on tick.

Not authored on a Blueprint — created on demand by USeinWorldSubsystem::ProcessCommands when a BrokerOrder command arrives. Culled by FSeinCommandBrokerSystem when the member list and order queue both empty.

TArray<FSeinEntityHandle> Members

Blueprint read-only

Current member list. All members must share the broker’s owning player. FSeinCommandBrokerSystem strips dead handles each tick.

FFixedVector Centroid

Blueprint read-only

Dynamic centroid of the live member set (updated each tick).

FFixedVector Anchor

Blueprint read-only

“Where the formation is trying to stand” — stamped when an order dispatches. Used by tight-formation resolvers + UI banners.

FFixedQuaternion AnchorFacing

Blueprint read-only

Facing associated with Anchor. Zero-rotation = unset.

TMap<FGameplayTag, FSeinBrokerCapabilityBucket> CapabilityMap

Blueprint read-only

Cached “which members can service each ability tag.” Rebuilt from members’ Ability Data when bCapabilityMapDirty is true.

bool bCapabilityMapDirty · default true

Blueprint read-only

Set on member add/remove. Cleared after the next RebuildCapabilityMap.

FGameplayTagContainer CurrentOrderContext

Blueprint read-only

Click context of the most-recently-dispatched order. Container, not a single tag. With per-order parallelism (each order tracks its own bIsExecuting), this is purely informational — it reflects the latest dispatch for UI / diagnostics but doesn’t gate dispatch eligibility. Empty when no order has dispatched since the broker was created.

TArray<FSeinBrokerQueuedOrder> OrderQueue

Blueprint read-only

FIFO queue of orders. Under per-order parallelism, any non-executing entry whose effective members aren’t locked by an executing entry is eligible to dispatch — the broker tick walks the queue in order each pass, dispatching all eligible orders concurrently. Player shift- chained full-broker orders serialize naturally because they share every member; subset-targeted orders (AutoMoveThen pairs, per-member IssueBrokerOrderFromEntity submissions) run in parallel when their member sets are disjoint.

bool bSelfCullOnEmpty · default true

Blueprint read-only

When true (default), the broker system culls this broker entity once Members.Num() == 0 AND OrderQueue.Num() == 0. (Queue-empty implies nothing executing under the per-order model.) The ephemeral player- selection brokers spawned by ProcessCommands all use the default. A game’s persistent group brokers set it false so the broker survives empty member lists; the system that owns the group destroys it.

bool bSharesAbilityCooldowns · default false

Blueprint read-only

Enables Shared Group abilities to copy cooldowns between current members. Set by the system that owns the group. Temporary selections leave this disabled; broker lifetime alone does not imply cooldown sharing.

FFixedPoint FormationRadius · default FFixedPoint::Zero

Blueprint read-only

Bounding-circle radius of the broker’s formation (world units): the distance from the broker’s placement origin out to the farthest member EDGE, i.e. inclusive of every member’s footprint. Maintained by the system that owns the broker, from its members’ layout and footprints. Read by USeinFormation::GetFootprintRadius so a parent formation can place the whole broker as ONE footprint-sized element. Zero = not maintained (falls back to the broker actor’s own extents).

TArray<FFixedVector> SettledSlotPositions

Blueprint read-only

Where this formation’s spots are on the ground - the slot positions of the last ground move this broker dispatched.

The FORMATION owns its slots; which member stands in which slot is re-decided at use (a scattered line re-forms with members in whatever arrangement crosses least, via Reassign Slots) - so this is a plain slot list, deliberately NOT a member-to-slot map. Returned by the resolver in its dispatch plan and committed atomically by the broker system at every ground-move dispatch with the FINAL delivered goals (after nav projection and Post Process Positions). Entity-targeted orders (attack, repair) leave it untouched - slots do not apply to a moving target. Empty until the first ground order. Consumers: formation re-form / re-seek and per-slot settle policies.

TArray<FFixedQuaternion> SettledSlotFacings

Blueprint read-only

Which way each of this formation’s spots faces, index-aligned with Settled Slot Positions.

From the formation’s facing mode (uniform, radial in/out) computed on the final positions; paths that carry no per-slot facing (pre-placed parent-formation slots) fill with the broker’s Anchor Facing. Same lifetime and ownership rules as Settled Slot Positions.

TArray<bool> SettledSlotExplicitFacings

Blueprint read-only

True for a gesture or provider facing, false for travel facing. Empty treats every authored facing as explicit.

TArray<FSeinFrozenDestination> SettledDestinationArtifact

Blueprint read-only

Reserved exact destinations retained after successful movement arrival. An entry remains authoritative until that member starts another move, leaves the broker, or dies. Provider identity remains provenance; provider motion or destruction does not relocate the settled point.

bool bSettledSlotsMemberAligned · default false

Blueprint read-only

Whether each settled slot belongs to a SPECIFIC member (slot i = Members i), or the slots are free for any member to fill.

Set by whichever resolver captured the layout: the default (loose-formation) resolver leaves this false — a re-form re-matches members to slots so the return crosses as little as possible. A group’s resolver with AUTHORED slot roles sets it true, so a re-form sends each member back to ITS OWN slot instead of re-shuffling the roster.