Files
crystall-punk-14/Content.Shared/Gravity/GravityShakeComponent.cs

19 lines
634 B
C#
Raw Permalink Normal View History

2022-12-18 16:03:23 +11:00
using Robust.Shared.GameStates;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom;
namespace Content.Shared.Gravity;
/// <summary>
/// Indicates this entity is shaking due to gravity changes.
/// </summary>
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState, AutoGenerateComponentPause]
public sealed partial class GravityShakeComponent : Component
2022-12-18 16:03:23 +11:00
{
[ViewVariables(VVAccess.ReadWrite), DataField, AutoNetworkedField]
2022-12-18 16:03:23 +11:00
public int ShakeTimes;
[DataField(customTypeSerializer: typeof(TimeOffsetSerializer)), AutoNetworkedField]
[AutoPausedField]
2022-12-18 16:03:23 +11:00
public TimeSpan NextShake;
}