Class: LibSL::MoneyBalanceReplyPacket

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



7445
7446
7447
# File 'lib/_packets.rb', line 7445

def self.packet_id()
	4294902074
end

Instance Method Details

#build_structureObject



7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
# File 'lib/_packets.rb', line 7449

def build_structure()
	@blocks = [
		[:MoneyData, Block.new([
			[:AgentID, :LLUUID],
			[:TransactionID, :LLUUID],
			[:TransactionSuccess, :LLBool],
			[:MoneyBalance, :LLS32],
			[:SquareMetersCredit, :LLS32],
			[:SquareMetersCommitted, :LLS32],
			[:Description, :LLVariable1]
		])],
		[:TransactionInfo, Block.new([
			[:TransactionType, :LLS32],
			[:SourceID, :LLUUID],
			[:IsSourceGroup, :LLBool],
			[:DestID, :LLUUID],
			[:IsDestGroup, :LLBool],
			[:Amount, :LLS32],
			[:ItemDescription, :LLVariable1]
		])]
	]
end