예제 #1
0
파일: PawnBio.cs 프로젝트: potsh/RimWorld
        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()*/;
        }
예제 #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);
         }
     }
 }
예제 #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));
     }
 }