Skip to content

3.0.0

Compare
Choose a tag to compare
@sohomsahaun sohomsahaun released this 15 Nov 04:46
· 31 commits to master since this release

New Additions

  • Triggered transitions!
  • Added new methods: .add_transition(), .add_wildcard_transition(), .add_reflexive_transition(), .transition_exists(), .trigger().
  • Added new macros: SNOWSTATE_WILDCARD_TRANSITION_NAME, SNOWSTATE_REFLEXIVE_TRANSITION_NAME.

 

Important Change(s)

  • .get_time() and .set_time() has the optional argument seconds set to true by default. This is parallel to GML's get_timer().
  • Deprecated history methods have been removed.

 

Improvement(s)

  • Events now accept arguments! Which means we can do:
fsm.event("This", "is", "cool!");
  • Fixed an issue with .inherit().
  • Added JSDoc to all the methods.

 

Note
Please refer to the Documentation for updated API.