Class: VaultCoh::Message

Inherits:
Object
  • Object
show all
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

Instance Method Details

#messageString

UTF-16 encoded representation of the message sent by the player.

Returns:

  • (String)


22
# File 'lib/vault_coh/message.rb', line 22

def message; end

#tickInteger

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.

Returns:

  • (Integer)

    unsigned, 32 bits



17
# File 'lib/vault_coh/message.rb', line 17

def tick; end

#to_hHash

Returns a hash representation of the object.

Returns:

  • (Hash)


27
# File 'lib/vault_coh/message.rb', line 27

def to_h; end