DragInsertContainerComponent.cs 1011 B

1234567891011121314151617181920212223242526272829303132
  1. using Robust.Shared.GameStates;
  2. namespace Content.Shared.Containers;
  3. /// <summary>
  4. /// This is used for a container that can have entities inserted into it via a
  5. /// </summary>
  6. [RegisterComponent, NetworkedComponent]
  7. [Access(typeof(DragInsertContainerSystem))]
  8. public sealed partial class DragInsertContainerComponent : Component
  9. {
  10. [DataField, ViewVariables(VVAccess.ReadWrite)]
  11. public string ContainerId;
  12. /// <summary>
  13. /// If true, there will also be verbs for inserting / removing objects from this container.
  14. /// </summary>
  15. [DataField, ViewVariables(VVAccess.ReadWrite)]
  16. public bool UseVerbs = true;
  17. /// <summary>
  18. /// The delay in seconds before a drag will be completed.
  19. /// </summary>
  20. [DataField]
  21. public TimeSpan EntryDelay = TimeSpan.Zero;
  22. /// <summary>
  23. /// If entry delay isn't zero, this sets whether an entity dragging itself into the container should be delayed.
  24. /// </summary>
  25. [DataField]
  26. public bool DelaySelfEntry = false;
  27. }