Namespace ElectricDrill.AstraRpgFramework.GameActions.Actions.WithIHasEntity
Classes
- DestroyEntityGameObjectIHasEntityGameAction
Concrete action to destroy the Entity's GameObject. Create instances via Assets → Create → Astra RPG Framework / Game Actions / Context: Entity / Destroy Entity Game Object.
- EntityContextCastProjectionGameAction<TProjectedContext>
Attempts to narrow an IHasEntity payload to a more specific context type and, if the runtime type matches, forwards the original payload to the wrapped action. Use this when subscribing a broad entity-based event pipeline to actions that only make sense for richer payloads such as damage or death contexts.
- EntityContextToComponentProjectionGameAction
Bridges an IHasEntity context to an inner GameAction<TContext> typed on ElectricDrill.AstraRpgFramework.GameActions.Actions.Component, by extracting Entity and passing it as the context. This lets you reuse any existing Component-based action on events that dispatch an IHasEntity payload without duplicating the action implementation.
Trade-off: the inner action receives only the EntityCore component — rich payload data (e.g. damage amounts, level deltas) is discarded. Use this exclusively for structural actions (destroy, toggle renderer, etc.) that only need to know which entity was involved, not what happened to it.
- ToggleEntityActiveGameObjectIHasEntityGameAction
Concrete action to set the active state of the Entity's GameObject. Create instances via Assets → Create → Astra RPG Framework / Game Actions / Context: Entity / Toggle Entity Active GO.
- ToggleEntityCollidersIHasEntityGameAction
Concrete action to enable/disable all Colliders on the Entity's GameObject and its children. Create instances via Assets → Create → Astra RPG Framework / Game Actions / Context: Entity / Toggle Entity Colliders.
- ToggleEntityRenderersIHasEntityGameAction
Concrete action to enable/disable all Renderers on the Entity's GameObject and its children. Create instances via Assets → Create → Astra RPG Framework / Game Actions / Context: Entity / Toggle Entity Renderers.
- ToggleHarvestedExpSourceEntityGameAction
A game action used to toggle the harvested state of an ExpSource component. Sets the Harvested flag based on the enable setting, controlling whether the experience can be collected. Provided as a ScriptableObject for easy assignment in the editor. Create instances via Assets -> Create -> Astra RPG Framework / Game Actions / Context: Entity / Toggle Harvest Exp Source.