Crate lightyear_messages

Crate lightyear_messages 

Source
Expand description

§Lightyear Messages

This crate provides a MessagePlugin to handle sending and receiving messages over the network.

A Message is simply any type that can be (de)serialized.

You can add the MessageSender<M> or MessageReceiver<M> components to your Link entity to enable sending and receiving messages of type M.

The crate also provides a MessageManager component that manages the process of sending and receiving messages for an entity. It stores a RemoteEntityMap that holds a mapping between the local and remote entities.

Modules§

multi
plugin
prelude
receive
registry
send
server

Structs§

MessageManager
Manages sending and receiving messages for an entity.

Traits§

Message
A Message is basically any type that can be (de)serialized over the network.

Type Aliases§

MessageNetId