Skip to main content

Crate naia_derive

Crate naia_derive 

Source
Expand description

§Naia Derive

Procedural macros to simplify implementation of Naia types

Derive Macros§

Channel
Derives the Channel trait for a given struct
ChannelInternal
Derives the Channel trait for a given struct, internal to naia-shared
Message
Derives the Message trait for a given struct
MessageBevy
Derives the Message trait for a given struct, for the Bevy adapter
MessageFragment
Derives the Message trait for a given struct, for FragmentedMessage
MessageInternal
Derives the Message trait for a given struct, for internal
MessageRequest
Derives the Message trait for a given struct, for RequestMessage
Replicate
Derives the Replicate trait for a given struct
ReplicateBevy
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.