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:
parent
28c2da5044
commit
df793083aa
6 changed files with 405 additions and 13 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue