Class: VaultCoh::Message
- Inherits:
-
Object
- Object
- VaultCoh::Message
- Defined in:
- lib/vault_coh/message.rb
Overview
Representation of a user-sent chat message in a Company of Heroes 3 replay. Messages are collected during command parsing and then associated with the Player instance that sent them. To access, see Player#messages.
Instance Method Summary collapse
-
#message ⇒ String
UTF-16 encoded representation of the message sent by the player.
-
#tick ⇒ Integer
This value is the tick at which the message was found while parsing the replay, which represents the time in the replay at which it was sent.
-
#to_h ⇒ Hash
Returns a hash representation of the object.
Instance Method Details
#message ⇒ String
UTF-16 encoded representation of the message sent by the player.
22 |
# File 'lib/vault_coh/message.rb', line 22 def ; end |
#tick ⇒ Integer
This value is the tick at which the message was found while parsing the replay, which represents the time in the replay at which it was sent. 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 message was sent.
17 |
# File 'lib/vault_coh/message.rb', line 17 def tick; end |
#to_h ⇒ Hash
Returns a hash representation of the object.
27 |
# File 'lib/vault_coh/message.rb', line 27 def to_h; end |