2 releases

new 0.2.1 Dec 14, 2024
0.2.0 Dec 14, 2024

#1486 in Procedural macros


Used in animatron

MIT license

5KB
71 lines

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,
}

Dependencies

~1.5MB
~37K SLoC