naia-server 0.15.0

A server that uses either UDP or WebRTC communication to send/receive messages to/from connected clients, and syncs registered Entities/Components to clients to whom they are in-scope.
Documentation
use naia_shared::ProtocolKindType;

#[derive(Clone, PartialEq, Eq)]
pub enum EntityActionEvent<E: Copy, K: ProtocolKindType> {
    SpawnEntity(E),
    DespawnEntity(E),
    InsertComponent(E, K),
    RemoveComponent(E, K),
}