TabletopDraggableComponent.cs 503 B

123456789101112131415
  1. using Robust.Shared.GameStates;
  2. using Robust.Shared.Network;
  3. namespace Content.Shared.Tabletop.Components;
  4. /// <summary>
  5. /// Allows an entity to be dragged around by the mouse. The position is updated for all player while dragging.
  6. /// </summary>
  7. [RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
  8. public sealed partial class TabletopDraggableComponent : Component
  9. {
  10. // The player dragging the piece
  11. [ViewVariables, AutoNetworkedField]
  12. public NetUserId? DraggingPlayer;
  13. }