2022-04-28 19:57:51 +12:00
|
|
|
using Robust.Shared.GameStates;
|
|
|
|
|
using Robust.Shared.Network;
|
|
|
|
|
|
|
|
|
|
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>
|
2023-09-28 16:20:29 -07:00
|
|
|
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
|
2023-08-22 18:14:33 -07:00
|
|
|
public sealed partial class TabletopDraggableComponent : Component
|
2022-04-28 19:57:51 +12:00
|
|
|
{
|
|
|
|
|
// The player dragging the piece
|
2023-09-28 16:20:29 -07:00
|
|
|
[ViewVariables, AutoNetworkedField]
|
2022-04-28 19:57:51 +12:00
|
|
|
public NetUserId? DraggingPlayer;
|
|
|
|
|
}
|