FSMInjector
Creates and registers a StateMachine described in XML.
This allows reconfiguration of the StateMachine
without changing any code, as well as making it
easier than creating all the State
instances and registering them with the
StateMachine at startup time.
@see State
@see StateMachine
-
Constructor.
Declaration
Swift
public init(fsm: String) -
Inject the
StateMachineinto the PureMVC apparatus.Creates the
StateMachineinstance, registers all the states and registers theStateMachinewith theIFacade.Declaration
Swift
public func inject() -
Called by the FSMParser object when it has successfully completed parsing.
Declaration
Swift
public func onParse(stateList: [State]?, initial: String?)
View on GitHub
FSMInjector Class Reference