Ejemplo n.º 1
0
        private void ClearDisabledRecipeContents(RecipeRow recipe)
        {
            recipe.recipesPerSecond = 0;
            recipe.parameters.Clear();
            recipe.hierarchyEnabled = false;
            var subgroup = recipe.subgroup;

            if (subgroup != null)
            {
                subgroup.flow = Array.Empty <ProductionTableFlow>();
                foreach (var link in subgroup.links)
                {
                    link.flags    = 0;
                    link.linkFlow = 0;
                }
                foreach (var sub in subgroup.recipes)
                {
                    ClearDisabledRecipeContents(sub);
                }
            }
        }
Ejemplo n.º 2
0
 private void AddFlow(RecipeRow recipe, Dictionary <Goods, (double prod, double cons)> summer)