Expand description
§Naia Derive
Procedural macros to simplify implementation of Naia types
Derive Macros§
- Channel
- Derives the Channel trait for a given struct
- Channel
Internal - Derives the Channel trait for a given struct, internal to naia-shared
- Message
- Derives the Message trait for a given struct
- Message
Bevy - Derives the Message trait for a given struct, for the Bevy adapter
- Message
Fragment - Derives the Message trait for a given struct, for FragmentedMessage
- Message
Internal - Derives the Message trait for a given struct, for internal
- Message
Request - Derives the Message trait for a given struct, for RequestMessage
- Replicate
- Derives the Replicate trait for a given struct
- Replicate
Bevy - Derives the Replicate trait for a given struct, for the Bevy adapter.
Users add their own
#[derive(Component)]alongside this derive, so we skip auto-emitting a Bevy Component impl here.