mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-17 05:27:38 +03:00
port https://github.com/DeltaV-Station/Delta-v/pull/2707 (with permission) 🆑 ElusiveCoin - add: Added a new species, the Chitinid. --------- Signed-off-by: sleepyyapril <123355664+sleepyyapril@users.noreply.github.com> Co-authored-by: ElusiveCoin <elusivecoin@gmail.com> Co-authored-by: rosieposie <52761126+rosieposieeee@users.noreply.github.com> Co-authored-by: Delta-V bot <135767721+DeltaV-Bot@users.noreply.github.com> Co-authored-by: Nemanja <98561806+EmoGarbage404@users.noreply.github.com> Co-authored-by: VMSolidus <evilexecutive@gmail.com> (cherry picked from commit ce310bb7158acf0c9c2eef00a19d9ac58f8fa08d)
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;
|
|
}
|
|
}
|
|
|