mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-16 21:17:39 +03:00
<!-- 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 ---  --- # 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
44 lines
1.1 KiB
C#
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
|
|
}
|
|
}
|
|
|