Module: RuneRb::Network::RS377::WindowFocusMessage

Includes:
System::Log
Defined in:
app/network/protocol/rs377/incoming/focus.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(_) ⇒ Object

Parses the WindowFocusMessage

Since:

  • 0.9.3


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

def parse(_)
  focused = read_byte
  log RuneRb::GLOBAL[:COLOR].blue("Client Focus: #{RuneRb::GLOBAL[:COLOR].cyan(focused.positive? ? '[Focused]' : '[Unfocused]')}!") if RuneRb::GLOBAL[:DEBUG]
end