Class: LibSL::SimulatorLoadPacket

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



297
298
299
# File 'lib/_packets.rb', line 297

def self.packet_id()
	4294901772
end

Instance Method Details

#build_structureObject



301
302
303
304
305
306
307
308
309
310
311
312
313
314
# File 'lib/_packets.rb', line 301

def build_structure()
	@blocks = [
		[:SimulatorLoad, Block.new([
			[:TimeDilation, :LLF32],
			[:AgentCount, :LLS32],
			[:CanAcceptAgents, :LLBool]
		])],
		[:AgentList, VariableBlockCollection.new([
			[:CircuitCode, :LLU32],
			[:X, :LLU8],
			[:Y, :LLU8]
		])]
	]
end