animatron_derive 0.2.1

Animatron derive macros.
Documentation
  • Coverage
  • 0%
    0 out of 2 items documented0 out of 1 items with examples
  • Size
  • Source code size: 5.26 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 277.05 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 4s Average build duration of successful builds.
  • all releases: 4s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • tauseefk/animatron
    2 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • tauseefk

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