Struct vault::commands::BuildSquad
source · pub struct BuildSquad { /* private fields */ }
Expand description
Representation of a unit build/construction command in a Company of Heroes 3 replay. Note that this command logically represents the enqueuing of a build command within the game engine and does not necessarily guarantee that the unit in question was actually built. If a command to cancel construction is issued before the unit is fielded, the unit cost will be refunded. Therefore, to calculate build orders, one must be aware of all unit build times for the corresponding patch version and track unit cancellation as well.
Commands are collected during tick parsing and then associated with the Player
instance that
sent them. To access, see Player::commands
. To quickly access all of a player’s build
commands, see Player::build_commands
.
Implementations§
source§impl BuildSquad
impl BuildSquad
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.
Trait Implementations§
source§impl Clone for BuildSquad
impl Clone for BuildSquad
source§fn clone(&self) -> BuildSquad
fn clone(&self) -> BuildSquad
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more