sc2ai 0.5.0 → 0.6.1
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 +1 -1
- data/data/sc2ai/protocol/raw.proto +1 -1
- data/docker_build/Dockerfile.ruby +16 -16
- data/lib/sc2ai/api/data.rb +59 -1
- data/lib/sc2ai/cli/cli.rb +5 -20
- data/lib/sc2ai/connection/requests.rb +4 -1
- data/lib/sc2ai/local_play/match.rb +2 -2
- data/lib/sc2ai/player/game_state.rb +0 -7
- data/lib/sc2ai/player/units.rb +12 -8
- data/lib/sc2ai/player.rb +26 -1
- data/lib/sc2ai/protocol/extensions/player_common.rb +25 -0
- data/lib/sc2ai/protocol/extensions/position.rb +1 -1
- data/lib/sc2ai/protocol/extensions/unit.rb +59 -14
- data/lib/sc2ai/protocol/extensions/unit_type_data.rb +30 -0
- data/lib/sc2ai/unit_group/filter_ext.rb +23 -2
- data/lib/sc2ai/version.rb +1 -1
- data/lib/templates/new/api/data.proto +1 -1
- data/lib/templates/new/api/raw.proto +1 -1
- data/lib/templates/new/run_example_match.rb.tt +1 -1
- data/sig/sc2ai.rbs +143 -86
- metadata +13 -16
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
|
+
version: 0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dyson Returns
|
8
8
|
bindir: exe
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-02-
|
10
|
+
date: 2025-02-27 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: async
|
@@ -15,14 +15,14 @@ dependencies:
|
|
15
15
|
requirements:
|
16
16
|
- - "~>"
|
17
17
|
- !ruby/object:Gem::Version
|
18
|
-
version: '2.
|
18
|
+
version: '2.23'
|
19
19
|
type: :runtime
|
20
20
|
prerelease: false
|
21
21
|
version_requirements: !ruby/object:Gem::Requirement
|
22
22
|
requirements:
|
23
23
|
- - "~>"
|
24
24
|
- !ruby/object:Gem::Version
|
25
|
-
version: '2.
|
25
|
+
version: '2.23'
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: async-websocket
|
28
28
|
requirement: !ruby/object:Gem::Requirement
|
@@ -253,14 +253,14 @@ dependencies:
|
|
253
253
|
requirements:
|
254
254
|
- - "~>"
|
255
255
|
- !ruby/object:Gem::Version
|
256
|
-
version: '1.
|
256
|
+
version: '1.45'
|
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.45'
|
264
264
|
- !ruby/object:Gem::Dependency
|
265
265
|
name: factory_bot
|
266
266
|
requirement: !ruby/object:Gem::Requirement
|
@@ -399,6 +399,7 @@ files:
|
|
399
399
|
- lib/sc2ai/protocol/extensions/ability_remapable.rb
|
400
400
|
- lib/sc2ai/protocol/extensions/action.rb
|
401
401
|
- lib/sc2ai/protocol/extensions/color.rb
|
402
|
+
- lib/sc2ai/protocol/extensions/player_common.rb
|
402
403
|
- lib/sc2ai/protocol/extensions/point.rb
|
403
404
|
- lib/sc2ai/protocol/extensions/point_2_d.rb
|
404
405
|
- lib/sc2ai/protocol/extensions/point_distance.rb
|
@@ -442,14 +443,10 @@ metadata:
|
|
442
443
|
homepage_uri: https://sc2ai.pages.dev/
|
443
444
|
source_code_uri: https://gitlab.com/dysonreturns/sc2ai
|
444
445
|
changelog_uri: https://sc2ai.pages.dev/file.CHANGELOG
|
445
|
-
post_install_message: "
|
446
|
-
|
447
|
-
\
|
448
|
-
|
449
|
-
\ ENUMS!\n %*+#\n *@#***%%\n #%@%*++%%%%%\n %%%@%%%%%%%%%%\n %%@%%%%%%%%@%%\n
|
450
|
-
\ ++*@@%%%%%%@+**\n *+*%@@%%%%%%@#**\n *+*@@%%%%%%%@ **\n *+@@@@%%%%@@*+\n
|
451
|
-
\ *+@@@@@@@@*+\n %@++++%@@+*%#\n %@@@***@#++*%%%\n %%%@@@@++@@@@@@%#\n @@@@@
|
452
|
-
\ @@@%%\n@@@@@ @@@@=\n"
|
446
|
+
post_install_message: "Don't bot alone! Join the StarCraft 2 AI Arena discord server
|
447
|
+
:) \nTutorials and help available: https://sc2ai.pages.dev/\n\nBREAKING CHANGES:
|
448
|
+
Version 0.6.0\n- Bot#can_afford?(unit_type_id:, ...) is now Bot#can_afford(unit_type_id,
|
449
|
+
...)\n\n"
|
453
450
|
rdoc_options: []
|
454
451
|
require_paths:
|
455
452
|
- lib
|
@@ -457,14 +454,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
457
454
|
requirements:
|
458
455
|
- - ">="
|
459
456
|
- !ruby/object:Gem::Version
|
460
|
-
version: 3.3.
|
457
|
+
version: 3.3.7
|
461
458
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
462
459
|
requirements:
|
463
460
|
- - ">="
|
464
461
|
- !ruby/object:Gem::Version
|
465
462
|
version: '0'
|
466
463
|
requirements: []
|
467
|
-
rubygems_version: 3.6.
|
464
|
+
rubygems_version: 3.6.3
|
468
465
|
specification_version: 4
|
469
466
|
summary: STARCRAFT® II AI API
|
470
467
|
test_files: []
|