* Dead or zombie mobs can no longer sleep * Removed zombie fix * Moved dead-checks to OnEvent * Cleanup
9 lines
270 B
C#
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);
|