public static Packet GetPacket(TorpedoEnergyConversionTypes direction)
 {
     ConvertTorpedoSubPacket subpack = null;
     ShipAction2Packet pack = null;
     Packet pck = null;
     Packet retVal = null;
     try
     {
         subpack = new ConvertTorpedoSubPacket(direction);
         pack = new ShipAction2Packet(subpack);
         pck = new Packet(pack);
         retVal = pck;
         pck = null;
         subpack = null;
         pack = null;
         
     }
     finally
     {
         if (subpack != null)
         {
             subpack.Dispose();
         }
         if (pack != null)
         {
             pack.Dispose();
         }
         if (pck != null)
         {
             pck.Dispose();
         }
         
     }
     return retVal;
 }
        public static Packet GetPacket(ShipSystems system, int value)
        {
            EngSetCoolantSubPacket escsp = new EngSetCoolantSubPacket(system, value);
            ShipAction2Packet      sap2  = new ShipAction2Packet(escsp);

            return(new Packet(sap2));
        }
 public static Packet GetPacket(ShipSystem system, int value)
 {
     EngSetCoolantSubPacket escsp = new EngSetCoolantSubPacket(system, value);
     ShipAction2Packet sap2 = new ShipAction2Packet(escsp);
     return new Packet(sap2);
 }
 public static Packet GetPacket(int tubeIndex, OrdinanceType ordinance)
 {
     LoadTubeSubPacket ltb = new LoadTubeSubPacket(tubeIndex, ordinance);
     ShipAction2Packet sap2 = new ShipAction2Packet(ltb);
     return new Packet(sap2);
 }