Exemple #1
0
 public bool SetCurrentBlueprint(string keyIngredientName)
 {
     foreach (ProductionBlueprint blueprint in productionBlueprints)
     {
         if (blueprint.keyIngredient.itemName == keyIngredientName)
         {
             current_Blueprint = blueprint;
             return(true);
         }
     }
     return(false);
 }
Exemple #2
0
 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;
             }
         }
     }
 }
Exemple #3
0
 public void DebugSetBlueprint()
 {
     current_Blueprint = productionBlueprints[0];
 }
Exemple #4
0
 public void ResetCurrentBlueprint()
 {
     current_Blueprint = new ProductionBlueprint();
 }