sc2ai 0.4.1 → 0.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/data/sc2ai/protocol/data.proto +2 -2
- data/data/sc2ai/protocol/debug.proto +1 -1
- data/data/sc2ai/protocol/raw.proto +6 -6
- data/data/sc2ai/protocol/sc2api.proto +1 -1
- data/data/sc2ai/protocol/ui.proto +1 -1
- data/{lib/docker_build → docker_build}/Dockerfile.ruby +2 -2
- data/lib/sc2ai/cli/ladderzip.rb +1 -1
- data/lib/sc2ai/player/debug.rb +4 -4
- data/lib/sc2ai/player/geo.rb +1 -0
- data/lib/sc2ai/protocol/common_pb.rb +266 -42
- data/lib/sc2ai/protocol/data_pb.rb +333 -192
- data/lib/sc2ai/protocol/debug_pb.rb +598 -233
- data/lib/sc2ai/protocol/query_pb.rb +304 -48
- data/lib/sc2ai/protocol/raw_pb.rb +955 -858
- data/lib/sc2ai/protocol/sc2api_pb.rb +2460 -512
- data/lib/sc2ai/protocol/score_pb.rb +152 -24
- data/lib/sc2ai/protocol/spatial_pb.rb +342 -54
- data/lib/sc2ai/protocol/ui_pb.rb +750 -256
- data/lib/sc2ai/version.rb +1 -1
- data/lib/templates/new/api/data.proto +2 -2
- data/lib/templates/new/api/debug.proto +1 -1
- data/lib/templates/new/api/raw.proto +6 -6
- data/lib/templates/new/api/sc2api.proto +1 -1
- data/lib/templates/new/api/ui.proto +1 -1
- data/lib/templates/new/run_example_match.rb.tt +1 -1
- data/sig/sc2ai.rbs +2 -2
- metadata +7 -7
- /data/{lib/docker_build → docker_build}/docker-compose-base-image.yml +0 -0
- /data/{lib/docker_build → docker_build}/docker-compose-ladderzip.yml +0 -0
data/lib/sc2ai/version.rb
CHANGED
@@ -88,8 +88,8 @@ message UnitTypeData {
|
|
88
88
|
optional bool has_minerals = 20;
|
89
89
|
optional float sight_range = 25; // Range unit reveals vision.
|
90
90
|
|
91
|
-
repeated uint32 tech_alias = 21; // Other units that satisfy the same tech requirement.
|
92
|
-
optional uint32 unit_alias = 22; // The morphed variant of this unit.
|
91
|
+
repeated uint32 tech_alias = 21 [packed=false]; // Other units that satisfy the same tech requirement.
|
92
|
+
optional uint32 unit_alias = 22 [packed=false]; // The morphed variant of this unit.
|
93
93
|
|
94
94
|
optional uint32 tech_requirement = 23; // Structure required to build this unit. (Or any with the same tech_alias)
|
95
95
|
optional bool require_attached = 24; // Whether tech_requirement is an add-on.
|
@@ -46,7 +46,7 @@ message PowerSource {
|
|
46
46
|
message PlayerRaw {
|
47
47
|
repeated PowerSource power_sources = 1;
|
48
48
|
optional Point camera = 2;
|
49
|
-
repeated uint32 upgrade_ids = 3;
|
49
|
+
repeated uint32 upgrade_ids = 3 [packed=false];
|
50
50
|
}
|
51
51
|
|
52
52
|
message UnitOrder {
|
@@ -112,7 +112,7 @@ message Unit {
|
|
112
112
|
optional float radius = 8;
|
113
113
|
optional float build_progress = 9; // Range: [0.0, 1.0]
|
114
114
|
optional CloakState cloak = 10;
|
115
|
-
repeated uint32 buff_ids = 27;
|
115
|
+
repeated uint32 buff_ids = 27 [packed=false];
|
116
116
|
|
117
117
|
optional float detect_range = 31;
|
118
118
|
optional float radar_range = 32;
|
@@ -160,7 +160,7 @@ message MapState {
|
|
160
160
|
}
|
161
161
|
|
162
162
|
message Event {
|
163
|
-
repeated uint64 dead_units = 1;
|
163
|
+
repeated uint64 dead_units = 1 [packed=false];
|
164
164
|
}
|
165
165
|
|
166
166
|
message Effect {
|
@@ -190,8 +190,8 @@ message ActionRawUnitCommand {
|
|
190
190
|
Point2D target_world_space_pos = 2;
|
191
191
|
uint64 target_unit_tag = 3;
|
192
192
|
}
|
193
|
-
repeated uint64 unit_tags = 4;
|
194
|
-
optional bool queue_command = 5;
|
193
|
+
repeated uint64 unit_tags = 4 [packed=false];
|
194
|
+
optional bool queue_command = 5 [packed=false];
|
195
195
|
}
|
196
196
|
|
197
197
|
message ActionRawCameraMove {
|
@@ -200,5 +200,5 @@ message ActionRawCameraMove {
|
|
200
200
|
|
201
201
|
message ActionRawToggleAutocast {
|
202
202
|
optional int32 ability_id = 1;
|
203
|
-
repeated uint64 unit_tags = 2;
|
203
|
+
repeated uint64 unit_tags = 2 [packed=false];
|
204
204
|
}
|
data/sig/sc2ai.rbs
CHANGED
@@ -728,7 +728,7 @@ module Sc2
|
|
728
728
|
#
|
729
729
|
# _@param_ `unit_tag`
|
730
730
|
#
|
731
|
-
# _@param_ `unit_value` — 1=
|
731
|
+
# _@param_ `unit_value` — 1=ENERGY,2=LIFE,3=SHIELDS one of Api::DebugSetUnitValue::UnitValue::*
|
732
732
|
#
|
733
733
|
# _@param_ `value` — the value which the attribute will be set to
|
734
734
|
def debug_set_unit_value: (unit_tag: Integer, unit_value: Integer, value: Float) -> void
|
@@ -1782,7 +1782,7 @@ module Sc2
|
|
1782
1782
|
#
|
1783
1783
|
# _@param_ `unit_tag`
|
1784
1784
|
#
|
1785
|
-
# _@param_ `unit_value` — 1=
|
1785
|
+
# _@param_ `unit_value` — 1=ENERGY,2=LIFE,3=SHIELDS one of Api::DebugSetUnitValue::UnitValue::*
|
1786
1786
|
#
|
1787
1787
|
# _@param_ `value` — the value which the attribute will be set to
|
1788
1788
|
def debug_set_unit_value: (unit_tag: Integer, unit_value: Integer, value: Float) -> void
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sc2ai
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dyson Returns
|
8
8
|
bindir: exe
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-01-
|
10
|
+
date: 2025-01-16 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: async
|
@@ -253,14 +253,14 @@ dependencies:
|
|
253
253
|
requirements:
|
254
254
|
- - "~>"
|
255
255
|
- !ruby/object:Gem::Version
|
256
|
-
version: '1.
|
256
|
+
version: '1.44'
|
257
257
|
type: :development
|
258
258
|
prerelease: false
|
259
259
|
version_requirements: !ruby/object:Gem::Requirement
|
260
260
|
requirements:
|
261
261
|
- - "~>"
|
262
262
|
- !ruby/object:Gem::Version
|
263
|
-
version: '1.
|
263
|
+
version: '1.44'
|
264
264
|
- !ruby/object:Gem::Dependency
|
265
265
|
name: factory_bot
|
266
266
|
requirement: !ruby/object:Gem::Requirement
|
@@ -354,10 +354,10 @@ files:
|
|
354
354
|
- data/setup/setup.SC2Replay
|
355
355
|
- data/stableid.json
|
356
356
|
- data/versions.json
|
357
|
+
- docker_build/Dockerfile.ruby
|
358
|
+
- docker_build/docker-compose-base-image.yml
|
359
|
+
- docker_build/docker-compose-ladderzip.yml
|
357
360
|
- exe/sc2ai
|
358
|
-
- lib/docker_build/Dockerfile.ruby
|
359
|
-
- lib/docker_build/docker-compose-base-image.yml
|
360
|
-
- lib/docker_build/docker-compose-ladderzip.yml
|
361
361
|
- lib/sc2ai.rb
|
362
362
|
- lib/sc2ai/api/ability_id.rb
|
363
363
|
- lib/sc2ai/api/buff_id.rb
|
File without changes
|
File without changes
|