示例#1
0
        protected override IEnumerable <Rule> SpecialTextGenerationRules()
        {
            using (IEnumerator <Rule> enumerator = pawnData.GetRules("ANYPAWN").GetEnumerator())
            {
                if (enumerator.MoveNext())
                {
                    Rule r2 = enumerator.Current;
                    yield return(r2);

                    /*Error: Unable to find new state assignment for yield return*/;
                }
            }
            using (IEnumerator <Rule> enumerator2 = pawnData.GetRules("PAWN").GetEnumerator())
            {
                if (enumerator2.MoveNext())
                {
                    Rule r = enumerator2.Current;
                    yield return(r);

                    /*Error: Unable to find new state assignment for yield return*/;
                }
            }
            yield break;
IL_015e:
            /*Error near IL_015f: Unexpected return in MoveNext()*/;
        }
示例#2
0
 protected override IEnumerable <Rule> SpecialTextGenerationRules()
 {
     if (def.firstPawnSymbol.NullOrEmpty() || def.secondPawnSymbol.NullOrEmpty())
     {
         Log.Error(def + " uses DoublePawn tale class but firstPawnSymbol and secondPawnSymbol are not both set");
     }
     foreach (Rule rule in firstPawnData.GetRules("ANYPAWN"))
     {
         yield return(rule);
     }
     foreach (Rule rule2 in firstPawnData.GetRules(def.firstPawnSymbol))
     {
         yield return(rule2);
     }
     if (secondPawnData != null)
     {
         foreach (Rule rule3 in firstPawnData.GetRules("ANYPAWN"))
         {
             yield return(rule3);
         }
         foreach (Rule rule4 in secondPawnData.GetRules(def.secondPawnSymbol))
         {
             yield return(rule4);
         }
     }
 }
示例#3
0
 protected override IEnumerable <Rule> SpecialTextGenerationRules()
 {
     foreach (Rule rule in pawnData.GetRules("ANYPAWN"))
     {
         yield return(rule);
     }
     foreach (Rule rule2 in pawnData.GetRules("PAWN"))
     {
         yield return(rule2);
     }
 }
示例#4
0
        protected override IEnumerable <Rule> SpecialTextGenerationRules()
        {
            if (def.firstPawnSymbol.NullOrEmpty() || def.secondPawnSymbol.NullOrEmpty())
            {
                Log.Error(def + " uses DoublePawn tale class but firstPawnSymbol and secondPawnSymbol are not both set");
            }
            using (IEnumerator <Rule> enumerator = firstPawnData.GetRules("ANYPAWN").GetEnumerator())
            {
                if (enumerator.MoveNext())
                {
                    Rule r4 = enumerator.Current;
                    yield return(r4);

                    /*Error: Unable to find new state assignment for yield return*/;
                }
            }
            using (IEnumerator <Rule> enumerator2 = firstPawnData.GetRules(def.firstPawnSymbol).GetEnumerator())
            {
                if (enumerator2.MoveNext())
                {
                    Rule r3 = enumerator2.Current;
                    yield return(r3);

                    /*Error: Unable to find new state assignment for yield return*/;
                }
            }
            if (secondPawnData != null)
            {
                using (IEnumerator <Rule> enumerator3 = firstPawnData.GetRules("ANYPAWN").GetEnumerator())
                {
                    if (enumerator3.MoveNext())
                    {
                        Rule r2 = enumerator3.Current;
                        yield return(r2);

                        /*Error: Unable to find new state assignment for yield return*/;
                    }
                }
                using (IEnumerator <Rule> enumerator4 = secondPawnData.GetRules(def.secondPawnSymbol).GetEnumerator())
                {
                    if (enumerator4.MoveNext())
                    {
                        Rule r = enumerator4.Current;
                        yield return(r);

                        /*Error: Unable to find new state assignment for yield return*/;
                    }
                }
            }
            yield break;
IL_0309:
            /*Error near IL_030a: Unexpected return in MoveNext()*/;
        }