Skip to content
This repository has been archived by the owner on Jul 12, 2021. It is now read-only.

gsun/gstatem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gstatem

The state machine for Haxe.

The steps to make a new state machie, and please check test example for reference.

  1. draw the UML with WhiteStarUml, and export with xmi format.
  2. define the class extend the sm.SM.Context, which holds the state.
  3. define the class extend the sm.SM.Msg, which holds the event.
  4. import the xmi file as resource in hxml.

Note:

  1. the event will be autobuilt with sm.SMBuilder.buildEvent.
  2. the state will be autobuilt with sm.SMBuilder.buildState.
  3. the state machine will be autobuilt with sm.SMBuilder.buildSM.

License: this project follows the Apache V2 license.

Releases

No releases published

Packages

No packages published

Languages