Skip to main content

CommandType

Enum CommandType 

Source
#[repr(u8)]
pub enum CommandType {
Show 160 variants CMD_DefaultAction = 0, CMD_Stop = 1, CMD_Destroy = 2, CMD_BuildSquad = 3, CMD_InstantBuildSquad = 4, CMD_CancelProduction = 5, CMD_BuildStructure = 6, CMD_Move = 7, CMD_FlightMove = 8, CMD_Face = 9, CMD_Attack = 10, CMD_AttackMove = 11, CMD_RallyPoint = 12, CMD_Capture = 13, CMD_Ability = 14, CMD_Evacuate = 15, CMD_Upgrade = 16, CMD_InstantUpgrade = 17, CMD_Load = 18, CMD_Unload = 19, CMD_UnloadSquads = 20, CMD_AttackStop = 21, CMD_AttackForced = 22, CMD_SetHoldHeading = 23, CMD_StopMove = 24, CMD_Paradrop = 25, CMD_DefuseMine = 26, CMD_Casualty = 27, CMD_Death = 28, CMD_InstantDeath = 29, CMD_Projectile = 30, CMD_PlaceCharge = 31, CMD_BuildEntity = 32, CMD_RescueCasualty = 33, CMD_AttackFromHold = 34, CMD_Vault = 35, CMD_KnockedBack = 36, CMD_Teardown = 37, CMD_Melee = 38, CMD_ResolveOverlap = 39, CMD_Stun = 40, CMD_InstantSetupTeamWeapon = 41, CMD_SetupTeamWeapon = 42, CMD_MoveToCover = 43, CMD_Taunted = 44, CMD_Trade = 45, CMD_Brace = 46, CMD_Gather = 47, CMD_PickUpSimItem = 48, CMD_ChangeCombatSlot = 49, CMD_RetreatMove = 50, CMD_StopAbility = 51, CMD_InstantLoad = 52, CMD_RestoreWreck = 53, CMD_Disable = 54, CMD_Enable = 55, CMD_CancelConstruction = 56, CMD_HoldPositionOn = 57, CMD_HoldPositionOff = 58, CMD_CancelRestoreWreck = 59, CMD_Repair = 60, CMD_COUNT = 61, SCMD_Move = 62, SCMD_Stop = 63, SCMD_Destroy = 64, SCMD_BuildStructure = 65, SCMD_Capture = 66, SCMD_Attack = 67, SCMD_ReinforceUnit = 68, SCMD_Upgrade = 69, SCMD_CancelProduction = 70, SCMD_AttackMove = 71, SCMD_Ability = 72, SCMD_Load = 73, SCMD_InstantLoad = 74, SCMD_UnloadSquads = 75, SCMD_Unload = 76, SCMD_PickupTrailer_UNUSED = 77, SCMD_Retreat = 78, SCMD_CaptureTeamWeapon = 79, SCMD_SetMoveType = 80, SCMD_InstantReinforceUnit = 81, SCMD_InstantUpgrade = 82, SCMD_PlaceCharge = 83, SCMD_DefuseCharge = 84, SCMD_DropTrailer_UNUSED = 85, SCMD_PickUpSimItem = 86, SCMD_DefuseMine = 87, SCMD_DoPlan = 88, SCMD_Patrol = 89, SCMD_Surprise = 90, SCMD_InstantSetupTeamWeapon = 91, SCMD_SetupTeamWeapon = 92, SCMD_AbandonTeamWeapon = 93, SCMD_StationaryAttack = 94, SCMD_RevertFieldSupport = 95, SCMD_Face = 96, SCMD_BuildSquad = 97, SCMD_RallyPoint = 98, SCMD_RescueCasualty = 99, SCMD_Recrew = 100, SCMD_Merge = 101, SCMD_WeaponPreference = 102, SCMD_CombatStance = 103, SCMD_MoveToCover = 104, SCMD_Gather = 105, SCMD_AttackWithinLeashArea = 106, SCMD_JoinFormationSquadGroup = 107, SCMD_Trade = 108, SCMD_HoldPosition = 109, SCMD_Evacuate = 110, SCMD_Vault = 111, SCMD_CancelQueuedCommand = 112, SCMD_RespondToBeingBreached = 113, SCMD_StopAbility = 114, SCMD_InstantParadropReinforceUnit = 115, SCMD_MoveUntilInsidePlayableArea = 116, SCMD_BeingTowed = 117, SCMD_AttachingTrailer = 118, SCMD_DetachingTrailer_UNUSED = 119, SCMD_RestoreWreck_UNUSED = 120, SCMD_AnimatedSpawn = 121, SCMD_COUNT = 122, FCMD_FormationSquadGroupMove = 123, FCMD_FormationSquadGroupAttack = 124, FCMD_FormationSquadGroupAttackMove = 125, FCMD_FormationSquadGroupStop = 126, FCMD_COUNT = 127, PCMD_PlaceAndConstructEntities = 128, PCMD_ResourceDonation = 129, PCMD_CheatResources = 130, PCMD_CheatRevealAll = 131, PCMD_Ability = 132, PCMD_CheatBuildTime = 133, PCMD_CheatIgnoreCosts = 134, PCMD_Upgrade = 135, PCMD_InstantUpgrade = 136, PCMD_TentativeUpgrade = 137, PCMD_TentativeUpgradePurchaseAll = 138, PCMD_UpgradeRemove = 139, PCMD_TentativeUpgradeRemoveAll = 140, PCMD_SlotItemRemove_DEPRECATED = 141, PCMD_CancelProduction = 142, PCMD_DetonateCharges = 143, PCMD_AIPlayer = 144, PCMD_AIPlayer_EncounterNotification = 145, PCMD_Surrender = 146, PCMD_WaitObjectDone = 147, PCMD_BroadcastMessage = 148, PCMD_AIPlayer_EncounterSniped = 149, PCMD_AIPlayer_ResourceBonus = 150, PCMD_FormationSquadGroupCreateBegin = 151, PCMD_FormationSquadGroupAddSquad = 152, PCMD_FormationSquadGroupCreateEnd = 153, PCMD_EndTurn = 154, PCMD_StopAbility = 155, PCMD_COUNT = 156, DCMD_CameraTrack = 157, DCMD_COUNT = 158, Unknown(u8),
}
Expand description

Company of Heroes 3 command types.

Variants§

§

CMD_DefaultAction = 0

§

CMD_Stop = 1

§

CMD_Destroy = 2

§

CMD_BuildSquad = 3

§

CMD_InstantBuildSquad = 4

§

CMD_CancelProduction = 5

§

CMD_BuildStructure = 6

§

CMD_Move = 7

§

CMD_FlightMove = 8

§

CMD_Face = 9

§

CMD_Attack = 10

§

CMD_AttackMove = 11

§

CMD_RallyPoint = 12

§

CMD_Capture = 13

§

CMD_Ability = 14

§

CMD_Evacuate = 15

§

CMD_Upgrade = 16

§

CMD_InstantUpgrade = 17

§

CMD_Load = 18

§

CMD_Unload = 19

§

CMD_UnloadSquads = 20

§

CMD_AttackStop = 21

§

CMD_AttackForced = 22

§

CMD_SetHoldHeading = 23

§

CMD_StopMove = 24

§

CMD_Paradrop = 25

§

CMD_DefuseMine = 26

§

CMD_Casualty = 27

§

CMD_Death = 28

§

CMD_InstantDeath = 29

§

CMD_Projectile = 30

§

CMD_PlaceCharge = 31

§

CMD_BuildEntity = 32

§

CMD_RescueCasualty = 33

§

CMD_AttackFromHold = 34

§

CMD_Vault = 35

§

CMD_KnockedBack = 36

§

CMD_Teardown = 37

§

CMD_Melee = 38

§

CMD_ResolveOverlap = 39

§

CMD_Stun = 40

§

CMD_InstantSetupTeamWeapon = 41

§

CMD_SetupTeamWeapon = 42

§

CMD_MoveToCover = 43

§

CMD_Taunted = 44

§

CMD_Trade = 45

§

CMD_Brace = 46

§

CMD_Gather = 47

§

CMD_PickUpSimItem = 48

§

CMD_ChangeCombatSlot = 49

§

CMD_RetreatMove = 50

§

CMD_StopAbility = 51

§

CMD_InstantLoad = 52

§

CMD_RestoreWreck = 53

§

CMD_Disable = 54

§

CMD_Enable = 55

§

CMD_CancelConstruction = 56

§

CMD_HoldPositionOn = 57

§

CMD_HoldPositionOff = 58

§

CMD_CancelRestoreWreck = 59

§

CMD_Repair = 60

§

CMD_COUNT = 61

§

SCMD_Move = 62

§

SCMD_Stop = 63

§

SCMD_Destroy = 64

§

SCMD_BuildStructure = 65

§

SCMD_Capture = 66

§

SCMD_Attack = 67

§

SCMD_ReinforceUnit = 68

§

SCMD_Upgrade = 69

§

SCMD_CancelProduction = 70

§

SCMD_AttackMove = 71

§

SCMD_Ability = 72

§

SCMD_Load = 73

§

SCMD_InstantLoad = 74

§

SCMD_UnloadSquads = 75

§

SCMD_Unload = 76

§

SCMD_PickupTrailer_UNUSED = 77

§

SCMD_Retreat = 78

§

SCMD_CaptureTeamWeapon = 79

§

SCMD_SetMoveType = 80

§

SCMD_InstantReinforceUnit = 81

§

SCMD_InstantUpgrade = 82

§

SCMD_PlaceCharge = 83

§

SCMD_DefuseCharge = 84

§

SCMD_DropTrailer_UNUSED = 85

§

SCMD_PickUpSimItem = 86

§

SCMD_DefuseMine = 87

§

SCMD_DoPlan = 88

§

SCMD_Patrol = 89

§

SCMD_Surprise = 90

§

SCMD_InstantSetupTeamWeapon = 91

§

SCMD_SetupTeamWeapon = 92

§

SCMD_AbandonTeamWeapon = 93

§

SCMD_StationaryAttack = 94

§

SCMD_RevertFieldSupport = 95

§

SCMD_Face = 96

§

SCMD_BuildSquad = 97

§

SCMD_RallyPoint = 98

§

SCMD_RescueCasualty = 99

§

SCMD_Recrew = 100

§

SCMD_Merge = 101

§

SCMD_WeaponPreference = 102

§

SCMD_CombatStance = 103

§

SCMD_MoveToCover = 104

§

SCMD_Gather = 105

§

SCMD_AttackWithinLeashArea = 106

§

SCMD_JoinFormationSquadGroup = 107

§

SCMD_Trade = 108

§

SCMD_HoldPosition = 109

§

SCMD_Evacuate = 110

§

SCMD_Vault = 111

§

SCMD_CancelQueuedCommand = 112

§

SCMD_RespondToBeingBreached = 113

§

SCMD_StopAbility = 114

§

SCMD_InstantParadropReinforceUnit = 115

§

SCMD_MoveUntilInsidePlayableArea = 116

§

SCMD_BeingTowed = 117

§

SCMD_AttachingTrailer = 118

§

SCMD_DetachingTrailer_UNUSED = 119

§

SCMD_RestoreWreck_UNUSED = 120

§

SCMD_AnimatedSpawn = 121

§

SCMD_COUNT = 122

§

FCMD_FormationSquadGroupMove = 123

§

FCMD_FormationSquadGroupAttack = 124

§

FCMD_FormationSquadGroupAttackMove = 125

§

FCMD_FormationSquadGroupStop = 126

§

FCMD_COUNT = 127

§

PCMD_PlaceAndConstructEntities = 128

§

PCMD_ResourceDonation = 129

§

PCMD_CheatResources = 130

§

PCMD_CheatRevealAll = 131

§

PCMD_Ability = 132

§

PCMD_CheatBuildTime = 133

§

PCMD_CheatIgnoreCosts = 134

§

PCMD_Upgrade = 135

§

PCMD_InstantUpgrade = 136

§

PCMD_TentativeUpgrade = 137

§

PCMD_TentativeUpgradePurchaseAll = 138

§

PCMD_UpgradeRemove = 139

§

PCMD_TentativeUpgradeRemoveAll = 140

§

PCMD_SlotItemRemove_DEPRECATED = 141

§

PCMD_CancelProduction = 142

§

PCMD_DetonateCharges = 143

§

PCMD_AIPlayer = 144

§

PCMD_AIPlayer_EncounterNotification = 145

§

PCMD_Surrender = 146

§

PCMD_WaitObjectDone = 147

§

PCMD_BroadcastMessage = 148

§

PCMD_AIPlayer_EncounterSniped = 149

§

PCMD_AIPlayer_ResourceBonus = 150

§

PCMD_FormationSquadGroupCreateBegin = 151

§

PCMD_FormationSquadGroupAddSquad = 152

§

PCMD_FormationSquadGroupCreateEnd = 153

§

PCMD_EndTurn = 154

§

PCMD_StopAbility = 155

§

PCMD_COUNT = 156

§

DCMD_CameraTrack = 157

§

DCMD_COUNT = 158

§

Unknown(u8)

Trait Implementations§

Source§

impl Clone for CommandType

Source§

fn clone(&self) -> CommandType

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for CommandType

Source§

impl Debug for CommandType

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for CommandType

Source§

impl From<CommandType> for u8

Source§

fn from(val: CommandType) -> u8

Converts to this type from the input type.
Source§

impl From<u8> for CommandType

Source§

fn from(val: u8) -> CommandType

Converts to this type from the input type.
Source§

impl Hash for CommandType

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for CommandType

Source§

fn eq(&self, other: &CommandType) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for CommandType

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.