Skip to content

Releases: sohomsahaun/SnowState

3.1.4

26 Oct 12:30
Compare
Choose a tag to compare

​Change(s)

  • Fixed a bug where default enter/leave events could not use the data passed by .change() or .trigger().

3.1.2

03 Oct 00:22
5d7bf11
Compare
Choose a tag to compare

​Change(s)

  • Fixed a bug where the owner of a SnowState instance couldn't have variables with the same name as any event of the SnowState instance.
  • Default enter/leave events can use the data passed by .change() or .trigger().

 

Issue(s) addressed
#32

3.1.1

22 Apr 15:43
Compare
Choose a tag to compare

​Change(s)

  • Fixed a YYC crash.

 

Issue(s) addressed
#27

3.1.0

29 Mar 04:20
Compare
Choose a tag to compare

​Change(s)

  • Added new method: .on().
  • .change() and .trigger() has an extra argument - which can be used for passing data with the trigger/state change.
  • Removed the internal struct __this, which gives a mentionable performance boost.
  • Arguments in events now work in HTML5. The number of arguments has been limited to 16.
  • Fixed bugs.

 

Issue(s) addressed
#22, #23, #24

 

Note
Please refer to the Documentation for updated API.

3.0.2

25 Jan 04:20
Compare
Choose a tag to compare

​Change(s)

  • Added new method: .state_exists().
  • Small performance improvement.

 

Issue(s) addressed
#21

 

Note
Please refer to the Documentation for updated API.

3.0.1

21 Nov 18:33
Compare
Choose a tag to compare

​Change(s)

  • .get_time() and .set_time() works in microseconds or steps now, instead of seconds or steps. This change is to keep the timer in parallel with get_timer() in GML.

3.0.0

15 Nov 04:46
Compare
Choose a tag to compare

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.

2.4.0

11 Oct 15:15
Compare
Choose a tag to compare

Change(s)

  • .get_time() returns fractional steps now. (Previously it was rounded down)
  • Added new method(s): .set_time() and .event_get_current_function().
  • Renamed method(s): .set_history_max_size() to .history_set_max_size(); .get_history_max_size() to .history_get_max_size(); .get_history() to .history_get().
    The previous names are deprecated and shouldn't be used anymore.

Issue(s) addressed
#12, #15

Note
Please refer to the Documentation for updated API.

2.3.0

30 Jun 17:16
Compare
Choose a tag to compare

Change(s)

  • Added new method: get_states; which returns an array containing the states defined in the state machine.
  • Fixed an issue with get_time to give more accurate results when working with seconds.
  • Fixed a bug with history which caused an unexpected crash.
  • Added optional arguments to methods: state_is, add, add_child.

Issue(s) addressed
#7, #11

Note
Please refer to the Documentation for updated API.

2.2.1

22 Jun 09:45
Compare
Choose a tag to compare

Change(s)

  • Added new method: event_exists; which gives the ability to check if an event exists for the current state. Additionally, it also gives information about how the event is defined.

Issue(s) addressed
#10

Note
Please refer to the Documentation for updated API.