Example #1
0
        public IEnumerable <string> ConfigErrors()
        {
            if (childhood != null)
            {
                using (IEnumerator <string> enumerator = childhood.ConfigErrors(ignoreNoSpawnCategories: true).GetEnumerator())
                {
                    if (enumerator.MoveNext())
                    {
                        string error2 = enumerator.Current;
                        yield return(name + ", " + childhood.title + ": " + error2);

                        /*Error: Unable to find new state assignment for yield return*/;
                    }
                }
            }
            if (adulthood != null)
            {
                using (IEnumerator <string> enumerator2 = adulthood.ConfigErrors(ignoreNoSpawnCategories: false).GetEnumerator())
                {
                    if (enumerator2.MoveNext())
                    {
                        string error = enumerator2.Current;
                        yield return(name + ", " + adulthood.title + ": " + error);

                        /*Error: Unable to find new state assignment for yield return*/;
                    }
                }
            }
            yield break;
IL_01f4:
            /*Error near IL_01f5: Unexpected return in MoveNext()*/;
        }
Example #2
0
 public IEnumerable <string> ConfigErrors()
 {
     if (childhood != null)
     {
         foreach (string item in childhood.ConfigErrors(ignoreNoSpawnCategories: true))
         {
             yield return(name + ", " + childhood.title + ": " + item);
         }
     }
     if (adulthood != null)
     {
         foreach (string item2 in adulthood.ConfigErrors(ignoreNoSpawnCategories: false))
         {
             yield return(name + ", " + adulthood.title + ": " + item2);
         }
     }
 }
Example #3
0
 public IEnumerable <string> ConfigErrors()
 {
     if (childhood != null)
     {
         foreach (string item in childhood.ConfigErrors(ignoreNoSpawnCategories: true))
         {
             yield return(string.Concat(name, ", ", childhood.title, ": ", item));
         }
     }
     if (adulthood == null)
     {
         yield break;
     }
     foreach (string item2 in adulthood.ConfigErrors(ignoreNoSpawnCategories: false))
     {
         yield return(string.Concat(name, ", ", adulthood.title, ": ", item2));
     }
 }