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:
@@ -13,3 +13,18 @@ public sealed class ModifyChangedTemperatureEvent : EntityEventArgs, IInventoryR
|
||||
TemperatureDelta = temperature;
|
||||
}
|
||||
}
|
||||
|
||||
public sealed class OnTemperatureChangeEvent : EntityEventArgs
|
||||
{
|
||||
public readonly float CurrentTemperature;
|
||||
public readonly float LastTemperature;
|
||||
public readonly float TemperatureDelta;
|
||||
|
||||
public OnTemperatureChangeEvent(float current, float last, float delta)
|
||||
{
|
||||
CurrentTemperature = current;
|
||||
LastTemperature = last;
|
||||
TemperatureDelta = delta;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user