pub struct Unknown { /* private fields */ }
Expand description
Representation of an unknown/unhandled command in a Company of Heroes 3 replay. All commands that have not yet had parsing implemented will appear as unknown until parsing has been added. New command parsing will be introduced gradually in major version updates to the library.
Commands are collected during tick parsing and then associated with the Player
instance that
sent them. To access, see Player::commands
.
Implementations§
source§impl Unknown
impl Unknown
sourcepub fn tick(&self) -> u32
pub fn tick(&self) -> u32
This value is the tick at which the command was found while parsing the replay, which represents the time in the replay at which it was executed. Because CoH3’s engine runs at 8 ticks per second, you can divide this value by 8 to get the number of seconds since the replay began, which will tell you when this command was executed.
sourcepub fn action_type(&self) -> u8
pub fn action_type(&self) -> u8
This value identifies the type of the command (build, move, stop, etc.). Commands with similar functionality can be grouped by this value.