/// <summary> /// Creates and sends a packet /// </summary> /// <param name="header"></param> /// <param name="obj"></param> public void CreateSendPacket(PacketTypes header, params object[] obj) { BinaryWriter bw = clientSocket.CreatePacket(header).StartWriting(true); for (int i = 0; i < obj.Length; i++) { bw.WriteObject(obj); } clientSocket.SendPacket(); }