Struct vault::Item [] [src]

pub struct Item {
    pub selection_id: u32,
    pub server_id: u32,
    pub item_type: ItemType,
}

This type contains a parsed representation of an item that can be equipped in a CoH2 replay.

Fields

Used in a PCMD_SetCommander command to refer to the commander selected by a player

Corresponds to a server_id in Relic's attribute files

Internally used to organize different item types

Methods

impl Item
[src]

Constructs a new Item with an empty ID and the given ItemType.

Trait Implementations

impl Debug for Item
[src]

Formats the value using the given formatter.

impl Encodable for Item
[src]

Serialize a value using an Encoder.