create macro to not duplicate as much code and improve the PackageId parsing with it

This commit is contained in:
OMGeeky
2024-11-17 17:22:45 +01:00
parent ef8f7e8383
commit a5f94bc4ab
13 changed files with 287 additions and 183 deletions

View File

@@ -1,4 +1,5 @@
use crate::types::long::Long;
use crate::types::package::ProtocolData;
use crate::types::string::McString;
use crate::types::var_int::VarInt;
use crate::types::var_long::VarLong;
@@ -23,6 +24,7 @@ impl McRead for Data {
}
}
impl crate::types::package::ProtocolDataMarker for Data {}
#[derive(Debug, Clone)]
pub struct ResponseData {
pub(crate) timespan: Long,