Skip to content

OnUpdateCallback

Tommo J. Phillips edited this page Oct 22, 2023 · 3 revisions

OnUpdateCallback

Namespace: TommoJProductions.ModApi.PlaymakerExtentions

Represents the on update fsm state action callback.

public class OnUpdateCallback : FsmStateActionCallback, HutongGames.PlayMaker.IFsmStateAction

Inheritance Object → FsmStateAction → FsmStateActionCallbackOnUpdateCallback
Implements IFsmStateAction

Fields

action

The current delegate.

public Delegate action;

everyFrame

Represents if should loop this untill state is inactive.

public bool everyFrame;

debugActionName

caches the action method name that is subbed to this action callback.

public string debugActionName;

Properties

callbackType

Represents the callback type. ON UPDATE

public virtual CallbackType callbackType { get; }

Property Value

CallbackType

Name

public string Name { get; set; }

Property Value

String

Fsm

public Fsm Fsm { get; set; }

Property Value

Fsm

Owner

public GameObject Owner { get; set; }

Property Value

GameObject

State

public FsmState State { get; set; }

Property Value

FsmState

Enabled

public virtual bool Enabled { get; set; }

Property Value

Boolean

IsOpen

public bool IsOpen { get; set; }

Property Value

Boolean

Entered

public bool Entered { get; set; }

Property Value

Boolean

Finished

public bool Finished { get; set; }

Property Value

Boolean

Active

public bool Active { get; set; }

Property Value

Boolean

Constructors

OnUpdateCallback(Action, Boolean)

constructor

public OnUpdateCallback(Action onUpdateAction, bool everyFrame)

Parameters

onUpdateAction Action
the action to perfrom on update.

everyFrame Boolean
should this on update call be invoked every frame?

OnUpdateCallback(Func<Boolean>, Boolean)

constructor

public OnUpdateCallback(Func<bool> func, bool everyFrame)

Parameters

func Func<Boolean>
the action to perfrom on update. return weather this state action is finished or not.

everyFrame Boolean
should this on update call be invoked every frame?

Methods

OnUpdate()

update method.

public virtual void OnUpdate()

Events

onInvokeAction

The action to invoke.

public event Action onInvokeAction;

inInvokeAction

The func to invoke.

public event Func<bool> inInvokeAction;

Clone this wiki locally