Module: RuneRb::Network::RS377::PublicChatMessage

Includes:
System::Log
Defined in:
app/network/protocol/rs377/incoming/chat.rb

Overview

Since:

  • 0.9.3

Instance Method Summary collapse

Methods included from System::Log

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

Instance Method Details

#parse(context) ⇒ Object

Parses the PublicChatMessage

Parameters:

Since:

  • 0.9.3


6
7
8
# File 'app/network/protocol/rs377/incoming/chat.rb', line 6

def parse(context)
  context.update(:chat, message: RuneRb::Game::Entity::ChatMessage.new(read_byte(false, :ADD), read_byte(false, :NEGATE), self))
end