SpraySafetyComponent.cs 770 B

123456789101112131415161718192021222324
  1. using Robust.Shared.Audio;
  2. using Robust.Shared.GameStates;
  3. namespace Content.Shared.Fluids.Components;
  4. /// <summary>
  5. /// Uses <c>ItemToggle</c> to control safety for a spray item.
  6. /// You can't spray or refill it while safety is on.
  7. /// </summary>
  8. [RegisterComponent, NetworkedComponent, Access(typeof(SpraySafetySystem))]
  9. public sealed partial class SpraySafetyComponent : Component
  10. {
  11. /// <summary>
  12. /// Popup shown when trying to spray or refill with safety on.
  13. /// </summary>
  14. [DataField]
  15. public LocId Popup = "fire-extinguisher-component-safety-on-message";
  16. /// <summary>
  17. /// Sound to play after refilling.
  18. /// </summary>
  19. [DataField]
  20. public SoundSpecifier RefillSound = new SoundPathSpecifier("/Audio/Effects/refill.ogg");
  21. }