Update trivial components to use auto comp states (#20539)
This commit is contained in:
@@ -6,11 +6,10 @@ namespace Content.Shared.Tabletop.Components;
|
||||
/// <summary>
|
||||
/// Allows an entity to be dragged around by the mouse. The position is updated for all player while dragging.
|
||||
/// </summary>
|
||||
[NetworkedComponent]
|
||||
[RegisterComponent]
|
||||
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
|
||||
public sealed partial class TabletopDraggableComponent : Component
|
||||
{
|
||||
// The player dragging the piece
|
||||
[ViewVariables]
|
||||
[ViewVariables, AutoNetworkedField]
|
||||
public NetUserId? DraggingPlayer;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user