First iteration that should work correctly but seems to have some memory issues with entities

This commit is contained in:
Lol3rrr
2024-10-17 21:15:03 +02:00
parent 840ac071b1
commit 14c422983e
15 changed files with 735 additions and 18 deletions

View File

@@ -2,7 +2,7 @@ use crate::{csgo_proto, RawValue, UserId};
macro_rules! define_event {
($name:ident, $target:path $(, ($field:ident, $field_ty:ty))*) => {
#[derive(Debug)]
#[derive(Debug, PartialEq)]
#[allow(dead_code)]
pub struct $name {
$(pub $field: Option<$field_ty>,)*
@@ -231,7 +231,7 @@ type ParseFn = fn(
event: csgo_proto::CMsgSource1LegacyGameEvent,
) -> Result<GameEvent, ParseGameEventError>;
#[derive(Debug)]
#[derive(Debug, PartialEq)]
#[allow(dead_code)]
pub enum GameEvent {
HltvVersionInfo(HltvVersionInfo),