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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user