Table of Contents

Method StartState

Namespace
Gamelogic.Extensions
Assembly
Gamelogic.Extensions.dll

StartState(TStateData)

Starts a state, and returns a token that can be used to stop it again.

public IStateToken<TStateData> StartState(TStateData stateData)

Parameters

stateData TStateData

Custom state data. This is useful in cases where all the active states needs to be examined. For example, this data can be used to identify states externally.

Returns

IStateToken<TStateData>

A token that wraps the custom state data and can be used to stop the state started with this method.