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

18 lines
584 B
C#
Raw 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]
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]
2022-12-18 16:03:23 +11:00
public TimeSpan NextShake;
}