Class: VaultCoh::Commands::SelectBattlegroup
- Inherits:
-
Object
- Object
- VaultCoh::Commands::SelectBattlegroup
- Defined in:
- lib/vault_coh/commands/select_battlegroup.rb
Overview
Data object representing information parsed from a battlegroup selection command.
Instance Method Summary collapse
-
#pbgid ⇒ Integer
Internal ID that uniquely identifies the battlegroup selected.
-
#tick ⇒ Integer
This value is the tick at which the command was found while parsing the replay, which represents the time in the replay at which it was executed.
-
#to_h ⇒ Hash
Returns a hash representation of the object.
Instance Method Details
#pbgid ⇒ Integer
Internal ID that uniquely identifies the battlegroup selected. This value can be matched to CoH3 attribute files in order to determine the battlegroup being selected. Note that, while rare, it is possible that this value may change between patches for the same battlegroup.
27 |
# File 'lib/vault_coh/commands/select_battlegroup.rb', line 27 def pbgid; end |
#tick ⇒ Integer
This value is the tick at which the command was found while parsing the replay, which represents the time in the replay at which it was executed. Because CoH3’s engine runs at 8 ticks per second, you can divide this value by 8 to get the number of seconds since the replay began, which will tell you when this command was executed.
17 |
# File 'lib/vault_coh/commands/select_battlegroup.rb', line 17 def tick; end |
#to_h ⇒ Hash
Returns a hash representation of the object.
32 |
# File 'lib/vault_coh/commands/select_battlegroup.rb', line 32 def to_h; end |