vault_coh 5.0.1 → 6.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Cargo.lock +2 -2
- data/Gemfile +2 -2
- data/Gemfile.lock +18 -17
- data/README.md +3 -3
- data/ext/vault_coh/Cargo.toml +1 -1
- data/ext/vault_coh/src/hash.rs +69 -42
- data/ext/vault_coh/src/lib.rs +0 -70
- data/lib/vault_coh/command.rb +0 -11
- data/lib/vault_coh/player.rb +1 -3
- data/lib/vault_coh/version.rb +1 -1
- metadata +3 -16
- data/lib/vault_coh/commands/build_global_upgrade.rb +0 -34
- data/lib/vault_coh/commands/build_global_upgrade_command.rb +0 -9
- data/lib/vault_coh/commands/build_squad.rb +0 -34
- data/lib/vault_coh/commands/build_squad_command.rb +0 -9
- data/lib/vault_coh/commands/select_battlegroup.rb +0 -35
- data/lib/vault_coh/commands/select_battlegroup_ability.rb +0 -35
- data/lib/vault_coh/commands/select_battlegroup_ability_command.rb +0 -9
- data/lib/vault_coh/commands/select_battlegroup_command.rb +0 -9
- data/lib/vault_coh/commands/unknown.rb +0 -32
- data/lib/vault_coh/commands/unknown_command.rb +0 -9
- data/lib/vault_coh/commands/use_battlegroup_ability.rb +0 -35
- data/lib/vault_coh/commands/use_battlegroup_ability_command.rb +0 -9
- data/lib/vault_coh/commands.rb +0 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b761236eb71771fd8c489d2867ae4ec1b77361e0834ae8636ea86e492994ea1c
|
4
|
+
data.tar.gz: b600e4662c61af2a3ccbe1104de63ad506909de5daaff9d0171ecbe397862ce2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 033d7db015b8ff4cfc49c93b71d47d625790766844c2b3693faf17dcf1ece45bde53772622f9a4e223845166327cdbbc87891cdfd79ff6b9b6eba5a5962e9da6
|
7
|
+
data.tar.gz: 5c61de1481d40eaf667a9b70cc67ab1e93fe50a7b8f6853e79e58aacda8d48a21d4daa1540de150899d4fd359b1805eabc6273882f8fdefeae1cc00b68ca2d07
|
data/Cargo.lock
CHANGED
@@ -371,9 +371,9 @@ dependencies = [
|
|
371
371
|
|
372
372
|
[[package]]
|
373
373
|
name = "vault"
|
374
|
-
version = "
|
374
|
+
version = "9.0.0"
|
375
375
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
376
|
-
checksum = "
|
376
|
+
checksum = "771f7db565a750b784bea91fc8cf5190fca40a1f77c791e05d5a5e4168bfff59"
|
377
377
|
dependencies = [
|
378
378
|
"byteorder",
|
379
379
|
"magnus",
|
data/Gemfile
CHANGED
@@ -5,11 +5,11 @@ source 'https://rubygems.org'
|
|
5
5
|
# Specify your gem's dependencies in vault_coh.gemspec
|
6
6
|
gemspec
|
7
7
|
|
8
|
-
gem 'rake', '~> 13.
|
8
|
+
gem 'rake', '~> 13.2'
|
9
9
|
|
10
10
|
gem 'rake-compiler'
|
11
11
|
gem 'rb_sys'
|
12
12
|
|
13
13
|
gem 'rspec', '~> 3.13'
|
14
14
|
|
15
|
-
gem 'rubocop', '~> 1.
|
15
|
+
gem 'rubocop', '~> 1.64'
|
data/Gemfile.lock
CHANGED
@@ -1,27 +1,28 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
vault_coh (
|
4
|
+
vault_coh (6.0.0)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
8
8
|
specs:
|
9
9
|
ast (2.4.2)
|
10
10
|
diff-lcs (1.5.1)
|
11
|
-
json (2.7.
|
11
|
+
json (2.7.2)
|
12
12
|
language_server-protocol (3.17.0.3)
|
13
13
|
parallel (1.24.0)
|
14
|
-
parser (3.3.0
|
14
|
+
parser (3.3.2.0)
|
15
15
|
ast (~> 2.4.1)
|
16
16
|
racc
|
17
|
-
racc (1.
|
17
|
+
racc (1.8.0)
|
18
18
|
rainbow (3.1.1)
|
19
|
-
rake (13.1
|
19
|
+
rake (13.2.1)
|
20
20
|
rake-compiler (1.2.7)
|
21
21
|
rake
|
22
|
-
rb_sys (0.9.
|
23
|
-
regexp_parser (2.9.
|
24
|
-
rexml (3.2.
|
22
|
+
rb_sys (0.9.97)
|
23
|
+
regexp_parser (2.9.2)
|
24
|
+
rexml (3.2.8)
|
25
|
+
strscan (>= 3.0.9)
|
25
26
|
rspec (3.13.0)
|
26
27
|
rspec-core (~> 3.13.0)
|
27
28
|
rspec-expectations (~> 3.13.0)
|
@@ -31,11 +32,11 @@ GEM
|
|
31
32
|
rspec-expectations (3.13.0)
|
32
33
|
diff-lcs (>= 1.2.0, < 2.0)
|
33
34
|
rspec-support (~> 3.13.0)
|
34
|
-
rspec-mocks (3.13.
|
35
|
+
rspec-mocks (3.13.1)
|
35
36
|
diff-lcs (>= 1.2.0, < 2.0)
|
36
37
|
rspec-support (~> 3.13.0)
|
37
|
-
rspec-support (3.13.
|
38
|
-
rubocop (1.
|
38
|
+
rspec-support (3.13.1)
|
39
|
+
rubocop (1.64.1)
|
39
40
|
json (~> 2.3)
|
40
41
|
language_server-protocol (>= 3.17.0)
|
41
42
|
parallel (~> 1.10)
|
@@ -43,25 +44,25 @@ GEM
|
|
43
44
|
rainbow (>= 2.2.2, < 4.0)
|
44
45
|
regexp_parser (>= 1.8, < 3.0)
|
45
46
|
rexml (>= 3.2.5, < 4.0)
|
46
|
-
rubocop-ast (>= 1.
|
47
|
+
rubocop-ast (>= 1.31.1, < 2.0)
|
47
48
|
ruby-progressbar (~> 1.7)
|
48
49
|
unicode-display_width (>= 2.4.0, < 3.0)
|
49
|
-
rubocop-ast (1.
|
50
|
-
parser (>= 3.
|
50
|
+
rubocop-ast (1.31.3)
|
51
|
+
parser (>= 3.3.1.0)
|
51
52
|
ruby-progressbar (1.13.0)
|
53
|
+
strscan (3.1.0)
|
52
54
|
unicode-display_width (2.5.0)
|
53
55
|
|
54
56
|
PLATFORMS
|
55
57
|
arm64-darwin-21
|
56
|
-
arm64-darwin-23
|
57
58
|
x86_64-linux
|
58
59
|
|
59
60
|
DEPENDENCIES
|
60
|
-
rake (~> 13.
|
61
|
+
rake (~> 13.2)
|
61
62
|
rake-compiler
|
62
63
|
rb_sys
|
63
64
|
rspec (~> 3.13)
|
64
|
-
rubocop (~> 1.
|
65
|
+
rubocop (~> 1.64)
|
65
66
|
vault_coh!
|
66
67
|
|
67
68
|
BUNDLED WITH
|
data/README.md
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
# Vault
|
2
2
|
|
3
|
-
[![Gem Version](https://badge.fury.io/rb/vault_coh.svg)](https://badge.fury.io/rb/vault_coh) [![Documentation](https://img.shields.io/badge/View-Documentation-blue.svg)](https://rubydoc.info/github/ryantaylor/vault-rb/
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/vault_coh.svg)](https://badge.fury.io/rb/vault_coh) [![Documentation](https://img.shields.io/badge/View-Documentation-blue.svg)](https://rubydoc.info/github/ryantaylor/vault-rb/v6.0.0)
|
4
4
|
|
5
5
|
A native Ruby client wrapper for the [vault](https://github.com/ryantaylor/vault) Company of Heroes replay parser, integrated via a Rust native extension.
|
6
6
|
|
7
7
|
## Installation
|
8
8
|
|
9
|
-
First, make sure you have a relatively recent version of the Rust toolchain installed (minimum supported Rust version for `vault` is 1.
|
9
|
+
First, make sure you have a relatively recent version of the Rust toolchain installed (minimum supported Rust version for `vault` is 1.66.0). You can install Rust easily using [rustup](https://rustup.rs/).
|
10
10
|
|
11
11
|
Then you can add to Gemfile:
|
12
12
|
```
|
@@ -24,7 +24,7 @@ bytes = File.read('/path/to/replay.rec').unpack('C*')
|
|
24
24
|
replay = VaultCoh::Replay.from_bytes(bytes)
|
25
25
|
puts replay.version
|
26
26
|
```
|
27
|
-
All information available from parsing can be found in the [documentation](https://rubydoc.info/github/ryantaylor/vault-rb/
|
27
|
+
All information available from parsing can be found in the [documentation](https://rubydoc.info/github/ryantaylor/vault-rb/v6.0.0).
|
28
28
|
|
29
29
|
## Contributing
|
30
30
|
|
data/ext/vault_coh/Cargo.toml
CHANGED
data/ext/vault_coh/src/hash.rs
CHANGED
@@ -1,8 +1,4 @@
|
|
1
|
-
use magnus::Value;
|
2
|
-
use vault::commands::{
|
3
|
-
BuildGlobalUpgrade, BuildSquad, SelectBattlegroup, SelectBattlegroupAbility, Unknown,
|
4
|
-
UseBattlegroupAbility,
|
5
|
-
};
|
1
|
+
use magnus::{value::ReprValue, RHash, RString, Value};
|
6
2
|
use vault::{Command, Map, Message, Player, Replay};
|
7
3
|
|
8
4
|
pub trait HashExt {
|
@@ -35,42 +31,73 @@ impl HashExt for Message {
|
|
35
31
|
|
36
32
|
impl HashExt for Command {
|
37
33
|
fn to_h(&self) -> Value {
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
}
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
34
|
+
match self {
|
35
|
+
Command::BuildGlobalUpgrade(data) => {
|
36
|
+
let hash: RHash = serde_magnus::serialize(data).unwrap();
|
37
|
+
hash.aset("type", RString::new("BuildGlobalUpgrade"))
|
38
|
+
.unwrap();
|
39
|
+
hash.aset("action_type", RString::new("CMD_Upgrade"))
|
40
|
+
.unwrap();
|
41
|
+
hash.as_value()
|
42
|
+
}
|
43
|
+
Command::BuildSquad(data) => {
|
44
|
+
let hash: RHash = serde_magnus::serialize(data).unwrap();
|
45
|
+
hash.aset("type", RString::new("BuildSquad")).unwrap();
|
46
|
+
hash.aset("action_type", RString::new("CMD_BuildSquad"))
|
47
|
+
.unwrap();
|
48
|
+
hash.as_value()
|
49
|
+
}
|
50
|
+
Command::CancelConstruction(data) => {
|
51
|
+
let hash: RHash = serde_magnus::serialize(data).unwrap();
|
52
|
+
hash.aset("type", RString::new("CancelConstruction"))
|
53
|
+
.unwrap();
|
54
|
+
hash.aset("action_type", RString::new("CMD_CancelConstruction"))
|
55
|
+
.unwrap();
|
56
|
+
hash.as_value()
|
57
|
+
}
|
58
|
+
Command::CancelProduction(data) => {
|
59
|
+
let hash: RHash = serde_magnus::serialize(data).unwrap();
|
60
|
+
hash.aset("type", RString::new("CancelProduction")).unwrap();
|
61
|
+
hash.aset("action_type", RString::new("CMD_CancelProduction"))
|
62
|
+
.unwrap();
|
63
|
+
hash.as_value()
|
64
|
+
}
|
65
|
+
Command::SelectBattlegroup(data) => {
|
66
|
+
let hash: RHash = serde_magnus::serialize(data).unwrap();
|
67
|
+
hash.aset("type", RString::new("SelectBattlegroup"))
|
68
|
+
.unwrap();
|
69
|
+
hash.aset("action_type", RString::new("PCMD_InstantUpgrade"))
|
70
|
+
.unwrap();
|
71
|
+
hash.as_value()
|
72
|
+
}
|
73
|
+
Command::SelectBattlegroupAbility(data) => {
|
74
|
+
let hash: RHash = serde_magnus::serialize(data).unwrap();
|
75
|
+
hash.aset("type", RString::new("SelectBattlegroupAbility"))
|
76
|
+
.unwrap();
|
77
|
+
hash.aset("action_type", RString::new("PCMD_TentativeUpgrade"))
|
78
|
+
.unwrap();
|
79
|
+
hash.as_value()
|
80
|
+
}
|
81
|
+
Command::Unknown(data) => {
|
82
|
+
let hash: RHash = serde_magnus::serialize(data).unwrap();
|
83
|
+
hash.aset("type", RString::new("Unknown")).unwrap();
|
84
|
+
hash.as_value()
|
85
|
+
}
|
86
|
+
Command::UseAbility(data) => {
|
87
|
+
let hash: RHash = serde_magnus::serialize(data).unwrap();
|
88
|
+
hash.aset("type", RString::new("UseAbility")).unwrap();
|
89
|
+
hash.aset("action_type", RString::new("CMD_Ability"))
|
90
|
+
.unwrap();
|
91
|
+
hash.as_value()
|
92
|
+
}
|
93
|
+
Command::UseBattlegroupAbility(data) => {
|
94
|
+
let hash: RHash = serde_magnus::serialize(data).unwrap();
|
95
|
+
hash.aset("type", RString::new("UseBattlegroupAbility"))
|
96
|
+
.unwrap();
|
97
|
+
hash.aset("action_type", RString::new("PCMD_Ability"))
|
98
|
+
.unwrap();
|
99
|
+
hash.as_value()
|
100
|
+
}
|
101
|
+
}
|
75
102
|
}
|
76
103
|
}
|
data/ext/vault_coh/src/lib.rs
CHANGED
@@ -2,10 +2,6 @@ mod hash;
|
|
2
2
|
|
3
3
|
use crate::hash::HashExt;
|
4
4
|
use magnus::{class, define_module, exception, function, method, prelude::*, Error};
|
5
|
-
use vault::commands::{
|
6
|
-
BuildGlobalUpgrade, BuildSquad, SelectBattlegroup, SelectBattlegroupAbility, Unknown,
|
7
|
-
UseBattlegroupAbility,
|
8
|
-
};
|
9
5
|
use vault::{Command, Map, Message, Player, Replay};
|
10
6
|
|
11
7
|
#[magnus::init]
|
@@ -67,72 +63,6 @@ fn init() -> Result<(), Error> {
|
|
67
63
|
let command = module.define_class("Command", class::object())?;
|
68
64
|
command.define_method("to_h", method!(Command::to_h, 0))?;
|
69
65
|
|
70
|
-
let commands_module = module.define_module("Commands")?;
|
71
|
-
|
72
|
-
let build_global_upgrade_command =
|
73
|
-
commands_module.define_class("BuildGlobalUpgradeCommand", command)?;
|
74
|
-
build_global_upgrade_command
|
75
|
-
.define_method("value", method!(Command::extract_build_global_upgrade, 0))?;
|
76
|
-
|
77
|
-
let build_global_upgrade =
|
78
|
-
commands_module.define_class("BuildGlobalUpgrade", class::object())?;
|
79
|
-
build_global_upgrade.define_method("tick", method!(BuildGlobalUpgrade::tick, 0))?;
|
80
|
-
build_global_upgrade.define_method("pbgid", method!(BuildGlobalUpgrade::pbgid, 0))?;
|
81
|
-
build_global_upgrade.define_method("to_h", method!(BuildGlobalUpgrade::to_h, 0))?;
|
82
|
-
|
83
|
-
let build_squad_command = commands_module.define_class("BuildSquadCommand", command)?;
|
84
|
-
build_squad_command.define_method("value", method!(Command::extract_build_squad, 0))?;
|
85
|
-
|
86
|
-
let build_squad = commands_module.define_class("BuildSquad", class::object())?;
|
87
|
-
build_squad.define_method("tick", method!(BuildSquad::tick, 0))?;
|
88
|
-
build_squad.define_method("pbgid", method!(BuildSquad::pbgid, 0))?;
|
89
|
-
build_squad.define_method("to_h", method!(BuildSquad::to_h, 0))?;
|
90
|
-
|
91
|
-
let select_battlegroup_command =
|
92
|
-
commands_module.define_class("SelectBattlegroupCommand", command)?;
|
93
|
-
select_battlegroup_command
|
94
|
-
.define_method("value", method!(Command::extract_select_battlegroup, 0))?;
|
95
|
-
|
96
|
-
let select_battlegroup = commands_module.define_class("SelectBattlegroup", class::object())?;
|
97
|
-
select_battlegroup.define_method("tick", method!(SelectBattlegroup::tick, 0))?;
|
98
|
-
select_battlegroup.define_method("pbgid", method!(SelectBattlegroup::pbgid, 0))?;
|
99
|
-
select_battlegroup.define_method("to_h", method!(SelectBattlegroup::to_h, 0))?;
|
100
|
-
|
101
|
-
let select_battlegroup_ability_command =
|
102
|
-
commands_module.define_class("SelectBattlegroupAbilityCommand", command)?;
|
103
|
-
select_battlegroup_ability_command.define_method(
|
104
|
-
"value",
|
105
|
-
method!(Command::extract_select_battlegroup_ability, 0),
|
106
|
-
)?;
|
107
|
-
|
108
|
-
let select_battlegroup_ability =
|
109
|
-
commands_module.define_class("SelectBattlegroupAbility", class::object())?;
|
110
|
-
select_battlegroup_ability.define_method("tick", method!(SelectBattlegroupAbility::tick, 0))?;
|
111
|
-
select_battlegroup_ability
|
112
|
-
.define_method("pbgid", method!(SelectBattlegroupAbility::pbgid, 0))?;
|
113
|
-
select_battlegroup_ability.define_method("to_h", method!(SelectBattlegroupAbility::to_h, 0))?;
|
114
|
-
|
115
|
-
let use_battlegroup_ability_command =
|
116
|
-
commands_module.define_class("UseBattlegroupAbilityCommand", command)?;
|
117
|
-
use_battlegroup_ability_command.define_method(
|
118
|
-
"value",
|
119
|
-
method!(Command::extract_use_battlegroup_ability, 0),
|
120
|
-
)?;
|
121
|
-
|
122
|
-
let use_battlegroup_ability =
|
123
|
-
commands_module.define_class("UseBattlegroupAbility", class::object())?;
|
124
|
-
use_battlegroup_ability.define_method("tick", method!(UseBattlegroupAbility::tick, 0))?;
|
125
|
-
use_battlegroup_ability.define_method("pbgid", method!(UseBattlegroupAbility::pbgid, 0))?;
|
126
|
-
use_battlegroup_ability.define_method("to_h", method!(UseBattlegroupAbility::to_h, 0))?;
|
127
|
-
|
128
|
-
let unknown_command = commands_module.define_class("UnknownCommand", command)?;
|
129
|
-
unknown_command.define_method("value", method!(Command::extract_unknown, 0))?;
|
130
|
-
|
131
|
-
let unknown = commands_module.define_class("Unknown", class::object())?;
|
132
|
-
unknown.define_method("tick", method!(Unknown::tick, 0))?;
|
133
|
-
unknown.define_method("action_type", method!(Unknown::action_type, 0))?;
|
134
|
-
unknown.define_method("to_h", method!(Unknown::to_h, 0))?;
|
135
|
-
|
136
66
|
Ok(())
|
137
67
|
}
|
138
68
|
|
data/lib/vault_coh/command.rb
CHANGED
@@ -3,17 +3,6 @@
|
|
3
3
|
module VaultCoh
|
4
4
|
# Base class that all command wrappers extend.
|
5
5
|
class Command
|
6
|
-
# Data object that contains information specific to the
|
7
|
-
# type of command it represents.
|
8
|
-
#
|
9
|
-
# @return [Commands::BuildGlobalUpgrade |
|
10
|
-
# Commands::BuildSquad |
|
11
|
-
# Commands::SelectBattlegroup |
|
12
|
-
# Commands::SelectBattlegroupAbility |
|
13
|
-
# Commands::UseBattlegroupAbility |
|
14
|
-
# Commands::Unknown]
|
15
|
-
def value; end
|
16
|
-
|
17
6
|
# Returns a hash representation of the object.
|
18
7
|
#
|
19
8
|
# @return [Hash]
|
data/lib/vault_coh/player.rb
CHANGED
@@ -75,9 +75,7 @@ module VaultCoh
|
|
75
75
|
# or use of battlegroups and their abilities. Sorted chronologically
|
76
76
|
# from first to last.
|
77
77
|
#
|
78
|
-
# @return [Array<
|
79
|
-
# Commands::SelectBattlegroupAbilityCommand |
|
80
|
-
# Commands::UseBattlegroupAbilityCommand>]
|
78
|
+
# @return [Array<Command>]
|
81
79
|
def battlegroup_commands; end
|
82
80
|
|
83
81
|
# Returns a hash representation of the object.
|
data/lib/vault_coh/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vault_coh
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 6.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ryantaylor
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-06-03 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Company of Heroes replay parsing in Ruby using the vault parsing library
|
14
14
|
via a Rust native extension.
|
@@ -36,19 +36,6 @@ files:
|
|
36
36
|
- ext/vault_coh/src/lib.rs
|
37
37
|
- lib/vault_coh.rb
|
38
38
|
- lib/vault_coh/command.rb
|
39
|
-
- lib/vault_coh/commands.rb
|
40
|
-
- lib/vault_coh/commands/build_global_upgrade.rb
|
41
|
-
- lib/vault_coh/commands/build_global_upgrade_command.rb
|
42
|
-
- lib/vault_coh/commands/build_squad.rb
|
43
|
-
- lib/vault_coh/commands/build_squad_command.rb
|
44
|
-
- lib/vault_coh/commands/select_battlegroup.rb
|
45
|
-
- lib/vault_coh/commands/select_battlegroup_ability.rb
|
46
|
-
- lib/vault_coh/commands/select_battlegroup_ability_command.rb
|
47
|
-
- lib/vault_coh/commands/select_battlegroup_command.rb
|
48
|
-
- lib/vault_coh/commands/unknown.rb
|
49
|
-
- lib/vault_coh/commands/unknown_command.rb
|
50
|
-
- lib/vault_coh/commands/use_battlegroup_ability.rb
|
51
|
-
- lib/vault_coh/commands/use_battlegroup_ability_command.rb
|
52
39
|
- lib/vault_coh/faction.rb
|
53
40
|
- lib/vault_coh/game_type.rb
|
54
41
|
- lib/vault_coh/map.rb
|
@@ -82,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
82
69
|
- !ruby/object:Gem::Version
|
83
70
|
version: 3.3.11
|
84
71
|
requirements: []
|
85
|
-
rubygems_version: 3.
|
72
|
+
rubygems_version: 3.5.11
|
86
73
|
signing_key:
|
87
74
|
specification_version: 4
|
88
75
|
summary: CoH3 replay parsing in Ruby with Rust
|
@@ -1,34 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module VaultCoh
|
4
|
-
module Commands
|
5
|
-
# Data object representing information parsed from an
|
6
|
-
# upgrade construction command.
|
7
|
-
class BuildGlobalUpgrade
|
8
|
-
# This value is the tick at which the command was
|
9
|
-
# found while parsing the replay, which represents
|
10
|
-
# the time in the replay at which it was executed.
|
11
|
-
# Because CoH3's engine runs at 8 ticks per second,
|
12
|
-
# you can divide this value by 8 to get the number
|
13
|
-
# of seconds since the replay began, which will tell
|
14
|
-
# you when this command was executed.
|
15
|
-
#
|
16
|
-
# @return [Integer] unsigned, 32 bits
|
17
|
-
def tick; end
|
18
|
-
|
19
|
-
# Internal ID that uniquely identifies the upgrade being
|
20
|
-
# built. This value can be matched to CoH3 attribute
|
21
|
-
# files in order to determine the upgrade being built.
|
22
|
-
# Note that, while rare, it is possible that this value
|
23
|
-
# may change between patches for the same upgrade.
|
24
|
-
#
|
25
|
-
# @return [Integer] unsigned, 32 bits
|
26
|
-
def pbgid; end
|
27
|
-
|
28
|
-
# Returns a hash representation of the object.
|
29
|
-
#
|
30
|
-
# @return [Hash]
|
31
|
-
def to_h; end
|
32
|
-
end
|
33
|
-
end
|
34
|
-
end
|
@@ -1,34 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module VaultCoh
|
4
|
-
module Commands
|
5
|
-
# Data object representing information parsed from a
|
6
|
-
# unit construction command.
|
7
|
-
class BuildSquad
|
8
|
-
# This value is the tick at which the command was
|
9
|
-
# found while parsing the replay, which represents
|
10
|
-
# the time in the replay at which it was executed.
|
11
|
-
# Because CoH3's engine runs at 8 ticks per second,
|
12
|
-
# you can divide this value by 8 to get the number
|
13
|
-
# of seconds since the replay began, which will tell
|
14
|
-
# you when this command was executed.
|
15
|
-
#
|
16
|
-
# @return [Integer] unsigned, 32 bits
|
17
|
-
def tick; end
|
18
|
-
|
19
|
-
# Internal ID that uniquely identifies the unit being
|
20
|
-
# built. This value can be matched to CoH3 attribute
|
21
|
-
# files in order to determine the unit being built.
|
22
|
-
# Note that, while rare, it is possible that this value
|
23
|
-
# may change between patches for the same unit.
|
24
|
-
#
|
25
|
-
# @return [Integer] unsigned, 32 bits
|
26
|
-
def pbgid; end
|
27
|
-
|
28
|
-
# Returns a hash representation of the object.
|
29
|
-
#
|
30
|
-
# @return [Hash]
|
31
|
-
def to_h; end
|
32
|
-
end
|
33
|
-
end
|
34
|
-
end
|
@@ -1,35 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module VaultCoh
|
4
|
-
module Commands
|
5
|
-
# Data object representing information parsed from a
|
6
|
-
# battlegroup selection command.
|
7
|
-
class SelectBattlegroup
|
8
|
-
# This value is the tick at which the command was
|
9
|
-
# found while parsing the replay, which represents
|
10
|
-
# the time in the replay at which it was executed.
|
11
|
-
# Because CoH3's engine runs at 8 ticks per second,
|
12
|
-
# you can divide this value by 8 to get the number
|
13
|
-
# of seconds since the replay began, which will tell
|
14
|
-
# you when this command was executed.
|
15
|
-
#
|
16
|
-
# @return [Integer] unsigned, 32 bits
|
17
|
-
def tick; end
|
18
|
-
|
19
|
-
# Internal ID that uniquely identifies the battlegroup
|
20
|
-
# selected. This value can be matched to CoH3 attribute
|
21
|
-
# files in order to determine the battlegroup being
|
22
|
-
# selected. Note that, while rare, it is possible that
|
23
|
-
# this value may change between patches for the same
|
24
|
-
# battlegroup.
|
25
|
-
#
|
26
|
-
# @return [Integer] unsigned, 32 bits
|
27
|
-
def pbgid; end
|
28
|
-
|
29
|
-
# Returns a hash representation of the object.
|
30
|
-
#
|
31
|
-
# @return [Hash]
|
32
|
-
def to_h; end
|
33
|
-
end
|
34
|
-
end
|
35
|
-
end
|
@@ -1,35 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module VaultCoh
|
4
|
-
module Commands
|
5
|
-
# Data object representing information parsed from a
|
6
|
-
# battlegroup ability selection command.
|
7
|
-
class SelectBattlegroupAbility
|
8
|
-
# This value is the tick at which the command was
|
9
|
-
# found while parsing the replay, which represents
|
10
|
-
# the time in the replay at which it was executed.
|
11
|
-
# Because CoH3's engine runs at 8 ticks per second,
|
12
|
-
# you can divide this value by 8 to get the number
|
13
|
-
# of seconds since the replay began, which will tell
|
14
|
-
# you when this command was executed.
|
15
|
-
#
|
16
|
-
# @return [Integer] unsigned, 32 bits
|
17
|
-
def tick; end
|
18
|
-
|
19
|
-
# Internal ID that uniquely identifies the battlegroup
|
20
|
-
# ability selected. This value can be matched to CoH3
|
21
|
-
# attribute files in order to determine the battlegroup
|
22
|
-
# ability being selected. Note that, while rare, it is
|
23
|
-
# possible that this value may change between patches
|
24
|
-
# for the same battlegroup.
|
25
|
-
#
|
26
|
-
# @return [Integer] unsigned, 32 bits
|
27
|
-
def pbgid; end
|
28
|
-
|
29
|
-
# Returns a hash representation of the object.
|
30
|
-
#
|
31
|
-
# @return [Hash]
|
32
|
-
def to_h; end
|
33
|
-
end
|
34
|
-
end
|
35
|
-
end
|
@@ -1,32 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module VaultCoh
|
4
|
-
module Commands
|
5
|
-
# Data object representing an unknown (i.e. not yet
|
6
|
-
# handled) command.
|
7
|
-
class Unknown
|
8
|
-
# This value is the tick at which the command was
|
9
|
-
# found while parsing the replay, which represents
|
10
|
-
# the time in the replay at which it was executed.
|
11
|
-
# Because CoH3's engine runs at 8 ticks per second,
|
12
|
-
# you can divide this value by 8 to get the number
|
13
|
-
# of seconds since the replay began, which will tell
|
14
|
-
# you when this command was executed.
|
15
|
-
#
|
16
|
-
# @return [Integer] unsigned, 32 bits
|
17
|
-
def tick; end
|
18
|
-
|
19
|
-
# This value identifies the type of the command
|
20
|
-
# (build, move, stop, etc.). Commands with similar
|
21
|
-
# functionality can be grouped by this value.
|
22
|
-
#
|
23
|
-
# @return [Integer] unsigned, 8 bits
|
24
|
-
def action_type; end
|
25
|
-
|
26
|
-
# Returns a hash representation of the object.
|
27
|
-
#
|
28
|
-
# @return [Hash]
|
29
|
-
def to_h; end
|
30
|
-
end
|
31
|
-
end
|
32
|
-
end
|
@@ -1,35 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module VaultCoh
|
4
|
-
module Commands
|
5
|
-
# Data object representing information parsed from a
|
6
|
-
# battlegroup ability usage command.
|
7
|
-
class UseBattlegroupAbility
|
8
|
-
# This value is the tick at which the command was
|
9
|
-
# found while parsing the replay, which represents
|
10
|
-
# the time in the replay at which it was executed.
|
11
|
-
# Because CoH3's engine runs at 8 ticks per second,
|
12
|
-
# you can divide this value by 8 to get the number
|
13
|
-
# of seconds since the replay began, which will tell
|
14
|
-
# you when this command was executed.
|
15
|
-
#
|
16
|
-
# @return [Integer] unsigned, 32 bits
|
17
|
-
def tick; end
|
18
|
-
|
19
|
-
# Internal ID that uniquely identifies the battlegroup
|
20
|
-
# ability used. This value can be matched to CoH3
|
21
|
-
# attribute files in order to determine the battlegroup
|
22
|
-
# ability being used. Note that, while rare, it is
|
23
|
-
# possible that this value may change between patches
|
24
|
-
# for the same battlegroup.
|
25
|
-
#
|
26
|
-
# @return [Integer] unsigned, 32 bits
|
27
|
-
def pbgid; end
|
28
|
-
|
29
|
-
# Returns a hash representation of the object.
|
30
|
-
#
|
31
|
-
# @return [Hash]
|
32
|
-
def to_h; end
|
33
|
-
end
|
34
|
-
end
|
35
|
-
end
|