public virtual IEnumerable <string> ConfigErrors(WorldObjectDef parentDef)
 {
     if (this.compClass == null)
     {
         yield return(parentDef.defName + " has WorldObjectCompProperties with null compClass.");
     }
 }
Exemplo n.º 2
0
        public virtual IEnumerable <string> ConfigErrors(WorldObjectDef parentDef)
        {
            if (compClass == null)
            {
                yield return(parentDef.defName + " has WorldObjectCompProperties with null compClass.");

                /*Error: Unable to find new state assignment for yield return*/;
            }
        }
Exemplo n.º 3
0
 public override IEnumerable <string> ConfigErrors(WorldObjectDef parentDef)
 {
     foreach (string e in base.ConfigErrors(parentDef))
     {
         yield return(e);
     }
     if (!typeof(MapParent).IsAssignableFrom(parentDef.worldObjectClass))
     {
         yield return(parentDef.defName + " has WorldObjectCompProperties_TimedForcedExit but it's not MapParent.");
     }
 }
Exemplo n.º 4
0
 public override IEnumerable <string> ConfigErrors(WorldObjectDef parentDef)
 {
     foreach (string item in base.ConfigErrors(parentDef))
     {
         yield return(item);
     }
     if (!typeof(MapParent).IsAssignableFrom(parentDef.worldObjectClass))
     {
         yield return(parentDef.defName + " has WorldObjectCompProperties_DefeatAllEnemiesQuest but it's not MapParent.");
     }
 }
Exemplo n.º 5
0
 public override IEnumerable <string> ConfigErrors(WorldObjectDef parentDef)
 {
     foreach (string e in this.< ConfigErrors > __BaseCallProxy0(parentDef))
     {
         yield return(e);
     }
     if (!typeof(MapParent).IsAssignableFrom(parentDef.worldObjectClass))
     {
         yield return(parentDef.defName + " has WorldObjectCompProperties_Abandon but it's not MapParent.");
     }
     yield break;
 }
Exemplo n.º 6
0
        public override IEnumerable <string> ConfigErrors(WorldObjectDef parentDef)
        {
            using (IEnumerator <string> enumerator = base.ConfigErrors(parentDef).GetEnumerator())
            {
                if (enumerator.MoveNext())
                {
                    string e = enumerator.Current;
                    yield return(e);

                    /*Error: Unable to find new state assignment for yield return*/;
                }
            }
            if (typeof(MapParent).IsAssignableFrom(parentDef.worldObjectClass))
            {
                yield break;
            }
            yield return(parentDef.defName + " has WorldObjectCompProperties_EscapeShip but it's not MapParent.");

            /*Error: Unable to find new state assignment for yield return*/;
IL_0111:
            /*Error near IL_0112: Unexpected return in MoveNext()*/;
        }
Exemplo n.º 7
0
 public virtual void ResolveReferences(WorldObjectDef parentDef)
 {
 }
 private IEnumerable <string> < ConfigErrors > __BaseCallProxy0(WorldObjectDef parentDef)
 {
     return(base.ConfigErrors(parentDef));
 }