sc2ai 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/data/sc2ai/protocol/common.proto +5 -5
- data/data/sc2ai/protocol/data.proto +22 -22
- data/data/sc2ai/protocol/debug.proto +24 -24
- data/data/sc2ai/protocol/error.proto +216 -215
- data/data/sc2ai/protocol/raw.proto +20 -20
- data/data/sc2ai/protocol/sc2api.proto +111 -111
- data/data/sc2ai/protocol/score.proto +3 -3
- data/data/sc2ai/protocol/spatial.proto +5 -5
- data/data/sc2ai/protocol/ui.proto +16 -16
- data/exe/sc2ai +0 -3
- data/lib/sc2ai/api/data.rb +3 -3
- data/lib/sc2ai/connection/connection_listener.rb +3 -3
- data/lib/sc2ai/connection/requests.rb +31 -35
- data/lib/sc2ai/connection/status_listener.rb +1 -1
- data/lib/sc2ai/connection.rb +1 -1
- data/lib/sc2ai/local_play/client.rb +2 -2
- data/lib/sc2ai/local_play/match.rb +7 -2
- data/lib/sc2ai/paths.rb +12 -2
- data/lib/sc2ai/player/actions.rb +54 -35
- data/lib/sc2ai/player/debug.rb +21 -21
- data/lib/sc2ai/player/game_state.rb +11 -18
- data/lib/sc2ai/player/geo.rb +54 -64
- data/lib/sc2ai/player/units.rb +16 -16
- data/lib/sc2ai/player.rb +103 -41
- data/lib/sc2ai/ports.rb +1 -1
- data/lib/sc2ai/protocol/_meta_documentation.rb +265 -265
- data/lib/sc2ai/protocol/common_pb.rb +3865 -15
- data/lib/sc2ai/protocol/data_pb.rb +9109 -18
- data/lib/sc2ai/protocol/debug_pb.rb +10437 -26
- data/lib/sc2ai/protocol/error_pb.rb +1086 -10
- data/lib/sc2ai/protocol/extensions/ability_remapable.rb +9 -9
- data/lib/sc2ai/protocol/extensions/action.rb +60 -0
- data/lib/sc2ai/protocol/extensions/point_2_d.rb +5 -0
- data/lib/sc2ai/protocol/extensions/position.rb +10 -35
- data/lib/sc2ai/protocol/extensions/power_source.rb +3 -0
- data/lib/sc2ai/protocol/extensions/unit.rb +19 -35
- data/lib/sc2ai/protocol/query_pb.rb +5025 -17
- data/lib/sc2ai/protocol/raw_pb.rb +18350 -27
- data/lib/sc2ai/protocol/sc2api_pb.rb +48420 -93
- data/lib/sc2ai/protocol/score_pb.rb +5968 -12
- data/lib/sc2ai/protocol/spatial_pb.rb +11944 -18
- data/lib/sc2ai/protocol/ui_pb.rb +12927 -28
- data/lib/sc2ai/unit_group/action_ext.rb +0 -2
- data/lib/sc2ai/unit_group/filter_ext.rb +10 -9
- data/lib/sc2ai/unit_group/geo_ext.rb +0 -2
- data/lib/sc2ai/unit_group.rb +1 -1
- data/lib/sc2ai/version.rb +2 -3
- data/lib/sc2ai.rb +10 -11
- data/lib/templates/ladderzip/bin/ladder.tt +0 -3
- data/lib/templates/new/api/common.proto +6 -6
- data/lib/templates/new/api/data.proto +23 -20
- data/lib/templates/new/api/debug.proto +25 -21
- data/lib/templates/new/api/error.proto +217 -215
- data/lib/templates/new/api/query.proto +1 -1
- data/lib/templates/new/api/raw.proto +16 -14
- data/lib/templates/new/api/sc2api.proto +108 -94
- data/lib/templates/new/api/score.proto +4 -3
- data/lib/templates/new/api/spatial.proto +6 -5
- data/lib/templates/new/api/ui.proto +17 -14
- data/lib/templates/new/boot.rb.tt +1 -1
- data/lib/templates/new/my_bot.rb.tt +1 -1
- data/lib/templates/new/run_example_match.rb.tt +2 -2
- data/sig/sc2ai.rbs +11005 -1926
- metadata +26 -21
- data/lib/sc2ai/overrides/kernel.rb +0 -33
- data/sig/minaswan.rbs +0 -10323
@@ -1,15 +1,1091 @@
|
|
1
|
+
# encoding: ascii-8bit
|
2
|
+
# rubocop:disable all
|
1
3
|
# frozen_string_literal: true
|
2
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
-
# source: sc2ai/protocol/error.proto
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
5
|
+
module Api
|
6
|
+
module ActionResult
|
7
|
+
ENUM_ACTION_RESULT_UNSET = 0
|
8
|
+
SUCCESS = 1
|
9
|
+
NOT_SUPPORTED = 2
|
10
|
+
ERROR = 3
|
11
|
+
CANT_QUEUE_THAT_ORDER = 4
|
12
|
+
RETRY = 5
|
13
|
+
COOLDOWN = 6
|
14
|
+
QUEUE_IS_FULL = 7
|
15
|
+
RALLY_QUEUE_IS_FULL = 8
|
16
|
+
NOT_ENOUGH_MINERALS = 9
|
17
|
+
NOT_ENOUGH_VESPENE = 10
|
18
|
+
NOT_ENOUGH_TERRAZINE = 11
|
19
|
+
NOT_ENOUGH_CUSTOM = 12
|
20
|
+
NOT_ENOUGH_FOOD = 13
|
21
|
+
FOOD_USAGE_IMPOSSIBLE = 14
|
22
|
+
NOT_ENOUGH_LIFE = 15
|
23
|
+
NOT_ENOUGH_SHIELDS = 16
|
24
|
+
NOT_ENOUGH_ENERGY = 17
|
25
|
+
LIFE_SUPPRESSED = 18
|
26
|
+
SHIELDS_SUPPRESSED = 19
|
27
|
+
ENERGY_SUPPRESSED = 20
|
28
|
+
NOT_ENOUGH_CHARGES = 21
|
29
|
+
CANT_ADD_MORE_CHARGES = 22
|
30
|
+
TOO_MUCH_MINERALS = 23
|
31
|
+
TOO_MUCH_VESPENE = 24
|
32
|
+
TOO_MUCH_TERRAZINE = 25
|
33
|
+
TOO_MUCH_CUSTOM = 26
|
34
|
+
TOO_MUCH_FOOD = 27
|
35
|
+
TOO_MUCH_LIFE = 28
|
36
|
+
TOO_MUCH_SHIELDS = 29
|
37
|
+
TOO_MUCH_ENERGY = 30
|
38
|
+
MUST_TARGET_UNIT_WITH_LIFE = 31
|
39
|
+
MUST_TARGET_UNIT_WITH_SHIELDS = 32
|
40
|
+
MUST_TARGET_UNIT_WITH_ENERGY = 33
|
41
|
+
CANT_TRADE = 34
|
42
|
+
CANT_SPEND = 35
|
43
|
+
CANT_TARGET_THAT_UNIT = 36
|
44
|
+
COULDNT_ALLOCATE_UNIT = 37
|
45
|
+
UNIT_CANT_MOVE = 38
|
46
|
+
TRANSPORT_IS_HOLDING_POSITION = 39
|
47
|
+
BUILD_TECH_REQUIREMENTS_NOT_MET = 40
|
48
|
+
CANT_FIND_PLACEMENT_LOCATION = 41
|
49
|
+
CANT_BUILD_ON_THAT = 42
|
50
|
+
CANT_BUILD_TOO_CLOSE_TO_DROP_OFF = 43
|
51
|
+
CANT_BUILD_LOCATION_INVALID = 44
|
52
|
+
CANT_SEE_BUILD_LOCATION = 45
|
53
|
+
CANT_BUILD_TOO_CLOSE_TO_CREEP_SOURCE = 46
|
54
|
+
CANT_BUILD_TOO_CLOSE_TO_RESOURCES = 47
|
55
|
+
CANT_BUILD_TOO_FAR_FROM_WATER = 48
|
56
|
+
CANT_BUILD_TOO_FAR_FROM_CREEP_SOURCE = 49
|
57
|
+
CANT_BUILD_TOO_FAR_FROM_BUILD_POWER_SOURCE = 50
|
58
|
+
CANT_BUILD_ON_DENSE_TERRAIN = 51
|
59
|
+
CANT_TRAIN_TOO_FAR_FROM_TRAIN_POWER_SOURCE = 52
|
60
|
+
CANT_LAND_LOCATION_INVALID = 53
|
61
|
+
CANT_SEE_LAND_LOCATION = 54
|
62
|
+
CANT_LAND_TOO_CLOSE_TO_CREEP_SOURCE = 55
|
63
|
+
CANT_LAND_TOO_CLOSE_TO_RESOURCES = 56
|
64
|
+
CANT_LAND_TOO_FAR_FROM_WATER = 57
|
65
|
+
CANT_LAND_TOO_FAR_FROM_CREEP_SOURCE = 58
|
66
|
+
CANT_LAND_TOO_FAR_FROM_BUILD_POWER_SOURCE = 59
|
67
|
+
CANT_LAND_TOO_FAR_FROM_TRAIN_POWER_SOURCE = 60
|
68
|
+
CANT_LAND_ON_DENSE_TERRAIN = 61
|
69
|
+
ADD_ON_TOO_FAR_FROM_BUILDING = 62
|
70
|
+
MUST_BUILD_REFINERY_FIRST = 63
|
71
|
+
BUILDING_IS_UNDER_CONSTRUCTION = 64
|
72
|
+
CANT_FIND_DROP_OFF = 65
|
73
|
+
CANT_LOAD_OTHER_PLAYERS_UNITS = 66
|
74
|
+
NOT_ENOUGH_ROOM_TO_LOAD_UNIT = 67
|
75
|
+
CANT_UNLOAD_UNITS_THERE = 68
|
76
|
+
CANT_WARP_IN_UNITS_THERE = 69
|
77
|
+
CANT_LOAD_IMMOBILE_UNITS = 70
|
78
|
+
CANT_RECHARGE_IMMOBILE_UNITS = 71
|
79
|
+
CANT_RECHARGE_UNDER_CONSTRUCTION_UNITS = 72
|
80
|
+
CANT_LOAD_THAT_UNIT = 73
|
81
|
+
NO_CARGO_TO_UNLOAD = 74
|
82
|
+
LOAD_ALL_NO_TARGETS_FOUND = 75
|
83
|
+
NOT_WHILE_OCCUPIED = 76
|
84
|
+
CANT_ATTACK_WITHOUT_AMMO = 77
|
85
|
+
CANT_HOLD_ANY_MORE_AMMO = 78
|
86
|
+
TECH_REQUIREMENTS_NOT_MET = 79
|
87
|
+
MUST_LOCKDOWN_UNIT_FIRST = 80
|
88
|
+
MUST_TARGET_UNIT = 81
|
89
|
+
MUST_TARGET_INVENTORY = 82
|
90
|
+
MUST_TARGET_VISIBLE_UNIT = 83
|
91
|
+
MUST_TARGET_VISIBLE_LOCATION = 84
|
92
|
+
MUST_TARGET_WALKABLE_LOCATION = 85
|
93
|
+
MUST_TARGET_PAWNABLE_UNIT = 86
|
94
|
+
YOU_CANT_CONTROL_THAT_UNIT = 87
|
95
|
+
YOU_CANT_ISSUE_COMMANDS_TO_THAT_UNIT = 88
|
96
|
+
MUST_TARGET_RESOURCES = 89
|
97
|
+
REQUIRES_HEAL_TARGET = 90
|
98
|
+
REQUIRES_REPAIR_TARGET = 91
|
99
|
+
NO_ITEMS_TO_DROP = 92
|
100
|
+
CANT_HOLD_ANY_MORE_ITEMS = 93
|
101
|
+
CANT_HOLD_THAT = 94
|
102
|
+
TARGET_HAS_NO_INVENTORY = 95
|
103
|
+
CANT_DROP_THIS_ITEM = 96
|
104
|
+
CANT_MOVE_THIS_ITEM = 97
|
105
|
+
CANT_PAWN_THIS_UNIT = 98
|
106
|
+
MUST_TARGET_CASTER = 99
|
107
|
+
CANT_TARGET_CASTER = 100
|
108
|
+
MUST_TARGET_OUTER = 101
|
109
|
+
CANT_TARGET_OUTER = 102
|
110
|
+
MUST_TARGET_YOUR_OWN_UNITS = 103
|
111
|
+
CANT_TARGET_YOUR_OWN_UNITS = 104
|
112
|
+
MUST_TARGET_FRIENDLY_UNITS = 105
|
113
|
+
CANT_TARGET_FRIENDLY_UNITS = 106
|
114
|
+
MUST_TARGET_NEUTRAL_UNITS = 107
|
115
|
+
CANT_TARGET_NEUTRAL_UNITS = 108
|
116
|
+
MUST_TARGET_ENEMY_UNITS = 109
|
117
|
+
CANT_TARGET_ENEMY_UNITS = 110
|
118
|
+
MUST_TARGET_AIR_UNITS = 111
|
119
|
+
CANT_TARGET_AIR_UNITS = 112
|
120
|
+
MUST_TARGET_GROUND_UNITS = 113
|
121
|
+
CANT_TARGET_GROUND_UNITS = 114
|
122
|
+
MUST_TARGET_STRUCTURES = 115
|
123
|
+
CANT_TARGET_STRUCTURES = 116
|
124
|
+
MUST_TARGET_LIGHT_UNITS = 117
|
125
|
+
CANT_TARGET_LIGHT_UNITS = 118
|
126
|
+
MUST_TARGET_ARMORED_UNITS = 119
|
127
|
+
CANT_TARGET_ARMORED_UNITS = 120
|
128
|
+
MUST_TARGET_BIOLOGICAL_UNITS = 121
|
129
|
+
CANT_TARGET_BIOLOGICAL_UNITS = 122
|
130
|
+
MUST_TARGET_HEROIC_UNITS = 123
|
131
|
+
CANT_TARGET_HEROIC_UNITS = 124
|
132
|
+
MUST_TARGET_ROBOTIC_UNITS = 125
|
133
|
+
CANT_TARGET_ROBOTIC_UNITS = 126
|
134
|
+
MUST_TARGET_MECHANICAL_UNITS = 127
|
135
|
+
CANT_TARGET_MECHANICAL_UNITS = 128
|
136
|
+
MUST_TARGET_PSIONIC_UNITS = 129
|
137
|
+
CANT_TARGET_PSIONIC_UNITS = 130
|
138
|
+
MUST_TARGET_MASSIVE_UNITS = 131
|
139
|
+
CANT_TARGET_MASSIVE_UNITS = 132
|
140
|
+
MUST_TARGET_MISSILE = 133
|
141
|
+
CANT_TARGET_MISSILE = 134
|
142
|
+
MUST_TARGET_WORKER_UNITS = 135
|
143
|
+
CANT_TARGET_WORKER_UNITS = 136
|
144
|
+
MUST_TARGET_ENERGY_CAPABLE_UNITS = 137
|
145
|
+
CANT_TARGET_ENERGY_CAPABLE_UNITS = 138
|
146
|
+
MUST_TARGET_SHIELD_CAPABLE_UNITS = 139
|
147
|
+
CANT_TARGET_SHIELD_CAPABLE_UNITS = 140
|
148
|
+
MUST_TARGET_FLYERS = 141
|
149
|
+
CANT_TARGET_FLYERS = 142
|
150
|
+
MUST_TARGET_BURIED_UNITS = 143
|
151
|
+
CANT_TARGET_BURIED_UNITS = 144
|
152
|
+
MUST_TARGET_CLOAKED_UNITS = 145
|
153
|
+
CANT_TARGET_CLOAKED_UNITS = 146
|
154
|
+
MUST_TARGET_UNITS_IN_A_STASIS_FIELD = 147
|
155
|
+
CANT_TARGET_UNITS_IN_A_STASIS_FIELD = 148
|
156
|
+
MUST_TARGET_UNDER_CONSTRUCTION_UNITS = 149
|
157
|
+
CANT_TARGET_UNDER_CONSTRUCTION_UNITS = 150
|
158
|
+
MUST_TARGET_DEAD_UNITS = 151
|
159
|
+
CANT_TARGET_DEAD_UNITS = 152
|
160
|
+
MUST_TARGET_REVIVABLE_UNITS = 153
|
161
|
+
CANT_TARGET_REVIVABLE_UNITS = 154
|
162
|
+
MUST_TARGET_HIDDEN_UNITS = 155
|
163
|
+
CANT_TARGET_HIDDEN_UNITS = 156
|
164
|
+
CANT_RECHARGE_OTHER_PLAYERS_UNITS = 157
|
165
|
+
MUST_TARGET_HALLUCINATIONS = 158
|
166
|
+
CANT_TARGET_HALLUCINATIONS = 159
|
167
|
+
MUST_TARGET_INVULNERABLE_UNITS = 160
|
168
|
+
CANT_TARGET_INVULNERABLE_UNITS = 161
|
169
|
+
MUST_TARGET_DETECTED_UNITS = 162
|
170
|
+
CANT_TARGET_DETECTED_UNITS = 163
|
171
|
+
CANT_TARGET_UNIT_WITH_ENERGY = 164
|
172
|
+
CANT_TARGET_UNIT_WITH_SHIELDS = 165
|
173
|
+
MUST_TARGET_UNCOMMANDABLE_UNITS = 166
|
174
|
+
CANT_TARGET_UNCOMMANDABLE_UNITS = 167
|
175
|
+
MUST_TARGET_PREVENT_DEFEAT_UNITS = 168
|
176
|
+
CANT_TARGET_PREVENT_DEFEAT_UNITS = 169
|
177
|
+
MUST_TARGET_PREVENT_REVEAL_UNITS = 170
|
178
|
+
CANT_TARGET_PREVENT_REVEAL_UNITS = 171
|
179
|
+
MUST_TARGET_PASSIVE_UNITS = 172
|
180
|
+
CANT_TARGET_PASSIVE_UNITS = 173
|
181
|
+
MUST_TARGET_STUNNED_UNITS = 174
|
182
|
+
CANT_TARGET_STUNNED_UNITS = 175
|
183
|
+
MUST_TARGET_SUMMONED_UNITS = 176
|
184
|
+
CANT_TARGET_SUMMONED_UNITS = 177
|
185
|
+
MUST_TARGET_USER1 = 178
|
186
|
+
CANT_TARGET_USER1 = 179
|
187
|
+
MUST_TARGET_UNSTOPPABLE_UNITS = 180
|
188
|
+
CANT_TARGET_UNSTOPPABLE_UNITS = 181
|
189
|
+
MUST_TARGET_RESISTANT_UNITS = 182
|
190
|
+
CANT_TARGET_RESISTANT_UNITS = 183
|
191
|
+
MUST_TARGET_DAZED_UNITS = 184
|
192
|
+
CANT_TARGET_DAZED_UNITS = 185
|
193
|
+
CANT_LOCKDOWN = 186
|
194
|
+
CANT_MIND_CONTROL = 187
|
195
|
+
MUST_TARGET_DESTRUCTIBLES = 188
|
196
|
+
CANT_TARGET_DESTRUCTIBLES = 189
|
197
|
+
MUST_TARGET_ITEMS = 190
|
198
|
+
CANT_TARGET_ITEMS = 191
|
199
|
+
NO_CALLDOWN_AVAILABLE = 192
|
200
|
+
WAYPOINT_LIST_FULL = 193
|
201
|
+
MUST_TARGET_RACE = 194
|
202
|
+
CANT_TARGET_RACE = 195
|
203
|
+
MUST_TARGET_SIMILAR_UNITS = 196
|
204
|
+
CANT_TARGET_SIMILAR_UNITS = 197
|
205
|
+
CANT_FIND_ENOUGH_TARGETS = 198
|
206
|
+
ALREADY_SPAWNING_LARVA = 199
|
207
|
+
CANT_TARGET_EXHAUSTED_RESOURCES = 200
|
208
|
+
CANT_USE_MINIMAP = 201
|
209
|
+
CANT_USE_INFO_PANEL = 202
|
210
|
+
ORDER_QUEUE_IS_FULL = 203
|
211
|
+
CANT_HARVEST_THAT_RESOURCE = 204
|
212
|
+
HARVESTERS_NOT_REQUIRED = 205
|
213
|
+
ALREADY_TARGETED = 206
|
214
|
+
CANT_ATTACK_WEAPONS_DISABLED = 207
|
215
|
+
COULDNT_REACH_TARGET = 208
|
216
|
+
TARGET_IS_OUT_OF_RANGE = 209
|
217
|
+
TARGET_IS_TOO_CLOSE = 210
|
218
|
+
TARGET_IS_OUT_OF_ARC = 211
|
219
|
+
CANT_FIND_TELEPORT_LOCATION = 212
|
220
|
+
INVALID_ITEM_CLASS = 213
|
221
|
+
CANT_FIND_CANCEL_ORDER = 214
|
9
222
|
|
10
|
-
|
11
|
-
|
223
|
+
def self.lookup(val)
|
224
|
+
if val == 0
|
225
|
+
:ENUM_ACTION_RESULT_UNSET
|
226
|
+
elsif val == 1
|
227
|
+
:SUCCESS
|
228
|
+
elsif val == 2
|
229
|
+
:NOT_SUPPORTED
|
230
|
+
elsif val == 3
|
231
|
+
:ERROR
|
232
|
+
elsif val == 4
|
233
|
+
:CANT_QUEUE_THAT_ORDER
|
234
|
+
elsif val == 5
|
235
|
+
:RETRY
|
236
|
+
elsif val == 6
|
237
|
+
:COOLDOWN
|
238
|
+
elsif val == 7
|
239
|
+
:QUEUE_IS_FULL
|
240
|
+
elsif val == 8
|
241
|
+
:RALLY_QUEUE_IS_FULL
|
242
|
+
elsif val == 9
|
243
|
+
:NOT_ENOUGH_MINERALS
|
244
|
+
elsif val == 10
|
245
|
+
:NOT_ENOUGH_VESPENE
|
246
|
+
elsif val == 11
|
247
|
+
:NOT_ENOUGH_TERRAZINE
|
248
|
+
elsif val == 12
|
249
|
+
:NOT_ENOUGH_CUSTOM
|
250
|
+
elsif val == 13
|
251
|
+
:NOT_ENOUGH_FOOD
|
252
|
+
elsif val == 14
|
253
|
+
:FOOD_USAGE_IMPOSSIBLE
|
254
|
+
elsif val == 15
|
255
|
+
:NOT_ENOUGH_LIFE
|
256
|
+
elsif val == 16
|
257
|
+
:NOT_ENOUGH_SHIELDS
|
258
|
+
elsif val == 17
|
259
|
+
:NOT_ENOUGH_ENERGY
|
260
|
+
elsif val == 18
|
261
|
+
:LIFE_SUPPRESSED
|
262
|
+
elsif val == 19
|
263
|
+
:SHIELDS_SUPPRESSED
|
264
|
+
elsif val == 20
|
265
|
+
:ENERGY_SUPPRESSED
|
266
|
+
elsif val == 21
|
267
|
+
:NOT_ENOUGH_CHARGES
|
268
|
+
elsif val == 22
|
269
|
+
:CANT_ADD_MORE_CHARGES
|
270
|
+
elsif val == 23
|
271
|
+
:TOO_MUCH_MINERALS
|
272
|
+
elsif val == 24
|
273
|
+
:TOO_MUCH_VESPENE
|
274
|
+
elsif val == 25
|
275
|
+
:TOO_MUCH_TERRAZINE
|
276
|
+
elsif val == 26
|
277
|
+
:TOO_MUCH_CUSTOM
|
278
|
+
elsif val == 27
|
279
|
+
:TOO_MUCH_FOOD
|
280
|
+
elsif val == 28
|
281
|
+
:TOO_MUCH_LIFE
|
282
|
+
elsif val == 29
|
283
|
+
:TOO_MUCH_SHIELDS
|
284
|
+
elsif val == 30
|
285
|
+
:TOO_MUCH_ENERGY
|
286
|
+
elsif val == 31
|
287
|
+
:MUST_TARGET_UNIT_WITH_LIFE
|
288
|
+
elsif val == 32
|
289
|
+
:MUST_TARGET_UNIT_WITH_SHIELDS
|
290
|
+
elsif val == 33
|
291
|
+
:MUST_TARGET_UNIT_WITH_ENERGY
|
292
|
+
elsif val == 34
|
293
|
+
:CANT_TRADE
|
294
|
+
elsif val == 35
|
295
|
+
:CANT_SPEND
|
296
|
+
elsif val == 36
|
297
|
+
:CANT_TARGET_THAT_UNIT
|
298
|
+
elsif val == 37
|
299
|
+
:COULDNT_ALLOCATE_UNIT
|
300
|
+
elsif val == 38
|
301
|
+
:UNIT_CANT_MOVE
|
302
|
+
elsif val == 39
|
303
|
+
:TRANSPORT_IS_HOLDING_POSITION
|
304
|
+
elsif val == 40
|
305
|
+
:BUILD_TECH_REQUIREMENTS_NOT_MET
|
306
|
+
elsif val == 41
|
307
|
+
:CANT_FIND_PLACEMENT_LOCATION
|
308
|
+
elsif val == 42
|
309
|
+
:CANT_BUILD_ON_THAT
|
310
|
+
elsif val == 43
|
311
|
+
:CANT_BUILD_TOO_CLOSE_TO_DROP_OFF
|
312
|
+
elsif val == 44
|
313
|
+
:CANT_BUILD_LOCATION_INVALID
|
314
|
+
elsif val == 45
|
315
|
+
:CANT_SEE_BUILD_LOCATION
|
316
|
+
elsif val == 46
|
317
|
+
:CANT_BUILD_TOO_CLOSE_TO_CREEP_SOURCE
|
318
|
+
elsif val == 47
|
319
|
+
:CANT_BUILD_TOO_CLOSE_TO_RESOURCES
|
320
|
+
elsif val == 48
|
321
|
+
:CANT_BUILD_TOO_FAR_FROM_WATER
|
322
|
+
elsif val == 49
|
323
|
+
:CANT_BUILD_TOO_FAR_FROM_CREEP_SOURCE
|
324
|
+
elsif val == 50
|
325
|
+
:CANT_BUILD_TOO_FAR_FROM_BUILD_POWER_SOURCE
|
326
|
+
elsif val == 51
|
327
|
+
:CANT_BUILD_ON_DENSE_TERRAIN
|
328
|
+
elsif val == 52
|
329
|
+
:CANT_TRAIN_TOO_FAR_FROM_TRAIN_POWER_SOURCE
|
330
|
+
elsif val == 53
|
331
|
+
:CANT_LAND_LOCATION_INVALID
|
332
|
+
elsif val == 54
|
333
|
+
:CANT_SEE_LAND_LOCATION
|
334
|
+
elsif val == 55
|
335
|
+
:CANT_LAND_TOO_CLOSE_TO_CREEP_SOURCE
|
336
|
+
elsif val == 56
|
337
|
+
:CANT_LAND_TOO_CLOSE_TO_RESOURCES
|
338
|
+
elsif val == 57
|
339
|
+
:CANT_LAND_TOO_FAR_FROM_WATER
|
340
|
+
elsif val == 58
|
341
|
+
:CANT_LAND_TOO_FAR_FROM_CREEP_SOURCE
|
342
|
+
elsif val == 59
|
343
|
+
:CANT_LAND_TOO_FAR_FROM_BUILD_POWER_SOURCE
|
344
|
+
elsif val == 60
|
345
|
+
:CANT_LAND_TOO_FAR_FROM_TRAIN_POWER_SOURCE
|
346
|
+
elsif val == 61
|
347
|
+
:CANT_LAND_ON_DENSE_TERRAIN
|
348
|
+
elsif val == 62
|
349
|
+
:ADD_ON_TOO_FAR_FROM_BUILDING
|
350
|
+
elsif val == 63
|
351
|
+
:MUST_BUILD_REFINERY_FIRST
|
352
|
+
elsif val == 64
|
353
|
+
:BUILDING_IS_UNDER_CONSTRUCTION
|
354
|
+
elsif val == 65
|
355
|
+
:CANT_FIND_DROP_OFF
|
356
|
+
elsif val == 66
|
357
|
+
:CANT_LOAD_OTHER_PLAYERS_UNITS
|
358
|
+
elsif val == 67
|
359
|
+
:NOT_ENOUGH_ROOM_TO_LOAD_UNIT
|
360
|
+
elsif val == 68
|
361
|
+
:CANT_UNLOAD_UNITS_THERE
|
362
|
+
elsif val == 69
|
363
|
+
:CANT_WARP_IN_UNITS_THERE
|
364
|
+
elsif val == 70
|
365
|
+
:CANT_LOAD_IMMOBILE_UNITS
|
366
|
+
elsif val == 71
|
367
|
+
:CANT_RECHARGE_IMMOBILE_UNITS
|
368
|
+
elsif val == 72
|
369
|
+
:CANT_RECHARGE_UNDER_CONSTRUCTION_UNITS
|
370
|
+
elsif val == 73
|
371
|
+
:CANT_LOAD_THAT_UNIT
|
372
|
+
elsif val == 74
|
373
|
+
:NO_CARGO_TO_UNLOAD
|
374
|
+
elsif val == 75
|
375
|
+
:LOAD_ALL_NO_TARGETS_FOUND
|
376
|
+
elsif val == 76
|
377
|
+
:NOT_WHILE_OCCUPIED
|
378
|
+
elsif val == 77
|
379
|
+
:CANT_ATTACK_WITHOUT_AMMO
|
380
|
+
elsif val == 78
|
381
|
+
:CANT_HOLD_ANY_MORE_AMMO
|
382
|
+
elsif val == 79
|
383
|
+
:TECH_REQUIREMENTS_NOT_MET
|
384
|
+
elsif val == 80
|
385
|
+
:MUST_LOCKDOWN_UNIT_FIRST
|
386
|
+
elsif val == 81
|
387
|
+
:MUST_TARGET_UNIT
|
388
|
+
elsif val == 82
|
389
|
+
:MUST_TARGET_INVENTORY
|
390
|
+
elsif val == 83
|
391
|
+
:MUST_TARGET_VISIBLE_UNIT
|
392
|
+
elsif val == 84
|
393
|
+
:MUST_TARGET_VISIBLE_LOCATION
|
394
|
+
elsif val == 85
|
395
|
+
:MUST_TARGET_WALKABLE_LOCATION
|
396
|
+
elsif val == 86
|
397
|
+
:MUST_TARGET_PAWNABLE_UNIT
|
398
|
+
elsif val == 87
|
399
|
+
:YOU_CANT_CONTROL_THAT_UNIT
|
400
|
+
elsif val == 88
|
401
|
+
:YOU_CANT_ISSUE_COMMANDS_TO_THAT_UNIT
|
402
|
+
elsif val == 89
|
403
|
+
:MUST_TARGET_RESOURCES
|
404
|
+
elsif val == 90
|
405
|
+
:REQUIRES_HEAL_TARGET
|
406
|
+
elsif val == 91
|
407
|
+
:REQUIRES_REPAIR_TARGET
|
408
|
+
elsif val == 92
|
409
|
+
:NO_ITEMS_TO_DROP
|
410
|
+
elsif val == 93
|
411
|
+
:CANT_HOLD_ANY_MORE_ITEMS
|
412
|
+
elsif val == 94
|
413
|
+
:CANT_HOLD_THAT
|
414
|
+
elsif val == 95
|
415
|
+
:TARGET_HAS_NO_INVENTORY
|
416
|
+
elsif val == 96
|
417
|
+
:CANT_DROP_THIS_ITEM
|
418
|
+
elsif val == 97
|
419
|
+
:CANT_MOVE_THIS_ITEM
|
420
|
+
elsif val == 98
|
421
|
+
:CANT_PAWN_THIS_UNIT
|
422
|
+
elsif val == 99
|
423
|
+
:MUST_TARGET_CASTER
|
424
|
+
elsif val == 100
|
425
|
+
:CANT_TARGET_CASTER
|
426
|
+
elsif val == 101
|
427
|
+
:MUST_TARGET_OUTER
|
428
|
+
elsif val == 102
|
429
|
+
:CANT_TARGET_OUTER
|
430
|
+
elsif val == 103
|
431
|
+
:MUST_TARGET_YOUR_OWN_UNITS
|
432
|
+
elsif val == 104
|
433
|
+
:CANT_TARGET_YOUR_OWN_UNITS
|
434
|
+
elsif val == 105
|
435
|
+
:MUST_TARGET_FRIENDLY_UNITS
|
436
|
+
elsif val == 106
|
437
|
+
:CANT_TARGET_FRIENDLY_UNITS
|
438
|
+
elsif val == 107
|
439
|
+
:MUST_TARGET_NEUTRAL_UNITS
|
440
|
+
elsif val == 108
|
441
|
+
:CANT_TARGET_NEUTRAL_UNITS
|
442
|
+
elsif val == 109
|
443
|
+
:MUST_TARGET_ENEMY_UNITS
|
444
|
+
elsif val == 110
|
445
|
+
:CANT_TARGET_ENEMY_UNITS
|
446
|
+
elsif val == 111
|
447
|
+
:MUST_TARGET_AIR_UNITS
|
448
|
+
elsif val == 112
|
449
|
+
:CANT_TARGET_AIR_UNITS
|
450
|
+
elsif val == 113
|
451
|
+
:MUST_TARGET_GROUND_UNITS
|
452
|
+
elsif val == 114
|
453
|
+
:CANT_TARGET_GROUND_UNITS
|
454
|
+
elsif val == 115
|
455
|
+
:MUST_TARGET_STRUCTURES
|
456
|
+
elsif val == 116
|
457
|
+
:CANT_TARGET_STRUCTURES
|
458
|
+
elsif val == 117
|
459
|
+
:MUST_TARGET_LIGHT_UNITS
|
460
|
+
elsif val == 118
|
461
|
+
:CANT_TARGET_LIGHT_UNITS
|
462
|
+
elsif val == 119
|
463
|
+
:MUST_TARGET_ARMORED_UNITS
|
464
|
+
elsif val == 120
|
465
|
+
:CANT_TARGET_ARMORED_UNITS
|
466
|
+
elsif val == 121
|
467
|
+
:MUST_TARGET_BIOLOGICAL_UNITS
|
468
|
+
elsif val == 122
|
469
|
+
:CANT_TARGET_BIOLOGICAL_UNITS
|
470
|
+
elsif val == 123
|
471
|
+
:MUST_TARGET_HEROIC_UNITS
|
472
|
+
elsif val == 124
|
473
|
+
:CANT_TARGET_HEROIC_UNITS
|
474
|
+
elsif val == 125
|
475
|
+
:MUST_TARGET_ROBOTIC_UNITS
|
476
|
+
elsif val == 126
|
477
|
+
:CANT_TARGET_ROBOTIC_UNITS
|
478
|
+
elsif val == 127
|
479
|
+
:MUST_TARGET_MECHANICAL_UNITS
|
480
|
+
elsif val == 128
|
481
|
+
:CANT_TARGET_MECHANICAL_UNITS
|
482
|
+
elsif val == 129
|
483
|
+
:MUST_TARGET_PSIONIC_UNITS
|
484
|
+
elsif val == 130
|
485
|
+
:CANT_TARGET_PSIONIC_UNITS
|
486
|
+
elsif val == 131
|
487
|
+
:MUST_TARGET_MASSIVE_UNITS
|
488
|
+
elsif val == 132
|
489
|
+
:CANT_TARGET_MASSIVE_UNITS
|
490
|
+
elsif val == 133
|
491
|
+
:MUST_TARGET_MISSILE
|
492
|
+
elsif val == 134
|
493
|
+
:CANT_TARGET_MISSILE
|
494
|
+
elsif val == 135
|
495
|
+
:MUST_TARGET_WORKER_UNITS
|
496
|
+
elsif val == 136
|
497
|
+
:CANT_TARGET_WORKER_UNITS
|
498
|
+
elsif val == 137
|
499
|
+
:MUST_TARGET_ENERGY_CAPABLE_UNITS
|
500
|
+
elsif val == 138
|
501
|
+
:CANT_TARGET_ENERGY_CAPABLE_UNITS
|
502
|
+
elsif val == 139
|
503
|
+
:MUST_TARGET_SHIELD_CAPABLE_UNITS
|
504
|
+
elsif val == 140
|
505
|
+
:CANT_TARGET_SHIELD_CAPABLE_UNITS
|
506
|
+
elsif val == 141
|
507
|
+
:MUST_TARGET_FLYERS
|
508
|
+
elsif val == 142
|
509
|
+
:CANT_TARGET_FLYERS
|
510
|
+
elsif val == 143
|
511
|
+
:MUST_TARGET_BURIED_UNITS
|
512
|
+
elsif val == 144
|
513
|
+
:CANT_TARGET_BURIED_UNITS
|
514
|
+
elsif val == 145
|
515
|
+
:MUST_TARGET_CLOAKED_UNITS
|
516
|
+
elsif val == 146
|
517
|
+
:CANT_TARGET_CLOAKED_UNITS
|
518
|
+
elsif val == 147
|
519
|
+
:MUST_TARGET_UNITS_IN_A_STASIS_FIELD
|
520
|
+
elsif val == 148
|
521
|
+
:CANT_TARGET_UNITS_IN_A_STASIS_FIELD
|
522
|
+
elsif val == 149
|
523
|
+
:MUST_TARGET_UNDER_CONSTRUCTION_UNITS
|
524
|
+
elsif val == 150
|
525
|
+
:CANT_TARGET_UNDER_CONSTRUCTION_UNITS
|
526
|
+
elsif val == 151
|
527
|
+
:MUST_TARGET_DEAD_UNITS
|
528
|
+
elsif val == 152
|
529
|
+
:CANT_TARGET_DEAD_UNITS
|
530
|
+
elsif val == 153
|
531
|
+
:MUST_TARGET_REVIVABLE_UNITS
|
532
|
+
elsif val == 154
|
533
|
+
:CANT_TARGET_REVIVABLE_UNITS
|
534
|
+
elsif val == 155
|
535
|
+
:MUST_TARGET_HIDDEN_UNITS
|
536
|
+
elsif val == 156
|
537
|
+
:CANT_TARGET_HIDDEN_UNITS
|
538
|
+
elsif val == 157
|
539
|
+
:CANT_RECHARGE_OTHER_PLAYERS_UNITS
|
540
|
+
elsif val == 158
|
541
|
+
:MUST_TARGET_HALLUCINATIONS
|
542
|
+
elsif val == 159
|
543
|
+
:CANT_TARGET_HALLUCINATIONS
|
544
|
+
elsif val == 160
|
545
|
+
:MUST_TARGET_INVULNERABLE_UNITS
|
546
|
+
elsif val == 161
|
547
|
+
:CANT_TARGET_INVULNERABLE_UNITS
|
548
|
+
elsif val == 162
|
549
|
+
:MUST_TARGET_DETECTED_UNITS
|
550
|
+
elsif val == 163
|
551
|
+
:CANT_TARGET_DETECTED_UNITS
|
552
|
+
elsif val == 164
|
553
|
+
:CANT_TARGET_UNIT_WITH_ENERGY
|
554
|
+
elsif val == 165
|
555
|
+
:CANT_TARGET_UNIT_WITH_SHIELDS
|
556
|
+
elsif val == 166
|
557
|
+
:MUST_TARGET_UNCOMMANDABLE_UNITS
|
558
|
+
elsif val == 167
|
559
|
+
:CANT_TARGET_UNCOMMANDABLE_UNITS
|
560
|
+
elsif val == 168
|
561
|
+
:MUST_TARGET_PREVENT_DEFEAT_UNITS
|
562
|
+
elsif val == 169
|
563
|
+
:CANT_TARGET_PREVENT_DEFEAT_UNITS
|
564
|
+
elsif val == 170
|
565
|
+
:MUST_TARGET_PREVENT_REVEAL_UNITS
|
566
|
+
elsif val == 171
|
567
|
+
:CANT_TARGET_PREVENT_REVEAL_UNITS
|
568
|
+
elsif val == 172
|
569
|
+
:MUST_TARGET_PASSIVE_UNITS
|
570
|
+
elsif val == 173
|
571
|
+
:CANT_TARGET_PASSIVE_UNITS
|
572
|
+
elsif val == 174
|
573
|
+
:MUST_TARGET_STUNNED_UNITS
|
574
|
+
elsif val == 175
|
575
|
+
:CANT_TARGET_STUNNED_UNITS
|
576
|
+
elsif val == 176
|
577
|
+
:MUST_TARGET_SUMMONED_UNITS
|
578
|
+
elsif val == 177
|
579
|
+
:CANT_TARGET_SUMMONED_UNITS
|
580
|
+
elsif val == 178
|
581
|
+
:MUST_TARGET_USER1
|
582
|
+
elsif val == 179
|
583
|
+
:CANT_TARGET_USER1
|
584
|
+
elsif val == 180
|
585
|
+
:MUST_TARGET_UNSTOPPABLE_UNITS
|
586
|
+
elsif val == 181
|
587
|
+
:CANT_TARGET_UNSTOPPABLE_UNITS
|
588
|
+
elsif val == 182
|
589
|
+
:MUST_TARGET_RESISTANT_UNITS
|
590
|
+
elsif val == 183
|
591
|
+
:CANT_TARGET_RESISTANT_UNITS
|
592
|
+
elsif val == 184
|
593
|
+
:MUST_TARGET_DAZED_UNITS
|
594
|
+
elsif val == 185
|
595
|
+
:CANT_TARGET_DAZED_UNITS
|
596
|
+
elsif val == 186
|
597
|
+
:CANT_LOCKDOWN
|
598
|
+
elsif val == 187
|
599
|
+
:CANT_MIND_CONTROL
|
600
|
+
elsif val == 188
|
601
|
+
:MUST_TARGET_DESTRUCTIBLES
|
602
|
+
elsif val == 189
|
603
|
+
:CANT_TARGET_DESTRUCTIBLES
|
604
|
+
elsif val == 190
|
605
|
+
:MUST_TARGET_ITEMS
|
606
|
+
elsif val == 191
|
607
|
+
:CANT_TARGET_ITEMS
|
608
|
+
elsif val == 192
|
609
|
+
:NO_CALLDOWN_AVAILABLE
|
610
|
+
elsif val == 193
|
611
|
+
:WAYPOINT_LIST_FULL
|
612
|
+
elsif val == 194
|
613
|
+
:MUST_TARGET_RACE
|
614
|
+
elsif val == 195
|
615
|
+
:CANT_TARGET_RACE
|
616
|
+
elsif val == 196
|
617
|
+
:MUST_TARGET_SIMILAR_UNITS
|
618
|
+
elsif val == 197
|
619
|
+
:CANT_TARGET_SIMILAR_UNITS
|
620
|
+
elsif val == 198
|
621
|
+
:CANT_FIND_ENOUGH_TARGETS
|
622
|
+
elsif val == 199
|
623
|
+
:ALREADY_SPAWNING_LARVA
|
624
|
+
elsif val == 200
|
625
|
+
:CANT_TARGET_EXHAUSTED_RESOURCES
|
626
|
+
elsif val == 201
|
627
|
+
:CANT_USE_MINIMAP
|
628
|
+
elsif val == 202
|
629
|
+
:CANT_USE_INFO_PANEL
|
630
|
+
elsif val == 203
|
631
|
+
:ORDER_QUEUE_IS_FULL
|
632
|
+
elsif val == 204
|
633
|
+
:CANT_HARVEST_THAT_RESOURCE
|
634
|
+
elsif val == 205
|
635
|
+
:HARVESTERS_NOT_REQUIRED
|
636
|
+
elsif val == 206
|
637
|
+
:ALREADY_TARGETED
|
638
|
+
elsif val == 207
|
639
|
+
:CANT_ATTACK_WEAPONS_DISABLED
|
640
|
+
elsif val == 208
|
641
|
+
:COULDNT_REACH_TARGET
|
642
|
+
elsif val == 209
|
643
|
+
:TARGET_IS_OUT_OF_RANGE
|
644
|
+
elsif val == 210
|
645
|
+
:TARGET_IS_TOO_CLOSE
|
646
|
+
elsif val == 211
|
647
|
+
:TARGET_IS_OUT_OF_ARC
|
648
|
+
elsif val == 212
|
649
|
+
:CANT_FIND_TELEPORT_LOCATION
|
650
|
+
elsif val == 213
|
651
|
+
:INVALID_ITEM_CLASS
|
652
|
+
elsif val == 214
|
653
|
+
:CANT_FIND_CANCEL_ORDER
|
654
|
+
end
|
655
|
+
end
|
12
656
|
|
13
|
-
|
14
|
-
|
657
|
+
def self.resolve(val)
|
658
|
+
if val == :ENUM_ACTION_RESULT_UNSET
|
659
|
+
0
|
660
|
+
elsif val == :SUCCESS
|
661
|
+
1
|
662
|
+
elsif val == :NOT_SUPPORTED
|
663
|
+
2
|
664
|
+
elsif val == :ERROR
|
665
|
+
3
|
666
|
+
elsif val == :CANT_QUEUE_THAT_ORDER
|
667
|
+
4
|
668
|
+
elsif val == :RETRY
|
669
|
+
5
|
670
|
+
elsif val == :COOLDOWN
|
671
|
+
6
|
672
|
+
elsif val == :QUEUE_IS_FULL
|
673
|
+
7
|
674
|
+
elsif val == :RALLY_QUEUE_IS_FULL
|
675
|
+
8
|
676
|
+
elsif val == :NOT_ENOUGH_MINERALS
|
677
|
+
9
|
678
|
+
elsif val == :NOT_ENOUGH_VESPENE
|
679
|
+
10
|
680
|
+
elsif val == :NOT_ENOUGH_TERRAZINE
|
681
|
+
11
|
682
|
+
elsif val == :NOT_ENOUGH_CUSTOM
|
683
|
+
12
|
684
|
+
elsif val == :NOT_ENOUGH_FOOD
|
685
|
+
13
|
686
|
+
elsif val == :FOOD_USAGE_IMPOSSIBLE
|
687
|
+
14
|
688
|
+
elsif val == :NOT_ENOUGH_LIFE
|
689
|
+
15
|
690
|
+
elsif val == :NOT_ENOUGH_SHIELDS
|
691
|
+
16
|
692
|
+
elsif val == :NOT_ENOUGH_ENERGY
|
693
|
+
17
|
694
|
+
elsif val == :LIFE_SUPPRESSED
|
695
|
+
18
|
696
|
+
elsif val == :SHIELDS_SUPPRESSED
|
697
|
+
19
|
698
|
+
elsif val == :ENERGY_SUPPRESSED
|
699
|
+
20
|
700
|
+
elsif val == :NOT_ENOUGH_CHARGES
|
701
|
+
21
|
702
|
+
elsif val == :CANT_ADD_MORE_CHARGES
|
703
|
+
22
|
704
|
+
elsif val == :TOO_MUCH_MINERALS
|
705
|
+
23
|
706
|
+
elsif val == :TOO_MUCH_VESPENE
|
707
|
+
24
|
708
|
+
elsif val == :TOO_MUCH_TERRAZINE
|
709
|
+
25
|
710
|
+
elsif val == :TOO_MUCH_CUSTOM
|
711
|
+
26
|
712
|
+
elsif val == :TOO_MUCH_FOOD
|
713
|
+
27
|
714
|
+
elsif val == :TOO_MUCH_LIFE
|
715
|
+
28
|
716
|
+
elsif val == :TOO_MUCH_SHIELDS
|
717
|
+
29
|
718
|
+
elsif val == :TOO_MUCH_ENERGY
|
719
|
+
30
|
720
|
+
elsif val == :MUST_TARGET_UNIT_WITH_LIFE
|
721
|
+
31
|
722
|
+
elsif val == :MUST_TARGET_UNIT_WITH_SHIELDS
|
723
|
+
32
|
724
|
+
elsif val == :MUST_TARGET_UNIT_WITH_ENERGY
|
725
|
+
33
|
726
|
+
elsif val == :CANT_TRADE
|
727
|
+
34
|
728
|
+
elsif val == :CANT_SPEND
|
729
|
+
35
|
730
|
+
elsif val == :CANT_TARGET_THAT_UNIT
|
731
|
+
36
|
732
|
+
elsif val == :COULDNT_ALLOCATE_UNIT
|
733
|
+
37
|
734
|
+
elsif val == :UNIT_CANT_MOVE
|
735
|
+
38
|
736
|
+
elsif val == :TRANSPORT_IS_HOLDING_POSITION
|
737
|
+
39
|
738
|
+
elsif val == :BUILD_TECH_REQUIREMENTS_NOT_MET
|
739
|
+
40
|
740
|
+
elsif val == :CANT_FIND_PLACEMENT_LOCATION
|
741
|
+
41
|
742
|
+
elsif val == :CANT_BUILD_ON_THAT
|
743
|
+
42
|
744
|
+
elsif val == :CANT_BUILD_TOO_CLOSE_TO_DROP_OFF
|
745
|
+
43
|
746
|
+
elsif val == :CANT_BUILD_LOCATION_INVALID
|
747
|
+
44
|
748
|
+
elsif val == :CANT_SEE_BUILD_LOCATION
|
749
|
+
45
|
750
|
+
elsif val == :CANT_BUILD_TOO_CLOSE_TO_CREEP_SOURCE
|
751
|
+
46
|
752
|
+
elsif val == :CANT_BUILD_TOO_CLOSE_TO_RESOURCES
|
753
|
+
47
|
754
|
+
elsif val == :CANT_BUILD_TOO_FAR_FROM_WATER
|
755
|
+
48
|
756
|
+
elsif val == :CANT_BUILD_TOO_FAR_FROM_CREEP_SOURCE
|
757
|
+
49
|
758
|
+
elsif val == :CANT_BUILD_TOO_FAR_FROM_BUILD_POWER_SOURCE
|
759
|
+
50
|
760
|
+
elsif val == :CANT_BUILD_ON_DENSE_TERRAIN
|
761
|
+
51
|
762
|
+
elsif val == :CANT_TRAIN_TOO_FAR_FROM_TRAIN_POWER_SOURCE
|
763
|
+
52
|
764
|
+
elsif val == :CANT_LAND_LOCATION_INVALID
|
765
|
+
53
|
766
|
+
elsif val == :CANT_SEE_LAND_LOCATION
|
767
|
+
54
|
768
|
+
elsif val == :CANT_LAND_TOO_CLOSE_TO_CREEP_SOURCE
|
769
|
+
55
|
770
|
+
elsif val == :CANT_LAND_TOO_CLOSE_TO_RESOURCES
|
771
|
+
56
|
772
|
+
elsif val == :CANT_LAND_TOO_FAR_FROM_WATER
|
773
|
+
57
|
774
|
+
elsif val == :CANT_LAND_TOO_FAR_FROM_CREEP_SOURCE
|
775
|
+
58
|
776
|
+
elsif val == :CANT_LAND_TOO_FAR_FROM_BUILD_POWER_SOURCE
|
777
|
+
59
|
778
|
+
elsif val == :CANT_LAND_TOO_FAR_FROM_TRAIN_POWER_SOURCE
|
779
|
+
60
|
780
|
+
elsif val == :CANT_LAND_ON_DENSE_TERRAIN
|
781
|
+
61
|
782
|
+
elsif val == :ADD_ON_TOO_FAR_FROM_BUILDING
|
783
|
+
62
|
784
|
+
elsif val == :MUST_BUILD_REFINERY_FIRST
|
785
|
+
63
|
786
|
+
elsif val == :BUILDING_IS_UNDER_CONSTRUCTION
|
787
|
+
64
|
788
|
+
elsif val == :CANT_FIND_DROP_OFF
|
789
|
+
65
|
790
|
+
elsif val == :CANT_LOAD_OTHER_PLAYERS_UNITS
|
791
|
+
66
|
792
|
+
elsif val == :NOT_ENOUGH_ROOM_TO_LOAD_UNIT
|
793
|
+
67
|
794
|
+
elsif val == :CANT_UNLOAD_UNITS_THERE
|
795
|
+
68
|
796
|
+
elsif val == :CANT_WARP_IN_UNITS_THERE
|
797
|
+
69
|
798
|
+
elsif val == :CANT_LOAD_IMMOBILE_UNITS
|
799
|
+
70
|
800
|
+
elsif val == :CANT_RECHARGE_IMMOBILE_UNITS
|
801
|
+
71
|
802
|
+
elsif val == :CANT_RECHARGE_UNDER_CONSTRUCTION_UNITS
|
803
|
+
72
|
804
|
+
elsif val == :CANT_LOAD_THAT_UNIT
|
805
|
+
73
|
806
|
+
elsif val == :NO_CARGO_TO_UNLOAD
|
807
|
+
74
|
808
|
+
elsif val == :LOAD_ALL_NO_TARGETS_FOUND
|
809
|
+
75
|
810
|
+
elsif val == :NOT_WHILE_OCCUPIED
|
811
|
+
76
|
812
|
+
elsif val == :CANT_ATTACK_WITHOUT_AMMO
|
813
|
+
77
|
814
|
+
elsif val == :CANT_HOLD_ANY_MORE_AMMO
|
815
|
+
78
|
816
|
+
elsif val == :TECH_REQUIREMENTS_NOT_MET
|
817
|
+
79
|
818
|
+
elsif val == :MUST_LOCKDOWN_UNIT_FIRST
|
819
|
+
80
|
820
|
+
elsif val == :MUST_TARGET_UNIT
|
821
|
+
81
|
822
|
+
elsif val == :MUST_TARGET_INVENTORY
|
823
|
+
82
|
824
|
+
elsif val == :MUST_TARGET_VISIBLE_UNIT
|
825
|
+
83
|
826
|
+
elsif val == :MUST_TARGET_VISIBLE_LOCATION
|
827
|
+
84
|
828
|
+
elsif val == :MUST_TARGET_WALKABLE_LOCATION
|
829
|
+
85
|
830
|
+
elsif val == :MUST_TARGET_PAWNABLE_UNIT
|
831
|
+
86
|
832
|
+
elsif val == :YOU_CANT_CONTROL_THAT_UNIT
|
833
|
+
87
|
834
|
+
elsif val == :YOU_CANT_ISSUE_COMMANDS_TO_THAT_UNIT
|
835
|
+
88
|
836
|
+
elsif val == :MUST_TARGET_RESOURCES
|
837
|
+
89
|
838
|
+
elsif val == :REQUIRES_HEAL_TARGET
|
839
|
+
90
|
840
|
+
elsif val == :REQUIRES_REPAIR_TARGET
|
841
|
+
91
|
842
|
+
elsif val == :NO_ITEMS_TO_DROP
|
843
|
+
92
|
844
|
+
elsif val == :CANT_HOLD_ANY_MORE_ITEMS
|
845
|
+
93
|
846
|
+
elsif val == :CANT_HOLD_THAT
|
847
|
+
94
|
848
|
+
elsif val == :TARGET_HAS_NO_INVENTORY
|
849
|
+
95
|
850
|
+
elsif val == :CANT_DROP_THIS_ITEM
|
851
|
+
96
|
852
|
+
elsif val == :CANT_MOVE_THIS_ITEM
|
853
|
+
97
|
854
|
+
elsif val == :CANT_PAWN_THIS_UNIT
|
855
|
+
98
|
856
|
+
elsif val == :MUST_TARGET_CASTER
|
857
|
+
99
|
858
|
+
elsif val == :CANT_TARGET_CASTER
|
859
|
+
100
|
860
|
+
elsif val == :MUST_TARGET_OUTER
|
861
|
+
101
|
862
|
+
elsif val == :CANT_TARGET_OUTER
|
863
|
+
102
|
864
|
+
elsif val == :MUST_TARGET_YOUR_OWN_UNITS
|
865
|
+
103
|
866
|
+
elsif val == :CANT_TARGET_YOUR_OWN_UNITS
|
867
|
+
104
|
868
|
+
elsif val == :MUST_TARGET_FRIENDLY_UNITS
|
869
|
+
105
|
870
|
+
elsif val == :CANT_TARGET_FRIENDLY_UNITS
|
871
|
+
106
|
872
|
+
elsif val == :MUST_TARGET_NEUTRAL_UNITS
|
873
|
+
107
|
874
|
+
elsif val == :CANT_TARGET_NEUTRAL_UNITS
|
875
|
+
108
|
876
|
+
elsif val == :MUST_TARGET_ENEMY_UNITS
|
877
|
+
109
|
878
|
+
elsif val == :CANT_TARGET_ENEMY_UNITS
|
879
|
+
110
|
880
|
+
elsif val == :MUST_TARGET_AIR_UNITS
|
881
|
+
111
|
882
|
+
elsif val == :CANT_TARGET_AIR_UNITS
|
883
|
+
112
|
884
|
+
elsif val == :MUST_TARGET_GROUND_UNITS
|
885
|
+
113
|
886
|
+
elsif val == :CANT_TARGET_GROUND_UNITS
|
887
|
+
114
|
888
|
+
elsif val == :MUST_TARGET_STRUCTURES
|
889
|
+
115
|
890
|
+
elsif val == :CANT_TARGET_STRUCTURES
|
891
|
+
116
|
892
|
+
elsif val == :MUST_TARGET_LIGHT_UNITS
|
893
|
+
117
|
894
|
+
elsif val == :CANT_TARGET_LIGHT_UNITS
|
895
|
+
118
|
896
|
+
elsif val == :MUST_TARGET_ARMORED_UNITS
|
897
|
+
119
|
898
|
+
elsif val == :CANT_TARGET_ARMORED_UNITS
|
899
|
+
120
|
900
|
+
elsif val == :MUST_TARGET_BIOLOGICAL_UNITS
|
901
|
+
121
|
902
|
+
elsif val == :CANT_TARGET_BIOLOGICAL_UNITS
|
903
|
+
122
|
904
|
+
elsif val == :MUST_TARGET_HEROIC_UNITS
|
905
|
+
123
|
906
|
+
elsif val == :CANT_TARGET_HEROIC_UNITS
|
907
|
+
124
|
908
|
+
elsif val == :MUST_TARGET_ROBOTIC_UNITS
|
909
|
+
125
|
910
|
+
elsif val == :CANT_TARGET_ROBOTIC_UNITS
|
911
|
+
126
|
912
|
+
elsif val == :MUST_TARGET_MECHANICAL_UNITS
|
913
|
+
127
|
914
|
+
elsif val == :CANT_TARGET_MECHANICAL_UNITS
|
915
|
+
128
|
916
|
+
elsif val == :MUST_TARGET_PSIONIC_UNITS
|
917
|
+
129
|
918
|
+
elsif val == :CANT_TARGET_PSIONIC_UNITS
|
919
|
+
130
|
920
|
+
elsif val == :MUST_TARGET_MASSIVE_UNITS
|
921
|
+
131
|
922
|
+
elsif val == :CANT_TARGET_MASSIVE_UNITS
|
923
|
+
132
|
924
|
+
elsif val == :MUST_TARGET_MISSILE
|
925
|
+
133
|
926
|
+
elsif val == :CANT_TARGET_MISSILE
|
927
|
+
134
|
928
|
+
elsif val == :MUST_TARGET_WORKER_UNITS
|
929
|
+
135
|
930
|
+
elsif val == :CANT_TARGET_WORKER_UNITS
|
931
|
+
136
|
932
|
+
elsif val == :MUST_TARGET_ENERGY_CAPABLE_UNITS
|
933
|
+
137
|
934
|
+
elsif val == :CANT_TARGET_ENERGY_CAPABLE_UNITS
|
935
|
+
138
|
936
|
+
elsif val == :MUST_TARGET_SHIELD_CAPABLE_UNITS
|
937
|
+
139
|
938
|
+
elsif val == :CANT_TARGET_SHIELD_CAPABLE_UNITS
|
939
|
+
140
|
940
|
+
elsif val == :MUST_TARGET_FLYERS
|
941
|
+
141
|
942
|
+
elsif val == :CANT_TARGET_FLYERS
|
943
|
+
142
|
944
|
+
elsif val == :MUST_TARGET_BURIED_UNITS
|
945
|
+
143
|
946
|
+
elsif val == :CANT_TARGET_BURIED_UNITS
|
947
|
+
144
|
948
|
+
elsif val == :MUST_TARGET_CLOAKED_UNITS
|
949
|
+
145
|
950
|
+
elsif val == :CANT_TARGET_CLOAKED_UNITS
|
951
|
+
146
|
952
|
+
elsif val == :MUST_TARGET_UNITS_IN_A_STASIS_FIELD
|
953
|
+
147
|
954
|
+
elsif val == :CANT_TARGET_UNITS_IN_A_STASIS_FIELD
|
955
|
+
148
|
956
|
+
elsif val == :MUST_TARGET_UNDER_CONSTRUCTION_UNITS
|
957
|
+
149
|
958
|
+
elsif val == :CANT_TARGET_UNDER_CONSTRUCTION_UNITS
|
959
|
+
150
|
960
|
+
elsif val == :MUST_TARGET_DEAD_UNITS
|
961
|
+
151
|
962
|
+
elsif val == :CANT_TARGET_DEAD_UNITS
|
963
|
+
152
|
964
|
+
elsif val == :MUST_TARGET_REVIVABLE_UNITS
|
965
|
+
153
|
966
|
+
elsif val == :CANT_TARGET_REVIVABLE_UNITS
|
967
|
+
154
|
968
|
+
elsif val == :MUST_TARGET_HIDDEN_UNITS
|
969
|
+
155
|
970
|
+
elsif val == :CANT_TARGET_HIDDEN_UNITS
|
971
|
+
156
|
972
|
+
elsif val == :CANT_RECHARGE_OTHER_PLAYERS_UNITS
|
973
|
+
157
|
974
|
+
elsif val == :MUST_TARGET_HALLUCINATIONS
|
975
|
+
158
|
976
|
+
elsif val == :CANT_TARGET_HALLUCINATIONS
|
977
|
+
159
|
978
|
+
elsif val == :MUST_TARGET_INVULNERABLE_UNITS
|
979
|
+
160
|
980
|
+
elsif val == :CANT_TARGET_INVULNERABLE_UNITS
|
981
|
+
161
|
982
|
+
elsif val == :MUST_TARGET_DETECTED_UNITS
|
983
|
+
162
|
984
|
+
elsif val == :CANT_TARGET_DETECTED_UNITS
|
985
|
+
163
|
986
|
+
elsif val == :CANT_TARGET_UNIT_WITH_ENERGY
|
987
|
+
164
|
988
|
+
elsif val == :CANT_TARGET_UNIT_WITH_SHIELDS
|
989
|
+
165
|
990
|
+
elsif val == :MUST_TARGET_UNCOMMANDABLE_UNITS
|
991
|
+
166
|
992
|
+
elsif val == :CANT_TARGET_UNCOMMANDABLE_UNITS
|
993
|
+
167
|
994
|
+
elsif val == :MUST_TARGET_PREVENT_DEFEAT_UNITS
|
995
|
+
168
|
996
|
+
elsif val == :CANT_TARGET_PREVENT_DEFEAT_UNITS
|
997
|
+
169
|
998
|
+
elsif val == :MUST_TARGET_PREVENT_REVEAL_UNITS
|
999
|
+
170
|
1000
|
+
elsif val == :CANT_TARGET_PREVENT_REVEAL_UNITS
|
1001
|
+
171
|
1002
|
+
elsif val == :MUST_TARGET_PASSIVE_UNITS
|
1003
|
+
172
|
1004
|
+
elsif val == :CANT_TARGET_PASSIVE_UNITS
|
1005
|
+
173
|
1006
|
+
elsif val == :MUST_TARGET_STUNNED_UNITS
|
1007
|
+
174
|
1008
|
+
elsif val == :CANT_TARGET_STUNNED_UNITS
|
1009
|
+
175
|
1010
|
+
elsif val == :MUST_TARGET_SUMMONED_UNITS
|
1011
|
+
176
|
1012
|
+
elsif val == :CANT_TARGET_SUMMONED_UNITS
|
1013
|
+
177
|
1014
|
+
elsif val == :MUST_TARGET_USER1
|
1015
|
+
178
|
1016
|
+
elsif val == :CANT_TARGET_USER1
|
1017
|
+
179
|
1018
|
+
elsif val == :MUST_TARGET_UNSTOPPABLE_UNITS
|
1019
|
+
180
|
1020
|
+
elsif val == :CANT_TARGET_UNSTOPPABLE_UNITS
|
1021
|
+
181
|
1022
|
+
elsif val == :MUST_TARGET_RESISTANT_UNITS
|
1023
|
+
182
|
1024
|
+
elsif val == :CANT_TARGET_RESISTANT_UNITS
|
1025
|
+
183
|
1026
|
+
elsif val == :MUST_TARGET_DAZED_UNITS
|
1027
|
+
184
|
1028
|
+
elsif val == :CANT_TARGET_DAZED_UNITS
|
1029
|
+
185
|
1030
|
+
elsif val == :CANT_LOCKDOWN
|
1031
|
+
186
|
1032
|
+
elsif val == :CANT_MIND_CONTROL
|
1033
|
+
187
|
1034
|
+
elsif val == :MUST_TARGET_DESTRUCTIBLES
|
1035
|
+
188
|
1036
|
+
elsif val == :CANT_TARGET_DESTRUCTIBLES
|
1037
|
+
189
|
1038
|
+
elsif val == :MUST_TARGET_ITEMS
|
1039
|
+
190
|
1040
|
+
elsif val == :CANT_TARGET_ITEMS
|
1041
|
+
191
|
1042
|
+
elsif val == :NO_CALLDOWN_AVAILABLE
|
1043
|
+
192
|
1044
|
+
elsif val == :WAYPOINT_LIST_FULL
|
1045
|
+
193
|
1046
|
+
elsif val == :MUST_TARGET_RACE
|
1047
|
+
194
|
1048
|
+
elsif val == :CANT_TARGET_RACE
|
1049
|
+
195
|
1050
|
+
elsif val == :MUST_TARGET_SIMILAR_UNITS
|
1051
|
+
196
|
1052
|
+
elsif val == :CANT_TARGET_SIMILAR_UNITS
|
1053
|
+
197
|
1054
|
+
elsif val == :CANT_FIND_ENOUGH_TARGETS
|
1055
|
+
198
|
1056
|
+
elsif val == :ALREADY_SPAWNING_LARVA
|
1057
|
+
199
|
1058
|
+
elsif val == :CANT_TARGET_EXHAUSTED_RESOURCES
|
1059
|
+
200
|
1060
|
+
elsif val == :CANT_USE_MINIMAP
|
1061
|
+
201
|
1062
|
+
elsif val == :CANT_USE_INFO_PANEL
|
1063
|
+
202
|
1064
|
+
elsif val == :ORDER_QUEUE_IS_FULL
|
1065
|
+
203
|
1066
|
+
elsif val == :CANT_HARVEST_THAT_RESOURCE
|
1067
|
+
204
|
1068
|
+
elsif val == :HARVESTERS_NOT_REQUIRED
|
1069
|
+
205
|
1070
|
+
elsif val == :ALREADY_TARGETED
|
1071
|
+
206
|
1072
|
+
elsif val == :CANT_ATTACK_WEAPONS_DISABLED
|
1073
|
+
207
|
1074
|
+
elsif val == :COULDNT_REACH_TARGET
|
1075
|
+
208
|
1076
|
+
elsif val == :TARGET_IS_OUT_OF_RANGE
|
1077
|
+
209
|
1078
|
+
elsif val == :TARGET_IS_TOO_CLOSE
|
1079
|
+
210
|
1080
|
+
elsif val == :TARGET_IS_OUT_OF_ARC
|
1081
|
+
211
|
1082
|
+
elsif val == :CANT_FIND_TELEPORT_LOCATION
|
1083
|
+
212
|
1084
|
+
elsif val == :INVALID_ITEM_CLASS
|
1085
|
+
213
|
1086
|
+
elsif val == :CANT_FIND_CANCEL_ORDER
|
1087
|
+
214
|
1088
|
+
end
|
1089
|
+
end
|
1090
|
+
end
|
15
1091
|
end
|