Struct vault::Player
[−]
[src]
pub struct Player { pub id: u8, pub name: String, pub steam_id: u64, pub steam_id_str: String, pub team: u32, pub faction: String, pub commander: u32, pub items: Vec<Item>, pub cpm: f64, }
This type represents a Company of Heroes 2 player entity as it appears in a CoH2 replay file.
Fields
id: u8
Internal ID of player
name: String
Unicode name of player
steam_id: u64
64-bit Steam ID
steam_id_str: String
Steam ID as string because JS has trouble with true 64-bit ints
team: u32
Team the player belongs to
faction: String
String representation of the player's faction
commander: u32
If it can be found, the server_id
of the player's commander
items: Vec<Item>
A collection of the player's equipped items
cpm: f64
If it can be calculated, the player's commands per minute