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>
|
|
|
|
|
[NetworkedComponent]
|
|
|
|
|
[RegisterComponent]
|
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
|
|
|
|
|
[ViewVariables]
|
|
|
|
|
public NetUserId? DraggingPlayer;
|
|
|
|
|
}
|