Class: LibSL::ParcelBuyPacket

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



5142
5143
5144
# File 'lib/_packets.rb', line 5142

def self.packet_id()
	4294901973
end

Instance Method Details

#build_structureObject



5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
# File 'lib/_packets.rb', line 5146

def build_structure()
	@blocks = [
		[:AgentData, Block.new([
			[:AgentID, :LLUUID],
			[:SessionID, :LLUUID]
		])],
		[:Data, Block.new([
			[:GroupID, :LLUUID],
			[:IsGroupOwned, :LLBool],
			[:RemoveContribution, :LLBool],
			[:LocalID, :LLS32],
			[:Final, :LLBool]
		])],
		[:ParcelData, Block.new([
			[:Price, :LLS32],
			[:Area, :LLS32]
		])]
	]
end