Class: LibSL::SimulatorViewerTimeMessagePacket

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



3624
3625
3626
# File 'lib/_packets.rb', line 3624

def self.packet_id()
  4294901910
end

Instance Method Details

#build_structureObject



3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
# File 'lib/_packets.rb', line 3628

def build_structure()
  @blocks = [
    [:TimeInfo, Block.new([
      [:UsecSinceStart, :LLU64],
      [:SecPerDay, :LLU32],
      [:SecPerYear, :LLU32],
      [:SunDirection, :LLVector3],
      [:SunPhase, :LLF32],
      [:SunAngVelocity, :LLVector3]
    ])]
  ]
end