Class: VaultCoh::Commands::Unknown
- Inherits:
-
Object
- Object
- VaultCoh::Commands::Unknown
- Defined in:
- lib/vault_coh/commands/unknown.rb
Overview
Data object representing an unknown (i.e. not yet handled) command.
Instance Method Summary collapse
-
#action_type ⇒ Integer
This value identifies the type of the command (build, move, stop, etc.).
-
#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
#action_type ⇒ Integer
This value identifies the type of the command (build, move, stop, etc.). Commands with similar functionality can be grouped by this value.
24 |
# File 'lib/vault_coh/commands/unknown.rb', line 24 def action_type; 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/unknown.rb', line 17 def tick; end |
#to_h ⇒ Hash
Returns a hash representation of the object.
29 |
# File 'lib/vault_coh/commands/unknown.rb', line 29 def to_h; end |