Class: LibSL::UpdateCreateInventoryItemPacket

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



6349
6350
6351
# File 'lib/_packets.rb', line 6349

def self.packet_id()
	4294902027
end

Instance Method Details

#build_structureObject



6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
# File 'lib/_packets.rb', line 6353

def build_structure()
	@blocks = [
		[:AgentData, Block.new([
			[:AgentID, :LLUUID],
			[:SimApproved, :LLBool],
			[:TransactionID, :LLUUID]
		])],
		[:InventoryData, VariableBlockCollection.new([
			[:ItemID, :LLUUID],
			[:FolderID, :LLUUID],
			[:CallbackID, :LLU32],
			[: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