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>
|
2024-02-26 04:36:19 +01:00
|
|
|
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState, AutoGenerateComponentPause]
|
2023-08-22 18:14:33 -07:00
|
|
|
public sealed partial class GravityShakeComponent : Component
|
2022-12-18 16:03:23 +11:00
|
|
|
{
|
2023-09-28 16:20:29 -07:00
|
|
|
[ViewVariables(VVAccess.ReadWrite), DataField, AutoNetworkedField]
|
2022-12-18 16:03:23 +11:00
|
|
|
public int ShakeTimes;
|
|
|
|
|
|
2023-09-28 16:20:29 -07:00
|
|
|
[DataField(customTypeSerializer: typeof(TimeOffsetSerializer)), AutoNetworkedField]
|
2024-02-26 04:36:19 +01:00
|
|
|
[AutoPausedField]
|
2022-12-18 16:03:23 +11:00
|
|
|
public TimeSpan NextShake;
|
|
|
|
|
}
|