Files
tbd-station-14/Content.Shared/Bed/Sleep/TryingToSleepEvent.cs
Errant e9e6255684 Fix dead mobs falling asleep (#12917)
* Dead or zombie mobs can no longer sleep

* Removed zombie fix

* Moved dead-checks to OnEvent

* Cleanup
2022-12-15 15:34:43 -06:00

9 lines
270 B
C#

namespace Content.Shared.Bed.Sleep;
/// <summary>
/// Raised by an entity about to fall asleep.
/// Set Cancelled to true on event handling to interrupt
/// </summary>
[ByRefEvent]
public record struct TryingToSleepEvent(EntityUid uid, bool Cancelled = false);