Class: LibSL::ObjectGrabUpdatePacket

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



2679
2680
2681
# File 'lib/_packets.rb', line 2679

def self.packet_id()
  4294901878
end

Instance Method Details

#build_structureObject



2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
# File 'lib/_packets.rb', line 2683

def build_structure()
  @blocks = [
    [:AgentData, Block.new([
      [:AgentID, :LLUUID],
      [:SessionID, :LLUUID]
    ])],
    [:ObjectData, Block.new([
      [:ObjectID, :LLUUID],
      [:GrabOffsetInitial, :LLVector3],
      [:GrabPosition, :LLVector3],
      [:TimeSinceLast, :LLU32]
    ])],
    [:SurfaceInfo, VariableBlockCollection.new([
      [:UVCoord, :LLVector3],
      [:STCoord, :LLVector3],
      [:FaceIndex, :LLS32],
      [:Position, :LLVector3],
      [:Normal, :LLVector3],
      [:Binormal, :LLVector3]
    ])]
  ]
end