Beispiel #1
0
        public Recipient(AlchemieBaseData baseData)
        {
            this.ingredients = new ObservableCollection <IngredientSettings>();
            this.Ingredients = new ReadOnlyObservableCollection <IngredientSettings>(this.ingredients);
            this.Matrix      = new AlchemieMatrix(this);

            this.Matrix.PropertyChanged += this.Matrix_PropertyChanged;

            this.UpdateData();
            this.baseData = baseData;
        }
Beispiel #2
0
 public IngredientSettings(Ingredient ingredient, AlchemieBaseData baseData)
 {
     this.Ingredient        = ingredient;
     this.AllowedProcessing = baseData.IngredientProcessings.Where(x => x.SupportedIngredientPropertys.Intersect(ingredient.Propertys).Any()).ToImmutableHashSet();
 }