sc2ai 0.2.0 → 0.4.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/docker_build/Dockerfile.ruby +2 -2
- 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 +2 -3
- data/lib/sc2ai/local_play/client/configurable_options.rb +6 -7
- data/lib/sc2ai/local_play/client.rb +3 -3
- 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 +11008 -1929
- metadata +25 -36
- data/lib/sc2ai/overrides/kernel.rb +0 -33
- data/sig/minaswan.rbs +0 -10323
metadata
CHANGED
@@ -1,14 +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.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dyson Returns
|
8
|
-
autorequire:
|
9
8
|
bindir: exe
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 2025-01-11 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: async
|
@@ -16,14 +15,14 @@ dependencies:
|
|
16
15
|
requirements:
|
17
16
|
- - "~>"
|
18
17
|
- !ruby/object:Gem::Version
|
19
|
-
version: '2.
|
18
|
+
version: '2.21'
|
20
19
|
type: :runtime
|
21
20
|
prerelease: false
|
22
21
|
version_requirements: !ruby/object:Gem::Requirement
|
23
22
|
requirements:
|
24
23
|
- - "~>"
|
25
24
|
- !ruby/object:Gem::Version
|
26
|
-
version: '2.
|
25
|
+
version: '2.21'
|
27
26
|
- !ruby/object:Gem::Dependency
|
28
27
|
name: async-websocket
|
29
28
|
requirement: !ruby/object:Gem::Requirement
|
@@ -38,20 +37,6 @@ dependencies:
|
|
38
37
|
- - "~>"
|
39
38
|
- !ruby/object:Gem::Version
|
40
39
|
version: '0.30'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: google-protobuf
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - "~>"
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '4.28'
|
48
|
-
type: :runtime
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - "~>"
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '4.28'
|
55
40
|
- !ruby/object:Gem::Dependency
|
56
41
|
name: async-process
|
57
42
|
requirement: !ruby/object:Gem::Requirement
|
@@ -114,14 +99,14 @@ dependencies:
|
|
114
99
|
requirements:
|
115
100
|
- - "~>"
|
116
101
|
- !ruby/object:Gem::Version
|
117
|
-
version: '0
|
102
|
+
version: '1.0'
|
118
103
|
type: :runtime
|
119
104
|
prerelease: false
|
120
105
|
version_requirements: !ruby/object:Gem::Requirement
|
121
106
|
requirements:
|
122
107
|
- - "~>"
|
123
108
|
- !ruby/object:Gem::Version
|
124
|
-
version: '0
|
109
|
+
version: '1.0'
|
125
110
|
- !ruby/object:Gem::Dependency
|
126
111
|
name: sc2ai-kdtree
|
127
112
|
requirement: !ruby/object:Gem::Requirement
|
@@ -156,14 +141,14 @@ dependencies:
|
|
156
141
|
requirements:
|
157
142
|
- - "~>"
|
158
143
|
- !ruby/object:Gem::Version
|
159
|
-
version: 0.9.
|
144
|
+
version: 0.9.37
|
160
145
|
type: :development
|
161
146
|
prerelease: false
|
162
147
|
version_requirements: !ruby/object:Gem::Requirement
|
163
148
|
requirements:
|
164
149
|
- - "~>"
|
165
150
|
- !ruby/object:Gem::Version
|
166
|
-
version: 0.9.
|
151
|
+
version: 0.9.37
|
167
152
|
- !ruby/object:Gem::Dependency
|
168
153
|
name: abbrev
|
169
154
|
requirement: !ruby/object:Gem::Requirement
|
@@ -198,28 +183,28 @@ dependencies:
|
|
198
183
|
requirements:
|
199
184
|
- - "~>"
|
200
185
|
- !ruby/object:Gem::Version
|
201
|
-
version: '1.
|
186
|
+
version: '1.9'
|
202
187
|
type: :development
|
203
188
|
prerelease: false
|
204
189
|
version_requirements: !ruby/object:Gem::Requirement
|
205
190
|
requirements:
|
206
191
|
- - "~>"
|
207
192
|
- !ruby/object:Gem::Version
|
208
|
-
version: '1.
|
193
|
+
version: '1.9'
|
209
194
|
- !ruby/object:Gem::Dependency
|
210
195
|
name: sord
|
211
196
|
requirement: !ruby/object:Gem::Requirement
|
212
197
|
requirements:
|
213
|
-
- - "
|
198
|
+
- - "~>"
|
214
199
|
- !ruby/object:Gem::Version
|
215
|
-
version: '0'
|
200
|
+
version: '6.0'
|
216
201
|
type: :development
|
217
202
|
prerelease: false
|
218
203
|
version_requirements: !ruby/object:Gem::Requirement
|
219
204
|
requirements:
|
220
|
-
- - "
|
205
|
+
- - "~>"
|
221
206
|
- !ruby/object:Gem::Version
|
222
|
-
version: '0'
|
207
|
+
version: '6.0'
|
223
208
|
- !ruby/object:Gem::Dependency
|
224
209
|
name: standard
|
225
210
|
requirement: !ruby/object:Gem::Requirement
|
@@ -306,7 +291,6 @@ dependencies:
|
|
306
291
|
version: '0'
|
307
292
|
description: This is a Ruby interface to STARCRAFT® II. Write your own AI using an
|
308
293
|
easy interface and compete against others.
|
309
|
-
email:
|
310
294
|
executables:
|
311
295
|
- sc2ai
|
312
296
|
extensions: []
|
@@ -356,7 +340,6 @@ files:
|
|
356
340
|
- lib/sc2ai/local_play/match.rb
|
357
341
|
- lib/sc2ai/overrides/array.rb
|
358
342
|
- lib/sc2ai/overrides/async/process/child.rb
|
359
|
-
- lib/sc2ai/overrides/kernel.rb
|
360
343
|
- lib/sc2ai/paths.rb
|
361
344
|
- lib/sc2ai/player.rb
|
362
345
|
- lib/sc2ai/player/actions.rb
|
@@ -372,6 +355,7 @@ files:
|
|
372
355
|
- lib/sc2ai/protocol/debug_pb.rb
|
373
356
|
- lib/sc2ai/protocol/error_pb.rb
|
374
357
|
- lib/sc2ai/protocol/extensions/ability_remapable.rb
|
358
|
+
- lib/sc2ai/protocol/extensions/action.rb
|
375
359
|
- lib/sc2ai/protocol/extensions/color.rb
|
376
360
|
- lib/sc2ai/protocol/extensions/point.rb
|
377
361
|
- lib/sc2ai/protocol/extensions/point_2_d.rb
|
@@ -407,7 +391,6 @@ files:
|
|
407
391
|
- lib/templates/new/boot.rb.tt
|
408
392
|
- lib/templates/new/my_bot.rb.tt
|
409
393
|
- lib/templates/new/run_example_match.rb.tt
|
410
|
-
- sig/minaswan.rbs
|
411
394
|
- sig/sc2ai.rbs
|
412
395
|
homepage: https://sc2ai.pages.dev/
|
413
396
|
licenses:
|
@@ -417,7 +400,14 @@ metadata:
|
|
417
400
|
homepage_uri: https://sc2ai.pages.dev/
|
418
401
|
source_code_uri: https://gitlab.com/dysonreturns/sc2ai
|
419
402
|
changelog_uri: https://sc2ai.pages.dev/file.CHANGELOG
|
420
|
-
post_install_message:
|
403
|
+
post_install_message: "BREAKING CHANGE: Version 0.3.0 upgraded to protoboeuf.\nApi
|
404
|
+
constants are now capitalized, i.e.\n\e[1;91m:Air\e[0m is now \e[1;92m:AIR\e[0m,
|
405
|
+
\e[1;91mApi::Race::Zerg\e[0m is now \e[1;92mApi::Race::ZERG\e[0m, etc.\nThe mild
|
406
|
+
refactor is worth the speed.\n\n %@@% CHECK\n %++++% YOUR\n *+**++
|
407
|
+
\ ENUMS!\n %*+#\n *@#***%%\n #%@%*++%%%%%\n %%%@%%%%%%%%%%\n %%@%%%%%%%%@%%\n
|
408
|
+
\ ++*@@%%%%%%@+**\n *+*%@@%%%%%%@#**\n *+*@@%%%%%%%@ **\n *+@@@@%%%%@@*+\n
|
409
|
+
\ *+@@@@@@@@*+\n %@++++%@@+*%#\n %@@@***@#++*%%%\n %%%@@@@++@@@@@@%#\n @@@@@
|
410
|
+
\ @@@%%\n@@@@@ @@@@=\n"
|
421
411
|
rdoc_options: []
|
422
412
|
require_paths:
|
423
413
|
- lib
|
@@ -425,15 +415,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
425
415
|
requirements:
|
426
416
|
- - ">="
|
427
417
|
- !ruby/object:Gem::Version
|
428
|
-
version: 3.
|
418
|
+
version: 3.3.6
|
429
419
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
430
420
|
requirements:
|
431
421
|
- - ">="
|
432
422
|
- !ruby/object:Gem::Version
|
433
423
|
version: '0'
|
434
424
|
requirements: []
|
435
|
-
rubygems_version: 3.
|
436
|
-
signing_key:
|
425
|
+
rubygems_version: 3.6.2
|
437
426
|
specification_version: 4
|
438
427
|
summary: STARCRAFT® II AI API
|
439
428
|
test_files: []
|
@@ -1,33 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
# @private
|
4
|
-
# Patched from: rails/activesupport/lib/active_support/core_ext/kernel/reporting.rb
|
5
|
-
# https://github.com/rails/rails/blob/04972d9b9ef60796dc8f0917817b5392d61fcf09/activesupport/lib/active_support/core_ext/kernel/reporting.rb#L26
|
6
|
-
|
7
|
-
# Kernel extensions
|
8
|
-
module Kernel
|
9
|
-
module_function
|
10
|
-
|
11
|
-
# Sets $VERBOSE to +nil+ for the duration of the block and back to its original
|
12
|
-
# value afterwards.
|
13
|
-
#
|
14
|
-
# silence_warnings do
|
15
|
-
# value = noisy_call # no warning voiced
|
16
|
-
# end
|
17
|
-
#
|
18
|
-
# noisy_call # warning voiced
|
19
|
-
def silence_warnings(&)
|
20
|
-
with_warnings(nil, &)
|
21
|
-
end
|
22
|
-
|
23
|
-
# Sets $VERBOSE for the duration of the block and back to its original
|
24
|
-
# value afterwards.
|
25
|
-
# noinspection RubyGlobalVariableNamingConvention
|
26
|
-
def with_warnings(flag)
|
27
|
-
old_verbose = $VERBOSE
|
28
|
-
$VERBOSE = flag
|
29
|
-
yield
|
30
|
-
ensure
|
31
|
-
$VERBOSE = old_verbose
|
32
|
-
end
|
33
|
-
end
|