ToiletComponent.cs 1019 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. using Robust.Shared.Audio;
  2. using Robust.Shared.GameStates;
  3. using Robust.Shared.Serialization;
  4. namespace Content.Shared.Toilet.Components
  5. {
  6. /// <summary>
  7. /// Toilets that can be flushed, seats toggled up and down, items hidden in cistern.
  8. /// </summary>
  9. [RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
  10. public sealed partial class ToiletComponent : Component
  11. {
  12. /// <summary>
  13. /// Toggles seat state.
  14. /// </summary>
  15. [DataField, AutoNetworkedField]
  16. public bool ToggleSeat;
  17. /// <summary>
  18. /// Sound to play when toggling toilet seat.
  19. /// </summary>
  20. [DataField]
  21. public SoundSpecifier SeatSound = new SoundPathSpecifier("/Audio/Effects/toilet_seat_down.ogg");
  22. }
  23. [Serializable, NetSerializable]
  24. public enum ToiletVisuals : byte
  25. {
  26. SeatVisualState,
  27. }
  28. [Serializable, NetSerializable]
  29. public enum SeatVisualState : byte
  30. {
  31. SeatUp,
  32. SeatDown
  33. }
  34. }