Module: GG::PACKET_RECV_MSG

Defined in:
lib/GRuby/GG_packets.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#classObject (readonly)

klasa wiadomości


78
79
80
# File 'lib/GRuby/GG_packets.rb', line 78

def class
  @class
end

#messageObject (readonly)

treść wiadomości


79
80
81
# File 'lib/GRuby/GG_packets.rb', line 79

def message
  @message
end

#senderObject (readonly)

numer nadawcy


75
76
77
# File 'lib/GRuby/GG_packets.rb', line 75

def sender
  @sender
end

#seqObject (readonly)

numer sekwencyjny


76
77
78
# File 'lib/GRuby/GG_packets.rb', line 76

def seq
  @seq
end

#timeObject (readonly)

czas nadania


77
78
79
# File 'lib/GRuby/GG_packets.rb', line 77

def time
  @time
end

Instance Method Details

#fields(data) ⇒ Object


85
86
87
88
89
90
91
92
# File 'lib/GRuby/GG_packets.rb', line 85

def fields(data)
  unpacked = data.unpack 'IIIIZ*'
  @sender,
  @seq,
  @time,
  @class,
  @message = unpacked
end

#typeObject


81
82
83
# File 'lib/GRuby/GG_packets.rb', line 81

def type
  RECV_MSG
end