Class: VaultCoh::Commands::SelectBattlegroup

Inherits:
Object
  • Object
show all
Defined in:
lib/vault_coh/commands/select_battlegroup.rb

Overview

Data object representing information parsed from a battlegroup selection command.

Instance Method Summary collapse

Instance Method Details

#pbgidInteger

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.

Returns:

  • (Integer)

    unsigned, 32 bits



27
# File 'lib/vault_coh/commands/select_battlegroup.rb', line 27

def pbgid; end

#tickInteger

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.

Returns:

  • (Integer)

    unsigned, 32 bits



17
# File 'lib/vault_coh/commands/select_battlegroup.rb', line 17

def tick; end

#to_hHash

Returns a hash representation of the object.

Returns:

  • (Hash)


32
# File 'lib/vault_coh/commands/select_battlegroup.rb', line 32

def to_h; end