animatron_derive 0.2.0

Animatron derive macros.
Documentation

animatron-derive

This is a companion macro for animation-transition.

Screen Shot 2022-08-08 at 3 28 21 PM

Screen Shot 2022-08-08 at 3 28 43 PM

Usage

#[derive(AnimationTransitionMacro)]
pub struct PlayerAnimationState {
    /// This is needed to tell the compiler the type of your animation variant enum
    #[variant]
    pub variant: PlayerAnimationVariant,
    pub idx: usize,
}