'Each on Red Circuit' and 'Each on Green Circuit'
Posted: Thu Jan 21, 2021 12:56 am
TL;DR
Allow combinator and comparator to use 'Each on Red Circuit' and 'Each on Green Circuit' on the left and right sides of operand. (Where 'Each on Red Circuit' and 'Each on Green Circuit' would be new features). This would allow operations to be performed on multiple item types signalled on a circuit, between two circuits.What ?
Add 'Each on Red Circuit' and 'Each on Green Circuit' to allow logic and mathematical expressions on several item counts signalled on one circuit. Allowing comparisons and operations between multiple values between two circuits. Only items of the same type would interact between the two sides of the operation (implementation would be like 'Each', but allow an operand to interact with items of the same type on the second circuit).EG:
- Input Green: 50 Copper Plate, 500 Coal, 10 Wood
- Input Red: 1 Copper Plate
- Equation: "Each Green" * "Each Red"
- Output 'Each': 50 Copper Plate (can be attached to output Red, Green, or both networks).
Might look something like:
Why ?
It would allow the more traditional use of logic and mathematical expression on several item counts signalled on one circuit network. Allowing comparisons and operations between multiple values between two circuit networks.To do this currently many individual comparators or combinators are needed (unless I've missed something), and knowledge at each comparator/combinator about which items types are you looking at. If you have 10s of different item types in your circuit network and want them all involved in the calculations, it’s a lot of blocks to put down and configure individually (and you might need to leave space in your layout to expand it with more item types later). Also for compute load (for mega bases) it would be more effect to be able to do this calculations in one entity.