Class IncreaseCounterGameAction<TContext>
- Namespace
- ElectricDrill.AstraRpgFramework.GameActions.Actions
- Assembly
- com.electricdrill.astra-rpg-framework.Runtime.dll
public class IncreaseCounterGameAction<TContext> : GameAction<TContext>, IExecutable<TContext>
Type Parameters
TContext
- Inheritance
-
objectGameAction<TContext>IncreaseCounterGameAction<TContext>
- Implements
-
IExecutable<TContext>
- Derived
- Inherited Members
Properties
Counter
The counter to increase.
public LongRef Counter { get; set; }
Property Value
IncreaseBy
The amount to increase the counter by. Use negative values to decrease.
[Tooltip("The amount to increase the counter by. Use negative values to decrease.")]
public int IncreaseBy { get; set; }
Property Value
- int
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 _, CancellationToken cancellationToken = default)
Parameters
_TContextcancellationTokenCancellationTokenToken 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.