Skip to content

Sein Broker Queued Order

Struct · FSeinBrokerQueuedOrder

#include "Brokers/SeinBrokerTypes.h"

deterministic: safe in simulation code

One queued order on a broker. Queue order is preserved for orders whose effective member sets overlap; disjoint subset orders may run concurrently.

FGameplayTagContainer Context

Blueprint read and write

Raw click context — RightClick + Target.Ground/Friendly/Enemy/Neutral plus any designer-added target tags. Resolved sim-side by the broker’s resolver per-member: the player controller emits one unresolved command and the broker interprets it.

FSeinEntityHandle TargetEntity

Blueprint read and write

Optional target entity (attack target, repair target, etc.).

FFixedVector TargetLocation

Blueprint read and write

Target world location (move destination, attack point, rally, …).

TArray<FFixedVector> GuidePoints

Blueprint read and write

Ordered guide geometry for this order — the gesture’s path. Empty/1 point = simple click; 2 = a line; N = a path. Consumed by the formation.

FGameplayTag FormationTag

Blueprint read and write

Gesture-nominated formation identity. Invalid → the resolver’s default formation (DefaultFormationClass).

TArray<FSeinEntityHandle> TargetMembers

Blueprint read and write

Subset of the broker’s members this order dispatches against. Empty = all members. Used by (a) player shift-click on a subset of a shared broker — the new order is appended to the broker’s queue but targets only the selected subset, and (b) framework-injected prefixes (e.g. AutoMoveThen’s Move prefix for a single out-of-range member). Non-target members stay idle for this order; the broker’s completion predicate waits on the effective subset only.

bool bIsInternalPrefix · default false

Blueprint read and write

True if this order was injected internally by framework machinery (e.g., AutoMoveThen prefix). Designer dispatches leave this false.

FSeinPlayerID DerivedResourcePayer

Blueprint read-only

Funding principal preserved only for an internal ability follow-up.

TArray<FSeinTargeterPoint> TargeterPoints

Blueprint read and write

Captured targeter points when this order originated from the targeter subsystem (action-slot trigger flow). Empty for right-click smart commands. Per-member ability activation forwards these into USeinAbility::TargeterPoints so OnActivate can read either TargetLocation (single-point convenience) or the full array (multi-target abilities).

FGameplayTag PredeterminedAbilityTag

Blueprint read and write

Predetermined ability tag when this order originated from the targeter (action-slot trigger flow). The player picked the ability before targeting, so the broker resolver should NOT run per-member context resolution against this order — it dispatches the predetermined ability via the ability’s DispatchMode policy (All/Single/ByTag). Invalid for right-click smart commands (those use Context-driven resolution via Ability Data::DefaultCommands).

TArray<FSeinEntityHandle> PreplacedMembers

Blueprint read and write

Members whose destinations were already placed as part of one formation solved over the whole selection. When non-empty, the broker sends each member to its paired position in Preplaced Positions instead of solving a formation of its own. Preplaced Members[i] goes to Preplaced Positions[i]. Empty means the broker solves its own formation.

TArray<FFixedVector> PreplacedPositions

Blueprint read and write

Destination for each Preplaced Member, index-aligned with Preplaced Members.

TArray<FFixedQuaternion> PreplacedFacings

Blueprint read and write

Optional facings paired with Preplaced Members. Empty uses the broker’s standing facing for each position.

bool bPreplacedFacingsExplicit · default false

Blueprint read and write

True when the pre-placed facings come from a drag gesture or a provider. False for plain travel facings, which vehicles ignore in favor of their arrival heading.

TArray<FSeinFrozenDestination> DestinationArtifact

Blueprint read and write

Exact admitted preview artifact. When non-empty it overrides the Preplaced arrays and survives queueing and save/load. Reserved entries protect their frozen world footprint; source provenance never turns them into moving targets.

bool bIsExecuting · default false

Blueprint read-only

True from dispatch tick until completion. Per-order so concurrent orders can each track their own state without a shared mutex on the broker.

int32 LastDispatchTick · default INDEX_NONE

Blueprint read-only

Simulation tick on which this order was dispatched, or -1 before it has dispatched. The order is not counted as finished on that same tick, because the member commands it queued have not started yet.

FSeinAbilityActivationInputs ActivationInputs

Blueprint read and write

Captured values preserved through ability dispatch.