You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the logic system uses Boolean values: on and off are the only available states of a logic group.
To allow for easier logistics, the game should allow for numeric signals, which can later represent, for example, item counts, energy percentage, a rate of fluid production, etc.
Requirements:
Logic producers should output a signed integer (i32?) instead of a boolean, which should be tracked in the LogicGroup's HashMap of producers. The LogicGroup's "on()" function should then add the signals of its producers instead of taking the logical OR of them.
Blocks that expect Boolean logic inputs/outputs (logic gates, logic indicators) should conform to the standard that a signal of 0 is "off" and any other signal is "on".
New comparison and arithmetic blocks become possible with this change. This issue should add at least an Adder, Subtractor, Invertor (single-input block that flips the sign of the input signal, not to be confused with a NOT gate), and a comparator (two-input block which outputs "on" if a specific one of its inputs is higher than the other).
The Logic On block should now output some constant, which can be set and checked by the player (probably requires a GUI).
The Logic Indicator block should provide a way to view the exact signal (probably requires a GUI, could be the same as the Logic On block but immutable).
The text was updated successfully, but these errors were encountered:
Currently, the logic system uses Boolean values: on and off are the only available states of a logic group.
To allow for easier logistics, the game should allow for numeric signals, which can later represent, for example, item counts, energy percentage, a rate of fluid production, etc.
Requirements:
The text was updated successfully, but these errors were encountered: