17 Serialize(0.0f,
IsPropertySaveable.Yes, description:
"The item must have received signals to both inputs within this timeframe to output the result." +
18 " If set to 0, the inputs must be received at the same time.", alwaysUseInstanceValues:
true)]
41 bool deactivate =
true;
42 bool earlyReturn =
false;
52 if (earlyReturn) {
return; }
57 protected abstract string Calculate(
string signal1,
string signal2);
61 switch (connection.
Name)
void SendSignal(string signal, string connectionName)
The base class for components holding the different functionalities of the item
float[] timeSinceReceived
abstract string Calculate(string signal1, string signal2)
StringComponent(Item item, ContentXElement element)
override void ReceiveSignal(Signal signal, Connection connection)
sealed override void Update(float deltaTime, Camera cam)