public static void HandleCreateSimulationObject(ProcessedPacket P, NetworkClient C) { byte PacketLength = (byte)P.ReadUShort(); //Length of the unencrypted data, excluding the header (ID, length, unencrypted length). byte UnencryptedLength = (byte)P.ReadUShort(); BinaryFormatter BinFormatter = new BinaryFormatter(); SimulationObject CreatedSimObject = (SimulationObject)BinFormatter.Deserialize(P); //TODO: Add the object to the client's lot's VM... }