1
0
Fork 0
mirror of https://codeberg.org/demostf/parser.git synced 2026-06-04 02:24:12 +02:00

Add analyzer to extract player scoreboard information

This commit is contained in:
Yep 2022-12-28 12:57:57 -05:00
commit df793083aa
6 changed files with 405 additions and 13 deletions

View file

@ -21,7 +21,7 @@ struct RawPlayerInfo {
pub more_extra: u8,
}
#[derive(BitWrite, Debug, Clone)]
#[derive(BitWrite, Debug, Clone, Default)]
pub struct PlayerInfo {
#[size = 32]
pub name: String,
@ -60,7 +60,7 @@ impl From<RawPlayerInfo> for PlayerInfo {
}
}
#[derive(Clone, Debug)]
#[derive(Clone, Debug, Default)]
pub struct UserInfo {
pub entity_id: EntityId,
pub player_info: PlayerInfo,