Class: LibSL::UpdateAttachmentPacket

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



7762
7763
7764
# File 'lib/_packets.rb', line 7762

def self.packet_id()
	4294902091
end

Instance Method Details

#build_structureObject



7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
# File 'lib/_packets.rb', line 7766

def build_structure()
	@blocks = [
		[:AgentData, Block.new([
			[:AgentID, :LLUUID],
			[:SessionID, :LLUUID]
		])],
		[:AttachmentBlock, Block.new([
			[:AttachmentPoint, :LLU8]
		])],
		[:OperationData, Block.new([
			[:AddItem, :LLBool],
			[:UseExistingAsset, :LLBool]
		])],
		[:InventoryData, Block.new([
			[:ItemID, :LLUUID],
			[:FolderID, :LLUUID],
			[:CreatorID, :LLUUID],
			[:OwnerID, :LLUUID],
			[:GroupID, :LLUUID],
			[:BaseMask, :LLU32],
			[:OwnerMask, :LLU32],
			[:GroupMask, :LLU32],
			[:EveryoneMask, :LLU32],
			[:NextOwnerMask, :LLU32],
			[:GroupOwned, :LLBool],
			[:AssetID, :LLUUID],
			[:Type, :LLS8],
			[:InvType, :LLS8],
			[:Flags, :LLU32],
			[:SaleType, :LLU8],
			[:SalePrice, :LLS32],
			[:Name, :LLVariable1],
			[:Description, :LLVariable1],
			[:CreationDate, :LLS32],
			[:CRC, :LLU32]
		])]
	]
end