Open reeshkov opened 7 years ago
For example:
var fsm = StateMachine.create({ initial: 'hungry', events: [ { name: 'eat', from: 'hungry', to: 'satisfied' }, { name: 'eat', from: 'satisfied', to: 'full' }, { name: 'eat', from: 'full', to: 'sick' }, { name: 'rest', from: '*', to: 'hungry' }, { name: 'work', from: '~thirst', to: 'thirst' }, { name: 'drink', from: 'thirst', to: 'satisfied' }, ]});
That's an interesting idea, I'll keep that in mind for a future feature.
For example: