Class: VaultCoh::Commands::Unknown

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

Overview

Data object representing an unknown (i.e. not yet handled) command.

Instance Method Summary collapse

Instance Method Details

#action_typeInteger

This value identifies the type of the command (build, move, stop, etc.). Commands with similar functionality can be grouped by this value.

Returns:

  • (Integer)

    unsigned, 8 bits



24
# File 'lib/vault_coh/commands/unknown.rb', line 24

def action_type; 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/unknown.rb', line 17

def tick; end

#to_hHash

Returns a hash representation of the object.

Returns:

  • (Hash)


29
# File 'lib/vault_coh/commands/unknown.rb', line 29

def to_h; end