pushdown-automaton-macro

Crates.iopushdown-automaton-macro
lib.rspushdown-automaton-macro
version0.1.0
sourcesrc
created_at2017-09-23 10:27:51.598868
updated_at2017-09-23 10:27:51.598868
descriptionMacro generator for state machine, implementing pushdown automaton
homepage
repositoryhttps://github.com/dpogretskiy/state_machine
max_upload_size
id32758
size9,842
Dmitriy (dpogretskiy)

documentation

README

state_machine

amethyst.rs state machine generator macro. Made exactly for abstracting over update/handle_events method parameters.

Usage:

state_machine!(StateMachine; State; _world: &mut World, _something: &mut f64);

Will generate StateMachine struct and trait for using with State trait implementations all methods of which should take &mut World and &mut f64 as parameters.

Or something like this: state_machine!( PlayerStateMachine; PlayerState; _mv: &mut MovingObject, _bb: &mut HasAABB, _anim: &mut HasAnimationSequence, _rend: &mut Renderable, _dir: &Directional, _pi: &PlayerInput, _delta: &DeltaTime );

Commit count: 7

cargo fmt