1 using System.Globalization;
12 get {
return modulus; }
15 modulus = MathUtils.NearlyEqual(value, 0.0f) ? 1.0f : value;
26 switch (connection.
Name)
30 float.TryParse(signal.
value, NumberStyles.Float, CultureInfo.InvariantCulture, out
float newModulus);
34 float.TryParse(signal.
value, NumberStyles.Float, CultureInfo.InvariantCulture, out
float value);
35 signal.
value = (value % modulus).ToString(
"G", CultureInfo.InvariantCulture);
void SendSignal(string signal, string connectionName)
The base class for components holding the different functionalities of the item
override void ReceiveSignal(Signal signal, Connection connection)
ModuloComponent(Item item, ContentXElement element)