PriorityDockComponent.cs 595 B

123456789101112131415161718
  1. using Content.Shared.Tag;
  2. using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
  3. namespace Content.Server.Shuttles.Components;
  4. /// <summary>
  5. /// Given priority when considering where to dock.
  6. /// </summary>
  7. [RegisterComponent]
  8. public sealed partial class PriorityDockComponent : Component
  9. {
  10. /// <summary>
  11. /// Tag to match on the docking request, if this dock is to be prioritised.
  12. /// </summary>
  13. [ViewVariables(VVAccess.ReadWrite),
  14. DataField("tag", customTypeSerializer: typeof(PrototypeIdSerializer<TagPrototype>))]
  15. public string? Tag;
  16. }