Table of Contents

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
object
GameAction<TContext>
IncreaseCounterGameAction<TContext>
Implements
IExecutable<TContext>
Derived
Inherited Members

Properties

Counter

The counter to increase.

public LongRef Counter { get; set; }

Property Value

LongRef

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

_ TContext
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.