Class: LibSL::ViewerStatsPacket

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



2958
2959
2960
# File 'lib/_packets.rb', line 2958

def self.packet_id()
	4294901891
end

Instance Method Details

#build_structureObject



2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
# File 'lib/_packets.rb', line 2962

def build_structure()
	@blocks = [
		[:AgentData, Block.new([
			[:AgentID, :LLUUID],
			[:SessionID, :LLUUID],
			[:IP, :LLIPAddress],
			[:StartTime, :LLU32],
			[:RunTime, :LLF32],
			[:SimFPS, :LLF32],
			[:FPS, :LLF32],
			[:AgentsInView, :LLU8],
			[:Ping, :LLF32],
			[:MetersTraveled, :LLF64],
			[:RegionsVisited, :LLS32],
			[:SysRAM, :LLU32],
			[:SysOS, :LLVariable1],
			[:SysCPU, :LLVariable1],
			[:SysGPU, :LLVariable1]
		])],
		[:DownloadTotals, Block.new([
			[:World, :LLU32],
			[:Objects, :LLU32],
			[:Textures, :LLU32]
		])],
		[:NetStats, FixedBlockCollection.new(2, [
			[:Bytes, :LLU32],
			[:Packets, :LLU32],
			[:Compressed, :LLU32],
			[:Savings, :LLU32]
		])],
		[:FailStats, Block.new([
			[:SendPacket, :LLU32],
			[:Dropped, :LLU32],
			[:Resent, :LLU32],
			[:FailedResends, :LLU32],
			[:OffCircuit, :LLU32],
			[:Invalid, :LLU32]
		])],
		[:MiscStats, VariableBlockCollection.new([
			[:Type, :LLU32],
			[:Value, :LLF64]
		])]
	]
end