Struct vault::commands::BuildGlobalUpgrade
source · pub struct BuildGlobalUpgrade { /* private fields */ }
Expand description
Representation of a global upgrade build command in a Company of Heroes 3 replay. Note that this command logically represents the enqueuing of an upgrade command within the game engine and does not necessarily guarantee that the upgrade in question was actually built. If a command to cancel construction is issued before the upgrade is completed, the upgrade cost will be refunded. Therefore, to calculate build orders, one must be aware of all upgrade build times for the corresponding patch version and track upgrade 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 BuildGlobalUpgrade
impl BuildGlobalUpgrade
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 BuildGlobalUpgrade
impl Clone for BuildGlobalUpgrade
source§fn clone(&self) -> BuildGlobalUpgrade
fn clone(&self) -> BuildGlobalUpgrade
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more