Ejemplo n.º 1
0
        public override void ResolveReferences()
        {
            base.ResolveReferences();

            //fixedIngredientFilter.ResolveReferences();

            foreach (IngredientCount ingredient in ingredients)
            {
                ingredient.ResolveReferences();
            }

            if (productGraphic != null)
            {
                productGraphic.ResolveReferencesSpecial();
            }

            if (recipeUsers.Count > 0)
            {
                foreach (ThingDef def in recipeUsers)
                {
                    if (def.GetModExtension <GrowerProperties>() is GrowerProperties properties)
                    {
                        properties.recipes.Add(this);
                    }
                }
            }
        }
 // Verse.ThingDef
 public override void ResolveReferences()
 {
     if (graphicData != null)
     {
         graphicData.ResolveReferencesSpecial();
     }
 }
Ejemplo n.º 3
0
        public override void ResolveReferences(ThingDef parentDef)
        {
            base.ResolveReferences(parentDef);

            if (overlayGraphicData != null)
            {
                overlayGraphicData.ResolveReferencesSpecial();
            }
        }
Ejemplo n.º 4
0
        public void ResolveAll()
        {
            if (topGraphic != null)
            {
                topGraphic.ResolveReferencesSpecial();
            }

            if (bottomGraphic != null)
            {
                bottomGraphic.ResolveReferencesSpecial();
            }

            if (glowGraphic != null)
            {
                glowGraphic.ResolveReferencesSpecial();
            }
        }
Ejemplo n.º 5
0
 public override IEnumerable <string> ConfigErrors()
 {
     graphicData.ResolveReferencesSpecial();
     return(base.ConfigErrors());
 }