CargoOrderConsoleComponent.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. using Content.Shared.Cargo.Prototypes;
  2. using Robust.Shared.Audio;
  3. using Robust.Shared.GameStates;
  4. using Content.Shared.Radio;
  5. using Robust.Shared.Prototypes;
  6. namespace Content.Shared.Cargo.Components;
  7. /// <summary>
  8. /// Handles sending order requests to cargo. Doesn't handle orders themselves via shuttle or telepads.
  9. /// </summary>
  10. [RegisterComponent, NetworkedComponent]
  11. public sealed partial class CargoOrderConsoleComponent : Component
  12. {
  13. [DataField("soundError")]
  14. public SoundSpecifier ErrorSound =
  15. new SoundPathSpecifier("/Audio/Effects/Cargo/buzz_sigh.ogg");
  16. [DataField("soundConfirm")]
  17. public SoundSpecifier ConfirmSound = new SoundPathSpecifier("/Audio/Effects/Cargo/ping.ogg");
  18. /// <summary>
  19. /// All of the <see cref="CargoProductPrototype.Group"/>s that are supported.
  20. /// </summary>
  21. [DataField, ViewVariables(VVAccess.ReadWrite)]
  22. public List<string> AllowedGroups = new() { "market" };
  23. /// <summary>
  24. /// Radio channel on which order approval announcements are transmitted
  25. /// </summary>
  26. [DataField, ViewVariables(VVAccess.ReadWrite)]
  27. public ProtoId<RadioChannelPrototype> AnnouncementChannel = "Common";
  28. }