GravityShakeComponent.cs 634 B

123456789101112131415161718
  1. using Robust.Shared.GameStates;
  2. using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom;
  3. namespace Content.Shared.Gravity;
  4. /// <summary>
  5. /// Indicates this entity is shaking due to gravity changes.
  6. /// </summary>
  7. [RegisterComponent, NetworkedComponent, AutoGenerateComponentState, AutoGenerateComponentPause]
  8. public sealed partial class GravityShakeComponent : Component
  9. {
  10. [ViewVariables(VVAccess.ReadWrite), DataField, AutoNetworkedField]
  11. public int ShakeTimes;
  12. [DataField(customTypeSerializer: typeof(TimeOffsetSerializer)), AutoNetworkedField]
  13. [AutoPausedField]
  14. public TimeSpan NextShake;
  15. }