Update trivial components to use auto comp states (#20539)
This commit is contained in:
@@ -3,7 +3,8 @@ using Robust.Shared.GameStates;
|
||||
|
||||
namespace Content.Shared.Shuttles.Components;
|
||||
|
||||
[RegisterComponent, NetworkedComponent, Access(typeof(SharedRadarConsoleSystem))]
|
||||
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
|
||||
[Access(typeof(SharedRadarConsoleSystem))]
|
||||
public sealed partial class RadarConsoleComponent : Component
|
||||
{
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
@@ -16,6 +17,6 @@ public sealed partial class RadarConsoleComponent : Component
|
||||
.SetRange(Owner, value, this);
|
||||
}
|
||||
|
||||
[DataField("maxRange")]
|
||||
[DataField, AutoNetworkedField]
|
||||
public float MaxRange = 256f;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user