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,
ComponentNameUpdated {
uuid: Uuid,
data: String,
} = 14,
}