Files
wwdpublic/Content.Shared/Showers/ShowerComponent.cs
SleepyScarecrow 376b8f1048 Added Showers (#661)
<!--
This is a semi-strict format, you can add/remove sections as needed but
the order/format should be kept the same
Remove these comments before submitting
-->

# Description

<!--
Explain this PR in as much detail as applicable

Some example prompts to consider:
How might this affect the game? The codebase?
What might be some alternatives to this?
How/Who does this benefit/hurt [the game/codebase]?
-->

Added in showers. A pure RP furniture item.

---

# TODO

<!--
A list of everything you have to do before this PR is "complete"
You probably won't have to complete everything before merging but it's
good to leave future references
-->

- [x] Sound effects
- [x] Wallmount
- [x] Add in Showers

---



![Display](https://github.com/user-attachments/assets/c8499c33-a9ce-4d2d-9003-ed8517afb0b9)


---

# Changelog

<!--
You can add an author after the `🆑` to change the name that appears
in the changelog (ex: `🆑 Death`)
Leaving it blank will default to your GitHub display name
This includes all available types for the changelog
-->

🆑 Tilkku
- add: Added showers
2024-08-12 12:46:04 -04:00

44 lines
1.1 KiB
C#

using Robust.Shared.Audio;
using Robust.Shared.GameStates;
using Robust.Shared.Serialization;
namespace Content.Shared.Showers
{
/// <summary>
/// showers that can be enabled
/// </summary>
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
public sealed partial class ShowerComponent : Component
{
/// <summary>
/// Toggles shower.
/// </summary>
[DataField, AutoNetworkedField]
public bool ToggleShower;
[DataField("enableShowerSound")]
public SoundSpecifier EnableShowerSound = new SoundPathSpecifier("/Audio/Ambience/Objects/shower_enable.ogg");
public EntityUid? PlayingStream;
[DataField("loopingSound")]
public SoundSpecifier LoopingSound = new SoundPathSpecifier("/Audio/Ambience/Objects/shower_running.ogg");
}
[Serializable, NetSerializable]
public enum ShowerVisuals : byte
{
ShowerVisualState,
}
[Serializable, NetSerializable]
public enum ShowerVisualState : byte
{
Off,
On
}
}