fish-station/Content.Shared/Standing/LayingDownComponent.cs
haiwwkes 40568a243c
lay down + scope (#476)
* remove old system

* new scope, new laying
2024-10-11 11:52:39 +03:00

26 lines
740 B
C#

using Robust.Shared.GameStates;
using Robust.Shared.Serialization;
namespace Content.Shared.Standing;
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
public sealed partial class LayingDownComponent : Component
{
[DataField, AutoNetworkedField]
public float StandingUpTime { get; set; } = 1f;
[DataField, AutoNetworkedField]
public float SpeedModify { get; set; } = 0.4f;
[DataField, AutoNetworkedField]
public bool AutoGetUp;
}
[Serializable, NetSerializable]
public sealed class ChangeLayingDownEvent : CancellableEntityEventArgs;
[Serializable, NetSerializable]
public sealed class CheckAutoGetUpEvent(NetEntity user) : CancellableEntityEventArgs
{
public NetEntity User = user;
}