Table of Contents

Class SetEntityOverrideOnResurrectionGameActionSO<TContext>

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

Base generic game action that assigns (or clears) the OverrideOnResurrectionGameAction field.

Connect to any GameEventListener whose payload implements ElectricDrill.AstraRpgFramework.Contexts.IHasEntity, such as EntityDiedGameEventListener, EntityResurrectedGameEventListener, or directly from an EntityHealth reference.

public abstract class SetEntityOverrideOnResurrectionGameActionSO<TContext> : GameAction<TContext>, IExecutable<TContext>, ITaggable where TContext : IHasEntity

Type Parameters

TContext

The context type that must implement ElectricDrill.AstraRpgFramework.Contexts.IHasEntity.

Inheritance
object
GameActionBase
GameAction<TContext>
SetEntityOverrideOnResurrectionGameActionSO<TContext>
Implements
IExecutable<TContext>
ITaggable
Derived
Inherited Members
GameAction<TContext>.Tags
GameAction<TContext>.DisplayName
GameAction<TContext>.ExecuteAsyncForUnityEvent(TContext)
GameAction<TContext>.OnOperationCanceled()

Methods

ExecuteAsync(TContext, CancellationToken)

Executes the action asynchronously with the provided context. Override this method to implement your action logic.

public override Awaitable ExecuteAsync(TContext context, CancellationToken cancellationToken = default)

Parameters

context TContext

The context object containing information needed for execution.

cancellationToken CancellationToken

Token to cancel the operation. MonoBehaviour owners can use their "destroyCancellationToken" to automatically cancel when destroyed.

Returns

Awaitable

An Awaitable that completes when the action finishes.