feat: stuff happend

This commit is contained in:
DJMrTV 2025-03-23 10:54:01 +01:00
commit fa37331780
11 changed files with 511 additions and 343 deletions

View file

@ -17,7 +17,7 @@ pub enum Error{
VersionMismatch(u8),
}
pub(crate) type Result<T> = std::result::Result<T, Error>;
pub type Result<T> = std::result::Result<T, Error>;
pub mod string;
pub mod any;
@ -30,9 +30,18 @@ pub mod qbuffer;
pub mod primitives;
pub mod matchmake;
pub mod variant;
mod ranking;
pub mod ranking;
pub trait RmcSerialize: Sized{
fn serialize(&self, writer: &mut dyn Write) -> Result<()>;
fn deserialize(reader: &mut dyn Read) -> Result<Self>;
}
impl RmcSerialize for (){
fn serialize(&self, writer: &mut dyn Write) -> Result<()> {
Ok(())
}
fn deserialize(reader: &mut dyn Read) -> Result<Self> {
Ok(())
}
}