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
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.
|
4
|
+
version: 0.3.0
|
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-
|
11
|
+
date: 2024-11-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: async
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '2.
|
19
|
+
version: '2.21'
|
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.21'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: async-websocket
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -38,20 +38,6 @@ dependencies:
|
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
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
41
|
- !ruby/object:Gem::Dependency
|
56
42
|
name: async-process
|
57
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -122,6 +108,20 @@ dependencies:
|
|
122
108
|
- - "~>"
|
123
109
|
- !ruby/object:Gem::Version
|
124
110
|
version: '0.29'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: csv
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :runtime
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: sc2ai-kdtree
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
@@ -356,7 +356,6 @@ files:
|
|
356
356
|
- lib/sc2ai/local_play/match.rb
|
357
357
|
- lib/sc2ai/overrides/array.rb
|
358
358
|
- lib/sc2ai/overrides/async/process/child.rb
|
359
|
-
- lib/sc2ai/overrides/kernel.rb
|
360
359
|
- lib/sc2ai/paths.rb
|
361
360
|
- lib/sc2ai/player.rb
|
362
361
|
- lib/sc2ai/player/actions.rb
|
@@ -372,6 +371,7 @@ files:
|
|
372
371
|
- lib/sc2ai/protocol/debug_pb.rb
|
373
372
|
- lib/sc2ai/protocol/error_pb.rb
|
374
373
|
- lib/sc2ai/protocol/extensions/ability_remapable.rb
|
374
|
+
- lib/sc2ai/protocol/extensions/action.rb
|
375
375
|
- lib/sc2ai/protocol/extensions/color.rb
|
376
376
|
- lib/sc2ai/protocol/extensions/point.rb
|
377
377
|
- lib/sc2ai/protocol/extensions/point_2_d.rb
|
@@ -407,7 +407,6 @@ files:
|
|
407
407
|
- lib/templates/new/boot.rb.tt
|
408
408
|
- lib/templates/new/my_bot.rb.tt
|
409
409
|
- lib/templates/new/run_example_match.rb.tt
|
410
|
-
- sig/minaswan.rbs
|
411
410
|
- sig/sc2ai.rbs
|
412
411
|
homepage: https://sc2ai.pages.dev/
|
413
412
|
licenses:
|
@@ -417,7 +416,13 @@ metadata:
|
|
417
416
|
homepage_uri: https://sc2ai.pages.dev/
|
418
417
|
source_code_uri: https://gitlab.com/dysonreturns/sc2ai
|
419
418
|
changelog_uri: https://sc2ai.pages.dev/file.CHANGELOG
|
420
|
-
post_install_message:
|
419
|
+
post_install_message: "BREAKING CHANGE: We upgraded to protoboeuf.\nApi constants
|
420
|
+
are now capitalized, i.e.\n\e[1;91m:Air\e[0m is now \e[1;92m:AIR\e[0m, \e[1;91mApi::Race::Zerg\e[0m
|
421
|
+
is now \e[1;92mApi::Race::ZERG\e[0m, etc.\nThe mild refactor is worth the speed.\n\n
|
422
|
+
\ %@@% CHECK\n %++++% YOUR\n *+**++ ENUMS!\n %*+#\n
|
423
|
+
\ *@#***%%\n #%@%*++%%%%%\n %%%@%%%%%%%%%%\n %%@%%%%%%%%@%%\n ++*@@%%%%%%@+**\n
|
424
|
+
\ *+*%@@%%%%%%@#**\n *+*@@%%%%%%%@ **\n *+@@@@%%%%@@*+\n *+@@@@@@@@*+\n %@++++%@@+*%#\n
|
425
|
+
\ %@@@***@#++*%%%\n %%%@@@@++@@@@@@%#\n @@@@@ @@@%%\n@@@@@ @@@@=\n"
|
421
426
|
rdoc_options: []
|
422
427
|
require_paths:
|
423
428
|
- lib
|
@@ -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
|