mirror of
https://codeberg.org/demostf/parser.git
synced 2026-06-03 18:24:05 +02:00
minor cleanup
This commit is contained in:
parent
cb65c0d3ec
commit
b4af2a133e
3 changed files with 12 additions and 13 deletions
|
|
@ -38,7 +38,13 @@ impl PlayerState {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]
|
||||
impl Default for PlayerState {
|
||||
fn default() -> Self {
|
||||
PlayerState::Alive
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Default)]
|
||||
pub struct Player {
|
||||
entity: EntityId,
|
||||
pub position: Vector,
|
||||
|
|
@ -152,16 +158,7 @@ impl GameState {
|
|||
None => {
|
||||
let player = Player {
|
||||
entity: entity_id,
|
||||
position: Vector::default(),
|
||||
health: 0,
|
||||
max_health: 0,
|
||||
class: Class::Other,
|
||||
team: Team::Other,
|
||||
view_angle: 0.0,
|
||||
pitch_angle: 0.0,
|
||||
state: PlayerState::Alive,
|
||||
info: None,
|
||||
charge: 0,
|
||||
..Player::default()
|
||||
};
|
||||
|
||||
let index = self.players.len();
|
||||
|
|
|
|||
|
|
@ -1824,5 +1824,6 @@
|
|||
"weapon": "sniperrifle",
|
||||
"tick": 105298
|
||||
}
|
||||
]
|
||||
],
|
||||
"tick": 105351
|
||||
}
|
||||
|
|
@ -37,5 +37,6 @@
|
|||
"z": 1641.0
|
||||
}
|
||||
},
|
||||
"kills": []
|
||||
"kills": [],
|
||||
"tick": 115
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue