CargoBountyLabelComponent.cs 758 B

12345678910111213141516171819202122232425262728
  1. using Content.Server.Station.Systems;
  2. namespace Content.Server.Cargo.Components;
  3. /// <summary>
  4. /// This is used for marking containers as
  5. /// containing goods for fulfilling bounties.
  6. /// </summary>
  7. [RegisterComponent]
  8. public sealed partial class CargoBountyLabelComponent : Component
  9. {
  10. /// <summary>
  11. /// The ID for the bounty this label corresponds to.
  12. /// </summary>
  13. [DataField, ViewVariables(VVAccess.ReadWrite)]
  14. public string Id = string.Empty;
  15. /// <summary>
  16. /// Used to prevent recursion in calculating the price.
  17. /// </summary>
  18. public bool Calculating;
  19. /// <summary>
  20. /// The Station System to check and remove bounties from
  21. /// </summary>
  22. [DataField]
  23. public EntityUid? AssociatedStationId;
  24. }