Module: RuneRb::Network::RS317::ContextDesignMessage

Includes:
System::Log
Defined in:
app/network/protocol/rs317/incoming/design.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 ContextDesignMessage

Parameters:

Since:

  • 0.9.3


6
7
8
9
10
11
12
13
# File 'app/network/protocol/rs317/incoming/design.rb', line 6

def parse(context)
  context.appearance.update(gender: read_byte, head: read_byte, beard: read_byte,
                            chest: read_byte, arms: read_byte, hands: read_byte,
                            legs: read_byte, feet: read_byte, hair_color: read_byte,
                            torso_color: read_byte, leg_color: read_byte, feet_color: read_byte,
                            skin_color: read_byte)
  context.update(:state)
end