Exemplo n.º 1
0
        private void RemoveOutput(FormulaComponent component)
        {
            component.Container = null;

            if (component.Required)
            {
                RequiredOutputCount--;
            }
        }
Exemplo n.º 2
0
        public Formula(ResourceContainerDictionary buffer, FormulaComponent output, params FormulaComponent[] inputs)
        {
            this.buffer  = buffer;
            this.inputs  = inputs;
            this.outputs = new FormulaComponent[] { output };

            foreach (FormulaComponent component in outputs)
            {
                if (component.Required)
                {
                    RequiredOutputMinimum++;
                }
            }
        }