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(); } }
public override void ResolveReferences(ThingDef parentDef) { base.ResolveReferences(parentDef); if (overlayGraphicData != null) { overlayGraphicData.ResolveReferencesSpecial(); } }
public void ResolveAll() { if (topGraphic != null) { topGraphic.ResolveReferencesSpecial(); } if (bottomGraphic != null) { bottomGraphic.ResolveReferencesSpecial(); } if (glowGraphic != null) { glowGraphic.ResolveReferencesSpecial(); } }
public override IEnumerable <string> ConfigErrors() { graphicData.ResolveReferencesSpecial(); return(base.ConfigErrors()); }