bevy_animation_macros 0.18.1

Macros for bevy_animation
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#![cfg_attr(docsrs, feature(doc_cfg))]

//! Macros for deriving animation behaviors.

extern crate proc_macro;

mod animation_event;

use proc_macro::TokenStream;

/// Implements the `AnimationEvent` trait for a type - see the trait
/// docs for an example usage.
#[proc_macro_derive(AnimationEvent)]
pub fn derive_animation_event(input: TokenStream) -> TokenStream {
    animation_event::derive_animation_event(input)
}