CheckBytes

This commit is contained in:
griffi-gh 2023-01-30 20:23:00 +01:00
parent b765a74415
commit 343b307aa6
3 changed files with 4 additions and 1 deletions

View file

@ -10,3 +10,4 @@ glam = { version = "0.22", features = ["debug-glam-assert", "mint", "fast-math",
strum = { version = "0.24", features = ["derive"] }
bracket-noise = "0.8"
rkyv = { version = "0.7", features = ["validation", "archive_le"] }
bytecheck = "*"

View file

@ -1,11 +1,14 @@
use rkyv::{Archive, Deserialize, Serialize};
use bytecheck::CheckBytes;
#[derive(Archive, Deserialize, Serialize, Debug, PartialEq)]
#[archive_attr(derive(CheckBytes, Debug))]
pub enum ClientToServerMessage {
Placeholder
}
#[derive(Archive, Deserialize, Serialize, Debug, PartialEq)]
#[archive_attr(derive(CheckBytes, Debug))]
pub enum ServerToClientMessage {
Placeholder
}

View file

@ -1,4 +1,3 @@
use strum::EnumIter;
use crate::prefabs::BlockTexture;
pub use kubi_shared::blocks::Block;