Skip to content

Sein Latent Action Manager

Class · USeinLatentActionManager : UObject

#include "Abilities/SeinLatentActionManager.h"

Manages all active latent actions in the simulation. Ticked during the AbilityExecution phase of the sim loop. Provides entity-level and ability-level cancellation.

C++ members (12)
  • bool RegisterAction(USeinLatentAction* Action); Register a new latent action. Registrations made from a running action or callback first tick on the next simulation tick. Returns false without adopting the action when identity or ownership is invalid.
  • void TickAll(FFixedPoint DeltaTime, USeinWorldSubsystem& World); Tick all active actions and clean up completed ones
  • void TickRegisteredAction(USeinLatentAction& Action, FFixedPoint DeltaTime, USeinWorldSubsystem& World); Advance an already registered action from a manager entry snapshot. Later simulation stages use this to publish results with canonical dirty tracking. Call CleanupCompleted after the batch; new registrations wait for TickAll.
  • void CancelActionsForEntity(FSeinEntityHandle Handle); Cancel all latent actions belonging to the given entity
  • void CancelActionsForEntityOfClass(FSeinEntityHandle Handle, TSubclassOf<USeinLatentAction> ActionClass); Cancel the given entity’s active latent actions that are of (or derive from) ActionClass — e.g. pass USeinMoveToAction to cancel ONLY its movement, leaving any other latent actions (channels, waits) running. Null ActionClass = no-op.
  • void CancelActionsForAbility(USeinAbility* Ability); Cancel all latent actions belonging to the given ability
  • void CancelAllActions(); Cancel every active latent action across the entire sim. Actions registered synchronously by cancellation callbacks are rejected as part of the hard reset.
  • void CleanupCompleted(); Remove completed and cancelled actions from the active list
  • int32 GetActiveActionCount() const; Get the number of currently active actions
  • TConstArrayView<TObjectPtr<USeinLatentAction>> GetActiveActions() const; Active actions in tick order.
  • int64 GetNextActionID() const;
  • bool HasActiveActionForEntity(FSeinEntityHandle Handle) const; True if the entity has any active (not completed/cancelled) latent action. Callers use this to tell “idle” from “executing an order” — e.g. gating a system-initiated order so it doesn’t stack on a unit already moving.