CargoOrderConsoleComponent.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233
  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")] public SoundSpecifier ErrorSound =
  14. new SoundPathSpecifier("/Audio/Effects/Cargo/buzz_sigh.ogg");
  15. [DataField("soundConfirm")]
  16. public SoundSpecifier ConfirmSound = new SoundPathSpecifier("/Audio/Effects/Cargo/ping.ogg");
  17. /// <summary>
  18. /// All of the <see cref="CargoProductPrototype.Group"/>s that are supported.
  19. /// </summary>
  20. [DataField, ViewVariables(VVAccess.ReadWrite)]
  21. public List<string> AllowedGroups = new() { "market" };
  22. /// <summary>
  23. /// Radio channel on which order approval announcements are transmitted
  24. /// </summary>
  25. [DataField, ViewVariables(VVAccess.ReadWrite)]
  26. public ProtoId<RadioChannelPrototype> AnnouncementChannel = "Supply";
  27. }