File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
crates/bevy_state/macros/src Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 1
- #![ expect( missing_docs, reason = "Not all docs are written yet, see #3492." ) ]
2
1
#![ cfg_attr( docsrs, feature( doc_auto_cfg) ) ]
3
2
3
+ //! Macros for deriving `States` and `SubStates` traits.
4
+
4
5
extern crate proc_macro;
5
6
6
7
mod states;
7
8
8
9
use bevy_macro_utils:: BevyManifest ;
9
10
use proc_macro:: TokenStream ;
10
11
12
+ /// Implements the `States` trait for a type - see the trait
13
+ /// docs for an example usage.
11
14
#[ proc_macro_derive( States , attributes( states) ) ]
12
15
pub fn derive_states ( input : TokenStream ) -> TokenStream {
13
16
states:: derive_states ( input)
14
17
}
15
18
19
+ /// Implements the `SubStates` trait for a type - see the trait
20
+ /// docs for an example usage.
16
21
#[ proc_macro_derive( SubStates , attributes( states, source) ) ]
17
22
pub fn derive_substates ( input : TokenStream ) -> TokenStream {
18
23
states:: derive_substates ( input)
You can’t perform that action at this time.
0 commit comments