Class: RuneRb::Network::RS377::SystemTextMessage

Inherits:
Message
  • Object
show all
Defined in:
app/network/protocol/rs377/outgoing/system_text.rb

Overview

Since:

  • 0.9.3

Constant Summary

Constants included from Constants

Constants::BIT_MASK_OUT, Constants::BYTE_MUTATIONS, Constants::BYTE_ORDERS, Constants::BYTE_SIZE, Constants::CONNECTION_TYPES, Constants::LOGIN_RESPONSES, Constants::MESSAGE_SIZES, Constants::PROTOCOL_TEMPLATES, Constants::RW_TYPES, Constants::SIDEBAR_INTERFACES

Instance Attribute Summary

Attributes inherited from Message

#header, #mode

Instance Method Summary collapse

Methods inherited from Message

compile_header, #inspect, #peek, validate

Methods included from System::Log

#class_name, #err, #err!, #log, #log!, #symbolize_file

Constructor Details

#initialize(data) ⇒ SystemTextMessage

Constructs a new SystemTextMessage

Parameters:

  • data (Hash)

    the data for the message.

Since:

  • 0.9.3


7
8
9
10
# File 'app/network/protocol/rs377/outgoing/system_text.rb', line 7

def initialize(data)
  super('w', { op_code: 63 }, :VARIABLE_BYTE)
  write_string(data[:message])
end