Add slowdown to low temperatures (#29692)

* TemperatureSpeed component

* temperature slowdown prediction (done right)

* remove unnecessary changes

* that too

* get in line

* make it readonly

* auto pause
This commit is contained in:
Nemanja
2024-08-05 04:07:02 -04:00
committed by GitHub
parent 50408da21a
commit b3a64d4bcd
9 changed files with 143 additions and 27 deletions

View File

@@ -412,17 +412,3 @@ public sealed class TemperatureSystem : EntitySystem
return (newHeatThreshold, newColdThreshold);
}
}
public sealed class OnTemperatureChangeEvent : EntityEventArgs
{
public float CurrentTemperature { get; }
public float LastTemperature { get; }
public float TemperatureDelta { get; }
public OnTemperatureChangeEvent(float current, float last, float delta)
{
CurrentTemperature = current;
LastTemperature = last;
TemperatureDelta = delta;
}
}