animatron_derive

Crates.ioanimatron_derive
lib.rsanimatron_derive
version0.2.1
created_at2024-12-14 21:24:17.804682+00
updated_at2024-12-14 21:35:47.263823+00
descriptionAnimatron derive macros.
homepage
repositoryhttps://github.com/tauseefk/animatron
max_upload_size
id1483433
size4,661
Tauseef Khan (tauseefk)

documentation

README

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,
}
Commit count: 22

cargo fmt