bevy_sync 0.19.0

Plugin for synchronizing entities and components between server and its clients.
Documentation
use serde::{Deserialize, Serialize};
use uuid::Uuid;

#[derive(Serialize, Deserialize, Debug, Clone)]
#[repr(u8)]
pub(crate) enum Message {
    EntitySpawn {
        uuid: Uuid,
    } = 1,
    EntityParented {
        entity_uuid: Uuid,
        parent_uuid: Uuid,
    } = 2,
    EntityDelete {
        uuid: Uuid,
    } = 4,
    ComponentUpdated {
        uuid: Uuid,
        name: String,
        data: Vec<u8>,
    } = 5,
    StandardMaterialUpdated {
        uuid: Uuid,
        material: Vec<u8>,
    } = 6,
    RequestInitialSync {
        from_uuid: u128,
    } = 12,
    FinishedInitialSync = 13,
    // Name components needs special treatment since it cannot be reflected
    // anymore since bevy 0.16
    ComponentNameUpdated {
        uuid: Uuid,
        data: String,
    } = 14,
}