Update trivial components to use auto comp states (#20539)
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
using Robust.Shared.GameStates;
|
||||
using Robust.Shared.Serialization;
|
||||
|
||||
namespace Content.Shared.Mech.Components;
|
||||
|
||||
@@ -9,18 +8,12 @@ namespace Content.Shared.Mech.Components;
|
||||
/// <remarks>
|
||||
/// Get in the robot, Shinji
|
||||
/// </remarks>
|
||||
[RegisterComponent, NetworkedComponent]
|
||||
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
|
||||
public sealed partial class MechPilotComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// The mech being piloted
|
||||
/// </summary>
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
[ViewVariables(VVAccess.ReadWrite), AutoNetworkedField]
|
||||
public EntityUid Mech;
|
||||
}
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
public sealed class MechPilotComponentState : ComponentState
|
||||
{
|
||||
public NetEntity Mech;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user