public static List <T> GetOrdnanceOfType <T>(Loadout loadout)
            where T : Ordnance
        {
            List <T> ordnance = new List <T>();

            foreach (Station station in loadout.Stations)
            {
                if (station.Ordnance is T stationOrdnance)
                {
                    ordnance.Add(stationOrdnance);
                }
            }

            return(ordnance);
        }
 public static List <T> GetOrdnanceOfType <T>(Loadout loadout)
     where T : Ordnance
 {
     throw new NotImplementedException();
 }
 public static List <Ordnance> GetOrdnance(Loadout loadout)
 {
     throw new NotImplementedException();
 }
 public static List <Ordnance> GetOrdnance(Loadout loadout)
 {
     return(loadout.Stations.Select(station => station.Ordnance).ToList());
 }