sc2ai 0.0.4 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/data/data.json +1 -1
- data/data/data_readable.json +31 -28
- data/lib/docker_build/Dockerfile.ruby +1 -1
- data/lib/sc2ai/api/data.rb +159 -2
- data/lib/sc2ai/api/tech_tree.rb +22 -0
- data/lib/sc2ai/api/tech_tree_data.rb +19 -8
- data/lib/sc2ai/connection/requests.rb +26 -11
- data/lib/sc2ai/connection.rb +1 -1
- data/lib/sc2ai/local_play/client_manager.rb +9 -1
- data/lib/sc2ai/player/actions.rb +17 -0
- data/lib/sc2ai/player/debug.rb +1 -0
- data/lib/sc2ai/player/game_state.rb +8 -5
- data/lib/sc2ai/player/geometry.rb +100 -16
- data/lib/sc2ai/player/previous_state.rb +3 -3
- data/lib/sc2ai/player/units.rb +116 -6
- data/lib/sc2ai/player.rb +3 -1
- data/lib/sc2ai/protocol/_meta_documentation.rb +2 -0
- data/lib/sc2ai/protocol/extensions/ability_remapable.rb +22 -0
- data/lib/sc2ai/protocol/extensions/point.rb +3 -1
- data/lib/sc2ai/protocol/extensions/point_2_d.rb +6 -0
- data/lib/sc2ai/protocol/extensions/position.rb +41 -4
- data/lib/sc2ai/protocol/extensions/unit.rb +35 -3
- data/lib/sc2ai/protocol/extensions/unit_type_data.rb +20 -0
- data/lib/sc2ai/unit_group/action_ext.rb +9 -0
- data/lib/sc2ai/unit_group/filter_ext.rb +18 -1
- data/lib/sc2ai/unit_group/geo_ext.rb +28 -0
- data/lib/sc2ai/unit_group.rb +12 -1
- data/lib/sc2ai/version.rb +1 -1
- data/lib/templates/new/run_example_match.rb.tt +1 -1
- data/sig/sc2ai.rbs +498 -87
- metadata +26 -23
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sc2ai
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dyson Returns
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-05-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: async
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '2.
|
19
|
+
version: '2.11'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '2.
|
26
|
+
version: '2.11'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: async-websocket
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.26.
|
33
|
+
version: 0.26.1
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.26.
|
40
|
+
version: 0.26.1
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: google-protobuf
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -80,20 +80,6 @@ dependencies:
|
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: 1.3.1
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: perfect-shape
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - "~>"
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: 1.0.8
|
90
|
-
type: :runtime
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - "~>"
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: 1.0.8
|
97
83
|
- !ruby/object:Gem::Dependency
|
98
84
|
name: numo-narray
|
99
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -262,8 +248,22 @@ dependencies:
|
|
262
248
|
- - "~>"
|
263
249
|
- !ruby/object:Gem::Version
|
264
250
|
version: '3.13'
|
265
|
-
|
266
|
-
|
251
|
+
- !ruby/object:Gem::Dependency
|
252
|
+
name: async-rspec
|
253
|
+
requirement: !ruby/object:Gem::Requirement
|
254
|
+
requirements:
|
255
|
+
- - "~>"
|
256
|
+
- !ruby/object:Gem::Version
|
257
|
+
version: '1.17'
|
258
|
+
type: :development
|
259
|
+
prerelease: false
|
260
|
+
version_requirements: !ruby/object:Gem::Requirement
|
261
|
+
requirements:
|
262
|
+
- - "~>"
|
263
|
+
- !ruby/object:Gem::Version
|
264
|
+
version: '1.17'
|
265
|
+
description: This is a Ruby interface to STARCRAFT® II. Write your own AI using an
|
266
|
+
easy interface and compete against others.
|
267
267
|
email:
|
268
268
|
executables:
|
269
269
|
- sc2ai
|
@@ -329,12 +329,14 @@ files:
|
|
329
329
|
- lib/sc2ai/protocol/data_pb.rb
|
330
330
|
- lib/sc2ai/protocol/debug_pb.rb
|
331
331
|
- lib/sc2ai/protocol/error_pb.rb
|
332
|
+
- lib/sc2ai/protocol/extensions/ability_remapable.rb
|
332
333
|
- lib/sc2ai/protocol/extensions/color.rb
|
333
334
|
- lib/sc2ai/protocol/extensions/point.rb
|
334
335
|
- lib/sc2ai/protocol/extensions/point_2_d.rb
|
335
336
|
- lib/sc2ai/protocol/extensions/position.rb
|
336
337
|
- lib/sc2ai/protocol/extensions/power_source.rb
|
337
338
|
- lib/sc2ai/protocol/extensions/unit.rb
|
339
|
+
- lib/sc2ai/protocol/extensions/unit_type_data.rb
|
338
340
|
- lib/sc2ai/protocol/query_pb.rb
|
339
341
|
- lib/sc2ai/protocol/raw_pb.rb
|
340
342
|
- lib/sc2ai/protocol/sc2api_pb.rb
|
@@ -344,6 +346,7 @@ files:
|
|
344
346
|
- lib/sc2ai/unit_group.rb
|
345
347
|
- lib/sc2ai/unit_group/action_ext.rb
|
346
348
|
- lib/sc2ai/unit_group/filter_ext.rb
|
349
|
+
- lib/sc2ai/unit_group/geo_ext.rb
|
347
350
|
- lib/sc2ai/version.rb
|
348
351
|
- lib/templates/ladderzip/bin/ladder.tt
|
349
352
|
- lib/templates/new/.ladderignore
|
@@ -384,7 +387,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
384
387
|
- !ruby/object:Gem::Version
|
385
388
|
version: '0'
|
386
389
|
requirements: []
|
387
|
-
rubygems_version: 3.5.
|
390
|
+
rubygems_version: 3.5.9
|
388
391
|
signing_key:
|
389
392
|
specification_version: 4
|
390
393
|
summary: STARCRAFT® II AI API
|