sc2_proto::error

Enum ActionResult

Source
pub enum ActionResult {
Show 214 variants Success = 1, NotSupported = 2, Error = 3, CantQueueThatOrder = 4, Retry = 5, Cooldown = 6, QueueIsFull = 7, RallyQueueIsFull = 8, NotEnoughMinerals = 9, NotEnoughVespene = 10, NotEnoughTerrazine = 11, NotEnoughCustom = 12, NotEnoughFood = 13, FoodUsageImpossible = 14, NotEnoughLife = 15, NotEnoughShields = 16, NotEnoughEnergy = 17, LifeSuppressed = 18, ShieldsSuppressed = 19, EnergySuppressed = 20, NotEnoughCharges = 21, CantAddMoreCharges = 22, TooMuchMinerals = 23, TooMuchVespene = 24, TooMuchTerrazine = 25, TooMuchCustom = 26, TooMuchFood = 27, TooMuchLife = 28, TooMuchShields = 29, TooMuchEnergy = 30, MustTargetUnitWithLife = 31, MustTargetUnitWithShields = 32, MustTargetUnitWithEnergy = 33, CantTrade = 34, CantSpend = 35, CantTargetThatUnit = 36, CouldntAllocateUnit = 37, UnitCantMove = 38, TransportIsHoldingPosition = 39, BuildTechRequirementsNotMet = 40, CantFindPlacementLocation = 41, CantBuildOnThat = 42, CantBuildTooCloseToDropOff = 43, CantBuildLocationInvalid = 44, CantSeeBuildLocation = 45, CantBuildTooCloseToCreepSource = 46, CantBuildTooCloseToResources = 47, CantBuildTooFarFromWater = 48, CantBuildTooFarFromCreepSource = 49, CantBuildTooFarFromBuildPowerSource = 50, CantBuildOnDenseTerrain = 51, CantTrainTooFarFromTrainPowerSource = 52, CantLandLocationInvalid = 53, CantSeeLandLocation = 54, CantLandTooCloseToCreepSource = 55, CantLandTooCloseToResources = 56, CantLandTooFarFromWater = 57, CantLandTooFarFromCreepSource = 58, CantLandTooFarFromBuildPowerSource = 59, CantLandTooFarFromTrainPowerSource = 60, CantLandOnDenseTerrain = 61, AddOnTooFarFromBuilding = 62, MustBuildRefineryFirst = 63, BuildingIsUnderConstruction = 64, CantFindDropOff = 65, CantLoadOtherPlayersUnits = 66, NotEnoughRoomToLoadUnit = 67, CantUnloadUnitsThere = 68, CantWarpInUnitsThere = 69, CantLoadImmobileUnits = 70, CantRechargeImmobileUnits = 71, CantRechargeUnderConstructionUnits = 72, CantLoadThatUnit = 73, NoCargoToUnload = 74, LoadAllNoTargetsFound = 75, NotWhileOccupied = 76, CantAttackWithoutAmmo = 77, CantHoldAnyMoreAmmo = 78, TechRequirementsNotMet = 79, MustLockdownUnitFirst = 80, MustTargetUnit = 81, MustTargetInventory = 82, MustTargetVisibleUnit = 83, MustTargetVisibleLocation = 84, MustTargetWalkableLocation = 85, MustTargetPawnableUnit = 86, YouCantControlThatUnit = 87, YouCantIssueCommandsToThatUnit = 88, MustTargetResources = 89, RequiresHealTarget = 90, RequiresRepairTarget = 91, NoItemsToDrop = 92, CantHoldAnyMoreItems = 93, CantHoldThat = 94, TargetHasNoInventory = 95, CantDropThisItem = 96, CantMoveThisItem = 97, CantPawnThisUnit = 98, MustTargetCaster = 99, CantTargetCaster = 100, MustTargetOuter = 101, CantTargetOuter = 102, MustTargetYourOwnUnits = 103, CantTargetYourOwnUnits = 104, MustTargetFriendlyUnits = 105, CantTargetFriendlyUnits = 106, MustTargetNeutralUnits = 107, CantTargetNeutralUnits = 108, MustTargetEnemyUnits = 109, CantTargetEnemyUnits = 110, MustTargetAirUnits = 111, CantTargetAirUnits = 112, MustTargetGroundUnits = 113, CantTargetGroundUnits = 114, MustTargetStructures = 115, CantTargetStructures = 116, MustTargetLightUnits = 117, CantTargetLightUnits = 118, MustTargetArmoredUnits = 119, CantTargetArmoredUnits = 120, MustTargetBiologicalUnits = 121, CantTargetBiologicalUnits = 122, MustTargetHeroicUnits = 123, CantTargetHeroicUnits = 124, MustTargetRoboticUnits = 125, CantTargetRoboticUnits = 126, MustTargetMechanicalUnits = 127, CantTargetMechanicalUnits = 128, MustTargetPsionicUnits = 129, CantTargetPsionicUnits = 130, MustTargetMassiveUnits = 131, CantTargetMassiveUnits = 132, MustTargetMissile = 133, CantTargetMissile = 134, MustTargetWorkerUnits = 135, CantTargetWorkerUnits = 136, MustTargetEnergyCapableUnits = 137, CantTargetEnergyCapableUnits = 138, MustTargetShieldCapableUnits = 139, CantTargetShieldCapableUnits = 140, MustTargetFlyers = 141, CantTargetFlyers = 142, MustTargetBuriedUnits = 143, CantTargetBuriedUnits = 144, MustTargetCloakedUnits = 145, CantTargetCloakedUnits = 146, MustTargetUnitsInAStasisField = 147, CantTargetUnitsInAStasisField = 148, MustTargetUnderConstructionUnits = 149, CantTargetUnderConstructionUnits = 150, MustTargetDeadUnits = 151, CantTargetDeadUnits = 152, MustTargetRevivableUnits = 153, CantTargetRevivableUnits = 154, MustTargetHiddenUnits = 155, CantTargetHiddenUnits = 156, CantRechargeOtherPlayersUnits = 157, MustTargetHallucinations = 158, CantTargetHallucinations = 159, MustTargetInvulnerableUnits = 160, CantTargetInvulnerableUnits = 161, MustTargetDetectedUnits = 162, CantTargetDetectedUnits = 163, CantTargetUnitWithEnergy = 164, CantTargetUnitWithShields = 165, MustTargetUncommandableUnits = 166, CantTargetUncommandableUnits = 167, MustTargetPreventDefeatUnits = 168, CantTargetPreventDefeatUnits = 169, MustTargetPreventRevealUnits = 170, CantTargetPreventRevealUnits = 171, MustTargetPassiveUnits = 172, CantTargetPassiveUnits = 173, MustTargetStunnedUnits = 174, CantTargetStunnedUnits = 175, MustTargetSummonedUnits = 176, CantTargetSummonedUnits = 177, MustTargetUser1 = 178, CantTargetUser1 = 179, MustTargetUnstoppableUnits = 180, CantTargetUnstoppableUnits = 181, MustTargetResistantUnits = 182, CantTargetResistantUnits = 183, MustTargetDazedUnits = 184, CantTargetDazedUnits = 185, CantLockdown = 186, CantMindControl = 187, MustTargetDestructibles = 188, CantTargetDestructibles = 189, MustTargetItems = 190, CantTargetItems = 191, NoCalldownAvailable = 192, WaypointListFull = 193, MustTargetRace = 194, CantTargetRace = 195, MustTargetSimilarUnits = 196, CantTargetSimilarUnits = 197, CantFindEnoughTargets = 198, AlreadySpawningLarva = 199, CantTargetExhaustedResources = 200, CantUseMinimap = 201, CantUseInfoPanel = 202, OrderQueueIsFull = 203, CantHarvestThatResource = 204, HarvestersNotRequired = 205, AlreadyTargeted = 206, CantAttackWeaponsDisabled = 207, CouldntReachTarget = 208, TargetIsOutOfRange = 209, TargetIsTooClose = 210, TargetIsOutOfArc = 211, CantFindTeleportLocation = 212, InvalidItemClass = 213, CantFindCancelOrder = 214,
}
Expand description

Generated files are compatible only with the same version of protobuf runtime.

Variants§

§

Success = 1

§

NotSupported = 2

§

Error = 3

§

CantQueueThatOrder = 4

§

Retry = 5

§

Cooldown = 6

§

QueueIsFull = 7

§

RallyQueueIsFull = 8

§

NotEnoughMinerals = 9

§

NotEnoughVespene = 10

§

NotEnoughTerrazine = 11

§

NotEnoughCustom = 12

§

NotEnoughFood = 13

§

FoodUsageImpossible = 14

§

NotEnoughLife = 15

§

NotEnoughShields = 16

§

NotEnoughEnergy = 17

§

LifeSuppressed = 18

§

ShieldsSuppressed = 19

§

EnergySuppressed = 20

§

NotEnoughCharges = 21

§

CantAddMoreCharges = 22

§

TooMuchMinerals = 23

§

TooMuchVespene = 24

§

TooMuchTerrazine = 25

§

TooMuchCustom = 26

§

TooMuchFood = 27

§

TooMuchLife = 28

§

TooMuchShields = 29

§

TooMuchEnergy = 30

§

MustTargetUnitWithLife = 31

§

MustTargetUnitWithShields = 32

§

MustTargetUnitWithEnergy = 33

§

CantTrade = 34

§

CantSpend = 35

§

CantTargetThatUnit = 36

§

CouldntAllocateUnit = 37

§

UnitCantMove = 38

§

TransportIsHoldingPosition = 39

§

BuildTechRequirementsNotMet = 40

§

CantFindPlacementLocation = 41

§

CantBuildOnThat = 42

§

CantBuildTooCloseToDropOff = 43

§

CantBuildLocationInvalid = 44

§

CantSeeBuildLocation = 45

§

CantBuildTooCloseToCreepSource = 46

§

CantBuildTooCloseToResources = 47

§

CantBuildTooFarFromWater = 48

§

CantBuildTooFarFromCreepSource = 49

§

CantBuildTooFarFromBuildPowerSource = 50

§

CantBuildOnDenseTerrain = 51

§

CantTrainTooFarFromTrainPowerSource = 52

§

CantLandLocationInvalid = 53

§

CantSeeLandLocation = 54

§

CantLandTooCloseToCreepSource = 55

§

CantLandTooCloseToResources = 56

§

CantLandTooFarFromWater = 57

§

CantLandTooFarFromCreepSource = 58

§

CantLandTooFarFromBuildPowerSource = 59

§

CantLandTooFarFromTrainPowerSource = 60

§

CantLandOnDenseTerrain = 61

§

AddOnTooFarFromBuilding = 62

§

MustBuildRefineryFirst = 63

§

BuildingIsUnderConstruction = 64

§

CantFindDropOff = 65

§

CantLoadOtherPlayersUnits = 66

§

NotEnoughRoomToLoadUnit = 67

§

CantUnloadUnitsThere = 68

§

CantWarpInUnitsThere = 69

§

CantLoadImmobileUnits = 70

§

CantRechargeImmobileUnits = 71

§

CantRechargeUnderConstructionUnits = 72

§

CantLoadThatUnit = 73

§

NoCargoToUnload = 74

§

LoadAllNoTargetsFound = 75

§

NotWhileOccupied = 76

§

CantAttackWithoutAmmo = 77

§

CantHoldAnyMoreAmmo = 78

§

TechRequirementsNotMet = 79

§

MustLockdownUnitFirst = 80

§

MustTargetUnit = 81

§

MustTargetInventory = 82

§

MustTargetVisibleUnit = 83

§

MustTargetVisibleLocation = 84

§

MustTargetWalkableLocation = 85

§

MustTargetPawnableUnit = 86

§

YouCantControlThatUnit = 87

§

YouCantIssueCommandsToThatUnit = 88

§

MustTargetResources = 89

§

RequiresHealTarget = 90

§

RequiresRepairTarget = 91

§

NoItemsToDrop = 92

§

CantHoldAnyMoreItems = 93

§

CantHoldThat = 94

§

TargetHasNoInventory = 95

§

CantDropThisItem = 96

§

CantMoveThisItem = 97

§

CantPawnThisUnit = 98

§

MustTargetCaster = 99

§

CantTargetCaster = 100

§

MustTargetOuter = 101

§

CantTargetOuter = 102

§

MustTargetYourOwnUnits = 103

§

CantTargetYourOwnUnits = 104

§

MustTargetFriendlyUnits = 105

§

CantTargetFriendlyUnits = 106

§

MustTargetNeutralUnits = 107

§

CantTargetNeutralUnits = 108

§

MustTargetEnemyUnits = 109

§

CantTargetEnemyUnits = 110

§

MustTargetAirUnits = 111

§

CantTargetAirUnits = 112

§

MustTargetGroundUnits = 113

§

CantTargetGroundUnits = 114

§

MustTargetStructures = 115

§

CantTargetStructures = 116

§

MustTargetLightUnits = 117

§

CantTargetLightUnits = 118

§

MustTargetArmoredUnits = 119

§

CantTargetArmoredUnits = 120

§

MustTargetBiologicalUnits = 121

§

CantTargetBiologicalUnits = 122

§

MustTargetHeroicUnits = 123

§

CantTargetHeroicUnits = 124

§

MustTargetRoboticUnits = 125

§

CantTargetRoboticUnits = 126

§

MustTargetMechanicalUnits = 127

§

CantTargetMechanicalUnits = 128

§

MustTargetPsionicUnits = 129

§

CantTargetPsionicUnits = 130

§

MustTargetMassiveUnits = 131

§

CantTargetMassiveUnits = 132

§

MustTargetMissile = 133

§

CantTargetMissile = 134

§

MustTargetWorkerUnits = 135

§

CantTargetWorkerUnits = 136

§

MustTargetEnergyCapableUnits = 137

§

CantTargetEnergyCapableUnits = 138

§

MustTargetShieldCapableUnits = 139

§

CantTargetShieldCapableUnits = 140

§

MustTargetFlyers = 141

§

CantTargetFlyers = 142

§

MustTargetBuriedUnits = 143

§

CantTargetBuriedUnits = 144

§

MustTargetCloakedUnits = 145

§

CantTargetCloakedUnits = 146

§

MustTargetUnitsInAStasisField = 147

§

CantTargetUnitsInAStasisField = 148

§

MustTargetUnderConstructionUnits = 149

§

CantTargetUnderConstructionUnits = 150

§

MustTargetDeadUnits = 151

§

CantTargetDeadUnits = 152

§

MustTargetRevivableUnits = 153

§

CantTargetRevivableUnits = 154

§

MustTargetHiddenUnits = 155

§

CantTargetHiddenUnits = 156

§

CantRechargeOtherPlayersUnits = 157

§

MustTargetHallucinations = 158

§

CantTargetHallucinations = 159

§

MustTargetInvulnerableUnits = 160

§

CantTargetInvulnerableUnits = 161

§

MustTargetDetectedUnits = 162

§

CantTargetDetectedUnits = 163

§

CantTargetUnitWithEnergy = 164

§

CantTargetUnitWithShields = 165

§

MustTargetUncommandableUnits = 166

§

CantTargetUncommandableUnits = 167

§

MustTargetPreventDefeatUnits = 168

§

CantTargetPreventDefeatUnits = 169

§

MustTargetPreventRevealUnits = 170

§

CantTargetPreventRevealUnits = 171

§

MustTargetPassiveUnits = 172

§

CantTargetPassiveUnits = 173

§

MustTargetStunnedUnits = 174

§

CantTargetStunnedUnits = 175

§

MustTargetSummonedUnits = 176

§

CantTargetSummonedUnits = 177

§

MustTargetUser1 = 178

§

CantTargetUser1 = 179

§

MustTargetUnstoppableUnits = 180

§

CantTargetUnstoppableUnits = 181

§

MustTargetResistantUnits = 182

§

CantTargetResistantUnits = 183

§

MustTargetDazedUnits = 184

§

CantTargetDazedUnits = 185

§

CantLockdown = 186

§

CantMindControl = 187

§

MustTargetDestructibles = 188

§

CantTargetDestructibles = 189

§

MustTargetItems = 190

§

CantTargetItems = 191

§

NoCalldownAvailable = 192

§

WaypointListFull = 193

§

MustTargetRace = 194

§

CantTargetRace = 195

§

MustTargetSimilarUnits = 196

§

CantTargetSimilarUnits = 197

§

CantFindEnoughTargets = 198

§

AlreadySpawningLarva = 199

§

CantTargetExhaustedResources = 200

§

CantUseMinimap = 201

§

CantUseInfoPanel = 202

§

OrderQueueIsFull = 203

§

CantHarvestThatResource = 204

§

HarvestersNotRequired = 205

§

AlreadyTargeted = 206

§

CantAttackWeaponsDisabled = 207

§

CouldntReachTarget = 208

§

TargetIsOutOfRange = 209

§

TargetIsTooClose = 210

§

TargetIsOutOfArc = 211

§

CantFindTeleportLocation = 212

§

InvalidItemClass = 213

§

CantFindCancelOrder = 214

Trait Implementations§

Source§

impl Clone for ActionResult

Source§

fn clone(&self) -> ActionResult

Returns a copy of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for ActionResult

Source§

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

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

impl Default for ActionResult

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Hash for ActionResult

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 ActionResult

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · 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 ProtobufEnum for ActionResult

Source§

fn value(&self) -> i32

Get enum i32 value.
Source§

fn from_i32(value: i32) -> Option<ActionResult>

Try to create an enum from i32 value. Return None if value is unknown.
Source§

fn values() -> &'static [Self]

Get all enum values for enum type.
Source§

fn enum_descriptor_static() -> &'static EnumDescriptor

Get enum descriptor by type.
Source§

fn descriptor(&self) -> &'static EnumValueDescriptor

Get enum value descriptor.
Source§

fn enum_descriptor(&self) -> &'static EnumDescriptor

Get enum descriptor.
Source§

impl ProtobufValue for ActionResult

Source§

fn as_ref(&self) -> ReflectValueRef<'_>

As ref
Source§

fn as_any(&self) -> &(dyn Any + 'static)

Convert to Any
Source§

fn is_non_zero(&self) -> bool

Is value non-zero?
Source§

fn as_ref_copy(&self) -> ReflectValueRef<'static>

Return ProtobufValueRef if self is Copy. Read more
Source§

impl Copy for ActionResult

Source§

impl Eq for ActionResult

Source§

impl StructuralPartialEq for ActionResult

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, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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.