private string GetExtraSettingsFromFeature(T featureDB, ref Dictionary <string, object> extraSettings) { // TODO: Improve if (featureDB.UnitGroupFlags.HasFlag(FeatureUnitGroupFlags.TACAN) && (featureDB.UnitGroupFamilies.Length > 0)) { var callsign = $"{GeneratorTools.GetTACANCallsign(featureDB.UnitGroupFamilies[0])}{TACANIndex}"; var channel = ((GetType() == typeof(MissionGeneratorFeaturesObjectives)) ? 30 : 20) + TACANIndex; extraSettings.AddIfKeyUnused("TACANFrequency", 1108000000); extraSettings.AddIfKeyUnused("TACANCallsign", callsign); extraSettings.AddIfKeyUnused("TACANChannel", channel); if (TACANIndex < 9) { TACANIndex++; } return($",\n{channel}X (callsign {callsign})"); } return(""); }