mirror of
https://github.com/griffi-gh/kubi.git
synced 2024-11-13 19:08:41 -06:00
CheckBytes
This commit is contained in:
parent
ab7c181345
commit
b0642028d1
|
@ -10,3 +10,4 @@ glam = { version = "0.22", features = ["debug-glam-assert", "mint", "fast-math",
|
||||||
strum = { version = "0.24", features = ["derive"] }
|
strum = { version = "0.24", features = ["derive"] }
|
||||||
bracket-noise = "0.8"
|
bracket-noise = "0.8"
|
||||||
rkyv = { version = "0.7", features = ["validation", "archive_le"] }
|
rkyv = { version = "0.7", features = ["validation", "archive_le"] }
|
||||||
|
bytecheck = "*"
|
||||||
|
|
|
@ -1,11 +1,14 @@
|
||||||
use rkyv::{Archive, Deserialize, Serialize};
|
use rkyv::{Archive, Deserialize, Serialize};
|
||||||
|
use bytecheck::CheckBytes;
|
||||||
|
|
||||||
#[derive(Archive, Deserialize, Serialize, Debug, PartialEq)]
|
#[derive(Archive, Deserialize, Serialize, Debug, PartialEq)]
|
||||||
|
#[archive_attr(derive(CheckBytes, Debug))]
|
||||||
pub enum ClientToServerMessage {
|
pub enum ClientToServerMessage {
|
||||||
Placeholder
|
Placeholder
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Archive, Deserialize, Serialize, Debug, PartialEq)]
|
#[derive(Archive, Deserialize, Serialize, Debug, PartialEq)]
|
||||||
|
#[archive_attr(derive(CheckBytes, Debug))]
|
||||||
pub enum ServerToClientMessage {
|
pub enum ServerToClientMessage {
|
||||||
Placeholder
|
Placeholder
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
use strum::EnumIter;
|
|
||||||
use crate::prefabs::BlockTexture;
|
use crate::prefabs::BlockTexture;
|
||||||
pub use kubi_shared::blocks::Block;
|
pub use kubi_shared::blocks::Block;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue