public bool SetCurrentBlueprint(string keyIngredientName) { foreach (ProductionBlueprint blueprint in productionBlueprints) { if (blueprint.keyIngredient.itemName == keyIngredientName) { current_Blueprint = blueprint; return(true); } } return(false); }
protected Producer(ProducerPrototype b) : base(b) { this.productionBlueprints = b.productionBlueprints; this.showsGrowth = b.showsGrowth; this.productionStage = b.productionStage; if (b.curProductionName.Length > 0) { foreach (ProductionBlueprint blueprint in this.productionBlueprints) { if (blueprint.itemProduced.itemName == b.curProductionName) { this.current_Blueprint = blueprint; break; } } } }
public void DebugSetBlueprint() { current_Blueprint = productionBlueprints[0]; }
public void ResetCurrentBlueprint() { current_Blueprint = new ProductionBlueprint(); }