pub enum Command {
AITakeover(Empty),
BuildGlobalUpgrade(SourcedPbgid),
BuildSquad(SourcedPbgid),
CancelConstruction(Sourced),
CancelProduction(SourcedIndex),
ConstructEntity(Pbgid),
SelectBattlegroup(Pbgid),
SelectBattlegroupAbility(Pbgid),
UseAbility(SourcedPbgid),
UseBattlegroupAbility(Pbgid),
Unknown(Unknown),
}Expand description
Wrapper for one of many Company of Heroes 3 player commands parsed from a replay file. For details on the specifics of a given command, see the specific enum variants.
Commands are collected during tick parsing and then associated with the Player instance that
sent them. To access, see Player::commands.
Variants§
AITakeover(Empty)
BuildGlobalUpgrade(SourcedPbgid)
BuildSquad(SourcedPbgid)
CancelConstruction(Sourced)
CancelProduction(SourcedIndex)
ConstructEntity(Pbgid)
SelectBattlegroup(Pbgid)
SelectBattlegroupAbility(Pbgid)
UseAbility(SourcedPbgid)
UseBattlegroupAbility(Pbgid)
Unknown(Unknown)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnwindSafe for Command
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)