Exemplo n.º 1
0
        public override Block CopyBlock(DFG <Block> dfg, Dictionary <string, string> renamer, string namePostfix)
        {
            List <FluidInput> inputFluids = new List <FluidInput>();

            InputFluids.ToList().ForEach(x => inputFluids.Add(x.CopyInput(dfg, renamer, namePostfix)));

            return(new WasteUsage(ModuleName, inputFluids, null, BlockID));
        }
Exemplo n.º 2
0
        public override Block TrueCopy(DFG <Block> dfg)
        {
            VariableBlock indexCopy = (VariableBlock)IndexBlock.TrueCopy(dfg);

            dfg.AddNode(indexCopy);

            return(new SetArrayFluid(indexCopy, ArrayName, InputFluids.Copy(dfg), BlockID));
        }
Exemplo n.º 3
0
        public override Block CopyBlock(DFG <Block> dfg, Dictionary <string, string> renamer, string namePostfix)
        {
            if (!renamer.ContainsKey(OutputVariable))
            {
                renamer.Add(OutputVariable, OutputVariable + namePostfix);
            }

            List <FluidInput> inputFluids = new List <FluidInput>();

            InputFluids.ToList().ForEach(x => inputFluids.Add(x.CopyInput(dfg, renamer, namePostfix)));

            renamer[OutputVariable] = OutputVariable + namePostfix;
            return(new Fluid(inputFluids, OutputVariable + namePostfix, BlockID));
        }
Exemplo n.º 4
0
        public override Block CopyBlock(DFG <Block> dfg, Dictionary <string, string> renamer, string namePostfix)
        {
            List <FluidInput> inputFluids = new List <FluidInput>();

            InputFluids.ToList().ForEach(x => inputFluids.Add(x.CopyInput(dfg, renamer, namePostfix)));

            if (renamer.ContainsKey(OutputVariable))
            {
                renamer[OutputVariable] = OutputVariable + namePostfix;
            }
            else
            {
                renamer.Add(OutputVariable, OutputVariable + namePostfix);
            }
            return(new HeaterUsage(ModuleName, inputFluids, OutputVariable + namePostfix, Temperature, Time, BlockID));
        }
Exemplo n.º 5
0
 public override Block TrueCopy(DFG <Block> dfg)
 {
     return(new HeaterUsage(ModuleName, InputFluids.Copy(dfg), OutputVariable, Temperature, Time, BlockID));
 }
Exemplo n.º 6
0
 public override Block TrueCopy(DFG <Block> dfg)
 {
     return(new WasteUsage(ModuleName, InputFluids.Copy(dfg), OutputVariable, BlockID));
 }
Exemplo n.º 7
0
 public override void Update <T>(Dictionary <string, float> variables, CommandExecutor <T> executor, Dictionary <string, BoardFluid> dropPositions)
 {
     InputFluids.ForEach(x => x.Update(variables, executor, dropPositions));
 }
Exemplo n.º 8
0
 public override Block TrueCopy(DFG <Block> dfg)
 {
     return(new Fluid(InputFluids.Copy(dfg), OutputVariable, BlockID));
 }