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
StateMachine
into the PureMVC apparatus.Creates the
StateMachine
instance, registers all the states and registers theStateMachine
with 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?)