Class: LibSL::LandStatReplyPacket

Inherits:
Packet
  • Object
show all
Defined in:
lib/_packets.rb

Instance Attribute Summary

Attributes inherited from Packet

#acks, #acks_flag, #reliable_flag, #resent_count, #resent_flag, #sequence_number, #zero_coded_flag

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Packet

decode, #decode_msg, #encode, #encode_msg, #initialize, #method_missing, zero_decode

Constructor Details

This class inherits a constructor from LibSL::Packet

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class LibSL::Packet

Class Method Details

.packet_idObject



9740
9741
9742
# File 'lib/_packets.rb', line 9740

def self.packet_id()
  4294902182
end

Instance Method Details

#build_structureObject



9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
# File 'lib/_packets.rb', line 9744

def build_structure()
  @blocks = [
    [:RequestData, Block.new([
      [:ReportType, :LLU32],
      [:RequestFlags, :LLU32],
      [:TotalObjectCount, :LLU32]
    ])],
    [:ReportData, VariableBlockCollection.new([
      [:TaskLocalID, :LLU32],
      [:TaskID, :LLUUID],
      [:LocationX, :LLF32],
      [:LocationY, :LLF32],
      [:LocationZ, :LLF32],
      [:Score, :LLF32],
      [:TaskName, :LLVariable1],
      [:OwnerName, :LLVariable1]
    ])]
  ]
end