Table of Contents

Class EntityContextToEntityDiedContextProjectionGameActionSO

Namespace
ElectricDrill.AstraHealth.GameActions.Actions.WithIHasEntity
Assembly
com.electricdrill.astra-health.Runtime.dll

Attempts to narrow an ElectricDrill.AstraRpgFramework.Contexts.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.

[CreateAssetMenu(fileName = "New Entity Context To EntityDiedContext Projection Action", menuName = "Astra Health/Game Actions/Context: Entity/Projections/→ EntityDiedContext Projection")]
public sealed class EntityContextToEntityDiedContextProjectionGameActionSO : EntityContextCastProjectionGameAction<EntityDiedContext>, IExecutable<IHasEntity>, ITaggable
Inheritance
object
GameActionBase
GameAction<IHasEntity>
EntityContextCastProjectionGameAction<EntityDiedContext>
EntityContextToEntityDiedContextProjectionGameActionSO
Implements
IExecutable<IHasEntity>
ITaggable
Inherited Members
GameAction<IHasEntity>.Tags
GameAction<IHasEntity>.DisplayName
GameAction<IHasEntity>.ExecuteAsyncForUnityEvent(IHasEntity)