Skip to content

OnFixedUpdateCallback

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

OnFixedUpdateCallback

Namespace: TommoJProductions.ModApi.PlaymakerExtentions

Represents the on fixed update state action callback

public class OnFixedUpdateCallback : FsmStateActionCallback, HutongGames.PlayMaker.IFsmStateAction

Inheritance Object → FsmStateAction → FsmStateActionCallbackOnFixedUpdateCallback
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 FIXED 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

OnFixedUpdateCallback(Action, Boolean)

Constructor

public OnFixedUpdateCallback(Action onFixedUpdate, bool everyFrame)

Parameters

onFixedUpdate Action
fixedupdate action

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

OnFixedUpdateCallback(Func<Boolean>, Boolean)

Constructor

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

Parameters

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

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

Methods

OnFixedUpdate()

Fixed Update Method

public virtual void OnFixedUpdate()

Events

onInvokeAction

The action to invoke.

public event Action onInvokeAction;

inInvokeAction

The func to invoke.

public event Func<bool> inInvokeAction;

Clone this wiki locally