DialogStateMachine

Namespace: Murder.StateMachines
Assembly: Murder.dll

public class DialogStateMachine : StateMachine

Implements: StateMachine

⭐ Constructors

public DialogStateMachine()
public DialogStateMachine(bool destroyAfterDone)

Parameters
destroyAfterDone bool

⭐ Properties

Entity

protected Entity Entity;

Returns
Entity

Name

public string Name { get; }

Returns
string

PersistStateOnSave

protected virtual bool PersistStateOnSave { get; }

Returns
bool

World

protected World World;

Returns
World

⭐ Methods

OnMessage(IMessage)

protected virtual void OnMessage(IMessage message)

Parameters
message IMessage

OnStart()

protected virtual void OnStart()

Transition(Func)

protected virtual void Transition(Func<TResult> routine)

Parameters
routine Func<TResult>

GoTo(Func)

protected virtual Wait GoTo(Func<TResult> routine)

Parameters
routine Func<TResult>

Returns
Wait

Reset()

protected void Reset()

State(Func)

protected void State(Func<TResult> routine)

Parameters
routine Func<TResult>

SwitchState(Func)

protected void SwitchState(Func<TResult> routine)

Parameters
routine Func<TResult>

Talk()

public IEnumerator<T> Talk()

Returns
IEnumerator<T>

OnDestroyed()

public virtual void OnDestroyed()

Subscribe(Action)

public void Subscribe(Action notification)

Parameters
notification Action

Unsubscribe(Action)

public void Unsubscribe(Action notification)

Parameters
notification Action