Skip to content

OnEnterCallback

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

OnEnterCallback

Namespace: TommoJProductions.ModApi.PlaymakerExtentions

Represents the on enter state action callback

public class OnEnterCallback : FsmStateActionCallback, HutongGames.PlayMaker.IFsmStateAction

Inheritance Object → FsmStateAction → FsmStateActionCallbackOnEnterCallback
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 ENTER

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

OnEnterCallback(Action, Boolean)

Constructor

public OnEnterCallback(Action action, bool everyFrame)

Parameters

action Action
the action to perfrom on enter.

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

OnEnterCallback(Func<Boolean>, Boolean)

Constructor

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

Parameters

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

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

Methods

OnEnter()

On Enter Method.

public virtual void OnEnter()

Events

onInvokeAction

The action to invoke.

public event Action onInvokeAction;

inInvokeAction

The func to invoke.

public event Func<bool> inInvokeAction;

Clone this wiki locally