Class: LibSL::EconomyDataPacket

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



540
541
542
# File 'lib/_packets.rb', line 540

def self.packet_id()
	4294901785
end

Instance Method Details

#build_structureObject



544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
# File 'lib/_packets.rb', line 544

def build_structure()
	@blocks = [
		[:Info, Block.new([
			[:ObjectCapacity, :LLS32],
			[:ObjectCount, :LLS32],
			[:PriceEnergyUnit, :LLS32],
			[:PriceObjectClaim, :LLS32],
			[:PricePublicObjectDecay, :LLS32],
			[:PricePublicObjectDelete, :LLS32],
			[:PriceParcelClaim, :LLS32],
			[:PriceParcelClaimFactor, :LLF32],
			[:PriceUpload, :LLS32],
			[:PriceRentLight, :LLS32],
			[:TeleportMinPrice, :LLS32],
			[:TeleportPriceExponent, :LLF32],
			[:EnergyEfficiency, :LLF32],
			[:PriceObjectRent, :LLF32],
			[:PriceObjectScaleFactor, :LLF32],
			[:PriceParcelRent, :LLS32],
			[:PriceGroupCreate, :LLS32]
		])]
	]
end