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();
     }
 }
Esempio n. 3
0
        public override void ResolveReferences(ThingDef parentDef)
        {
            base.ResolveReferences(parentDef);

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

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

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