Sleeping (#9793)
This commit is contained in:
14
Content.Shared/Bed/Sleep/SleepingComponent.cs
Normal file
14
Content.Shared/Bed/Sleep/SleepingComponent.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using Robust.Shared.GameStates;
|
||||
|
||||
namespace Content.Shared.Bed.Sleep;
|
||||
|
||||
[NetworkedComponent, RegisterComponent]
|
||||
/// <summary>
|
||||
/// Added to entities when they go to sleep.
|
||||
/// </summary>
|
||||
public sealed class SleepingComponent : Component
|
||||
{
|
||||
// How much damage of any type it takes to wake this entity.
|
||||
[DataField("wakeThreshold")]
|
||||
public float WakeThreshold = 2;
|
||||
}
|
||||
Reference in New Issue
Block a user