Namespace ElectricDrill.AstraRpgFramework.GameActions
Classes
- GameActionBase
Non-generic base class for all GameAction<TContext> assets. Exists to allow Inspector fields typed to
GameActionBaseto accept any GameAction<TContext> regardless of its context type parameter — working around C# generic invariance.
- 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.