Sein Order Subsystem
Class · USeinOrderSubsystem : USeinSystemHostSubsystem
Parent: Sein System Host Subsystem
#include "Brokers/SeinOrderSubsystem.h"
Orders: command brokers that turn a player’s broker order into per-member ability activations, formation layout, destination planning and the destinations a broker has frozen for its members.
C++ members (25)
FSeinEntityHandle CreateBrokerForMembers(const TArray<FSeinEntityHandle>& FilteredMembers, FSeinPlayerID OwnerPlayerID, const FSeinBrokerQueuedOrder& FirstOrder);Build a broker for the members and its first order, evicting each member from its previous broker first (one broker per member). Invalid when no member is alive.FSeinEntityHandle FindSharedBroker(const TArray<FSeinEntityHandle>& Members) const;The broker every member shares, or invalid. Used to append queued orders.int32 RegisterCommandBrokerResolver(USeinCommandBrokerResolver* Resolver);void UnregisterCommandBrokerResolver(int32 ResolverID);USeinCommandBrokerResolver* GetCommandBrokerResolver(int32 ResolverID) const;USeinCommandBrokerResolver* GetResolverForBroker(FSeinEntityHandle Broker) const;A broker’s resolver, or null when Broker carries no broker.bool IsGroupBroker(FSeinEntityHandle Entity) const;True when Entity is a persistent group broker: one that survives an empty roster.bool GetGroupMembers(FSeinEntityHandle Group, TArray<FSeinEntityHandle>& OutMembers) const;A group broker’s members in the group’s own order; false when Group is not one.FSeinEntityHandle GetOwningGroup(FSeinEntityHandle Member) const;The group broker a unit belongs to, or invalid when it belongs to none.bool ShouldProjectSelectionAnchorToGround(const TArray<FSeinEntityHandle>& Selection) const;False when the selection, or a member of a broker in it, bypasses ground navigation: mixed air and ground selections keep the raw anchor and ground slots project individually.bool RegisterAuthoritativeDestinationProvider(const FString& Name, FSeinAuthoritativeDestinationProviderResolver Resolver, uint64& OutRegistrationToken, FString* OutError = nullptr);Register a pure deterministic destination provider before the match starts. Providers compose in the case-insensitive lexical order of their names. Duplicate names, unbound resolvers and late registration fail closed.bool UnregisterAuthoritativeDestinationProvider(uint64 RegistrationToken, FString* OutError = nullptr);Remove one registration. After the match starts this invalidates the live execution contract.bool RegisterSelectionDestinationPlanProvider(const FString& Name, FSeinSelectionDestinationPlanProviderResolver Resolver, uint64& OutRegistrationToken, FString* OutError = nullptr);Register a whole-selection destination postprocessor.bool UnregisterSelectionDestinationPlanProvider(uint64 RegistrationToken, FString* OutError = nullptr);bool HasSelectionDestinationPlanProviders() const;static bool DoPlanarDestinationFootprintsOverlap(const FFixedVector& LeftPosition, FFixedPoint LeftRadius, const FFixedVector& RightPosition, FFixedPoint RightRadius);True when two planar footprints overlap or touch (exact integer math).bool IsSelectionDestinationBaseLayoutInProgress() const;True while the selection-wide base layout is computed; resolver-local post-processing waits.bool ApplySelectionDestinationPlanProviders(const FSeinSelectionDestinationPlanQuery& Query, TArray<FSeinFrozenDestination>& InOutDestinations, FString* OutError = nullptr);Run the selection providers in stable-ID order under a read-only guard.bool IsDestinationFootprintReserved(const FFixedVector& Position, FFixedPoint Radius, TConstArrayView<FSeinEntityHandle> IgnoredMembers = {}) const;True when Position/Radius overlaps a live queue-owned frozen footprint.void NotifyFrozenDestinationDeparture(FSeinEntityHandle Member);Release a member’s settled frozen destination once a later movement commits its first path.bool ConfirmFrozenDestinationArrival(FSeinEntityHandle Member, const FFixedVector& WorldPosition);Settle the member’s executing frozen destination when movement reaches it exactly. False when no reserved queued destination owns that member and position.bool HasAuthoritativeDestinationProviders() const;True when a broker’s frozen destination or a keyed provider can authorize a destination. Game thread only, before any parallel kernel that queries authority.static FFixedVector GetElementLocation(const USeinWorldSubsystem& World, FSeinEntityHandle Element);Where an order element stands: a broker’s live member centroid, any other entity’s own location. A broker entity’s transform doesn’t follow its members.bool IsAuthoritativeDestination(const FSeinAuthoritativeDestinationQuery& Query);Compose the keyed providers in canonical order under a read-only guard.bool IsAuthoritativeDestination(const FFixedVector& WorldPosition, FSeinEntityHandle Requester = FSeinEntityHandle::Invalid());