Change the way entity data is stored

This commit is contained in:
Lol3rrr
2024-09-22 23:19:18 +02:00
parent 8b41ad5108
commit ff8d05b79a
8 changed files with 73 additions and 30 deletions

View File

@@ -2,9 +2,9 @@ use crate::csgo_proto;
#[derive(Debug)]
pub enum DemoEvent {
GameEvent(crate::game_event::GameEvent),
ServerInfo(csgo_proto::CsvcMsgServerInfo),
Tick(csgo_proto::CnetMsgTick),
RankUpdate(csgo_proto::CcsUsrMsgServerRankUpdate),
RankReveal(csgo_proto::CcsUsrMsgServerRankRevealAll),
GameEvent(Box<crate::game_event::GameEvent>),
ServerInfo(Box<csgo_proto::CsvcMsgServerInfo>),
Tick(Box<csgo_proto::CnetMsgTick>),
RankUpdate(Box<csgo_proto::CcsUsrMsgServerRankUpdate>),
RankReveal(Box<csgo_proto::CcsUsrMsgServerRankRevealAll>),
}