Namespace ElectricDrill.AstraRpgFramework.GameActions
Classes
- GameActionRunner
MonoBehaviour that manages fire-and-forget execution of GameActions with automatic lifecycle management. Tracks running actions and cancels them when the GameObject is destroyed. Use GameAction.RunFireAndForget() which automatically manages this component.
- GameAction<TContext>
Abstract base class for executable actions that can be configured as ScriptableObject assets. Derive from this class to create reusable, serializable actions that can be assigned in the editor. Uses Unity's Awaitable system for zero-allocation async execution.
Interfaces
- IExecutable<TContext>
Defines a contract for executable actions using Unity's Awaitable system. This interface supports the Strategy pattern with async execution.