Update trivial components to use auto comp states (#20539)
This commit is contained in:
@@ -6,12 +6,12 @@ namespace Content.Shared.Gravity;
|
||||
/// <summary>
|
||||
/// Indicates this entity is shaking due to gravity changes.
|
||||
/// </summary>
|
||||
[RegisterComponent, NetworkedComponent]
|
||||
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
|
||||
public sealed partial class GravityShakeComponent : Component
|
||||
{
|
||||
[ViewVariables(VVAccess.ReadWrite), DataField("shakeTimes")]
|
||||
[ViewVariables(VVAccess.ReadWrite), DataField, AutoNetworkedField]
|
||||
public int ShakeTimes;
|
||||
|
||||
[DataField("nextShake", customTypeSerializer:typeof(TimeOffsetSerializer))]
|
||||
[DataField(customTypeSerializer: typeof(TimeOffsetSerializer)), AutoNetworkedField]
|
||||
public TimeSpan NextShake;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user