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,221 +1,223 @@
|
|
1
1
|
|
2
|
-
syntax = "
|
2
|
+
syntax = "proto3";
|
3
3
|
|
4
4
|
package Api;
|
5
5
|
|
6
6
|
enum ActionResult {
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
7
|
+
ENUM_ACTION_RESULT_UNSET = 0; // PROTO3 COMPAT
|
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;
|
222
|
+
|
221
223
|
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
syntax = "
|
2
|
+
syntax = "proto3";
|
3
3
|
|
4
4
|
package Api;
|
5
5
|
|
@@ -59,25 +59,27 @@ message UnitOrder {
|
|
59
59
|
}
|
60
60
|
|
61
61
|
enum DisplayType {
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
62
|
+
ENUM_DISPLAY_TYPE_UNSET = 0; // PROTO3 COMPAT
|
63
|
+
VISIBLE = 1; // FULLY VISIBLE
|
64
|
+
SNAPSHOT = 2; // DIMMED VERSION OF UNIT LEFT BEHIND AFTER ENTERING FOG OF WAR
|
65
|
+
HIDDEN = 3; // FULLY HIDDEN
|
66
|
+
PLACEHOLDER = 4; // BUILDING THAT HASN'T STARTED CONSTRUCTION.
|
66
67
|
}
|
67
68
|
|
68
69
|
enum Alliance {
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
70
|
+
ENUM_ALLIANCE_UNSET = 0; // PROTO3 COMPAT
|
71
|
+
SELF = 1;
|
72
|
+
ALLY = 2;
|
73
|
+
NEUTRAL = 3;
|
74
|
+
ENEMY = 4;
|
73
75
|
}
|
74
76
|
|
75
77
|
enum CloakState {
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
78
|
+
CLOAKED_UNKNOWN = 0; // UNDER THE FOG, SO UNKNOWN WHETHER IT'S CLOAKED OR NOT.
|
79
|
+
CLOAKED = 1;
|
80
|
+
CLOAKED_DETECTED = 2;
|
81
|
+
NOT_CLOAKED = 3;
|
82
|
+
CLOAKED_ALLIED = 4;
|
81
83
|
}
|
82
84
|
|
83
85
|
message PassengerUnit {
|