* TemperatureSpeed component * temperature slowdown prediction (done right) * remove unnecessary changes * that too * get in line * make it readonly * auto pause
31 lines
773 B
C#
31 lines
773 B
C#
using Content.Shared.Inventory;
|
|
|
|
namespace Content.Shared.Temperature;
|
|
|
|
public sealed class ModifyChangedTemperatureEvent : EntityEventArgs, IInventoryRelayEvent
|
|
{
|
|
public SlotFlags TargetSlots { get; } = ~SlotFlags.POCKET;
|
|
|
|
public float TemperatureDelta;
|
|
|
|
public ModifyChangedTemperatureEvent(float temperature)
|
|
{
|
|
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;
|
|
}
|
|
}
|
|
|