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.

Trait Implementations

impl Encodable for Player
[src]

fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>

impl Debug for Player
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.