Module: GG::PACKET_WELCOME

Defined in:
lib/GRuby/GG_packets.rb

Overview

RECV PACKETS #

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#seedObject (readonly)

Returns the value of attribute seed



62
63
64
# File 'lib/GRuby/GG_packets.rb', line 62

def seed
  @seed
end

Instance Method Details

#fields(data) ⇒ Object



68
69
70
71
# File 'lib/GRuby/GG_packets.rb', line 68

def fields(data)
  unpacked = data.unpack 'I'
  @seed = unpacked[0]
end

#typeObject



64
65
66
# File 'lib/GRuby/GG_packets.rb', line 64

def type
  WELCOME
end