Struct vault::Player
[−]
[src]
pub struct Player { pub id: u8, pub name: String, pub steam_id: u64, pub team: u32, pub faction: String, pub items: Vec<Item>, pub commands: Vec<Command>, pub cpm: f64, }
This type represents a Company of Heroes 2 player entity as it appears in a CoH2 replay file.
Fields
id: u8
name: String
steam_id: u64
team: u32
faction: String
items: Vec<Item>
commands: Vec<Command>
cpm: f64
Methods
impl Player
[src]
fn new(id: u8) -> Player
Constructs a new Player with empty initial data.
fn display(&self)
Writes the contents of the Player to stdout.