Sein Movement Subsystem
Class · USeinMovementSubsystem : UWorldSubsystem
#include "SeinMovementSubsystem.h"
Owns each unit’s persistent movement mode instance and the match’s avoidance instance. The simulation steps them every tick.
C++ members (9)
USeinMovement* GetOrCreateMovementInstance(FSeinEntityHandle Handle, const FSeinMovementPayload& Move);The entity’s PERSISTENT movement instance. ResolvesFSeinMovementPayload::MovementClass (null / unresolved / abstract →USeinBasicMovement), creates the instance lazily on first request, and re-creates it if the authored class changes at runtime (a different mode starts with fresh kinematic state). Returns null on NewObject failure or from a read-only callback. The world state owns the instance for the entity’s lifetime.static UClass* ResolveMovementClass(const FSeinMovementPayload& Move);The shared movement-class resolution cascade: soft path → TryLoadClass → (null / abstract) →USeinBasicMovement. Single source of truth for the registry and any CDO-level queries.void SweepStaleMovementInstances(USeinWorldSubsystem& World);Drop instances whose entity is no longer alive. Called once per tick by the driver.USeinMovement* FindMovementInstance(FSeinEntityHandle Handle) const;Exact current instance, or null. Never creates or resolves a fallback.int32 GetMovementInstanceCount() const;USeinAvoidance* GetOrCreateAvoidance();The match’s avoidance, created on first use from the Movement settings’ Avoidance Class; null when that is None.static void PublishGroundBypass(USeinWorldSubsystem& World, FSeinEntityHandle Handle, const USeinMovement& Movement);Writes the mode’s Bypass Pathfinding to the entity’s body state when it changed.void ReleaseModuleOwnedStateForModuleUnload();Tear down every system and UObject reference whose executable behavior lives in this module. Called from both PreUnloadCallback and Deinitialize; safe to call repeatedly.void ReleaseNativeClassStateForModuleUnload(FName OwnerModuleId);Extension PreUnload seam. Terminally releases the world state, which owns every movement instance, and severs Move To references to instances whose native class hierarchy touches OwnerModuleId before its vtables disappear.