コード例 #1
0
        public override string ToString()
        {
            var sb = new StringBuilder();

            foreach (var item in Objectives)
            {
                sb.Append($"Objective {Objectives.IndexOf(item) + 1}. {item.ToString()}\n");
            }

            return(sb.ToString());
        }
コード例 #2
0
 internal void AssignAliases()
 {
     foreach (var item in PlayerFlightGroups)
     {
         item.AssignAlias(PlayerFlightGroups.IndexOf(item));
     }
     foreach (var item in Objectives)
     {
         item.AssignAlias(Objectives.IndexOf(item));
     }
     foreach (var item in AircraftPackages)
     {
         item.AssignAlias(AircraftPackages.IndexOf(item));
     }
 }