Toilet Upgrade (needs review) (#22133)
* Toilet Draft * fixes * toilets now have secret stash to place items in cistern. * fixes * plungers now unblock toilets. * fix sprite * new sprites and fix * fixes * improve seat sprites. * fix * removed visualisersystem changed to genericvisualizers * flush sound for toilets and copyright for toilet sprites. * fix atrributions * fixes * fix datafield flushtime * sprite improvements * fixes * multiple changes * fix * fix * fixes remove vv * moved stash related functions to secret stash system from toilet. * fix * fix * changes for recent review. * fix * fix
This commit is contained in:
40
Content.Shared/Toilet/Components/ToiletComponent.cs
Normal file
40
Content.Shared/Toilet/Components/ToiletComponent.cs
Normal file
@@ -0,0 +1,40 @@
|
||||
using Robust.Shared.Audio;
|
||||
using Robust.Shared.GameStates;
|
||||
using Robust.Shared.Serialization;
|
||||
|
||||
namespace Content.Shared.Toilet.Components
|
||||
{
|
||||
/// <summary>
|
||||
/// Toilets that can be flushed, seats toggled up and down, items hidden in cistern.
|
||||
/// </summary>
|
||||
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
|
||||
public sealed partial class ToiletComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// Toggles seat state.
|
||||
/// </summary>
|
||||
[DataField, AutoNetworkedField]
|
||||
public bool ToggleSeat;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Sound to play when toggling toilet seat.
|
||||
/// </summary>
|
||||
[DataField]
|
||||
public SoundSpecifier SeatSound = new SoundPathSpecifier("/Audio/Effects/toilet_seat_down.ogg");
|
||||
}
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
public enum ToiletVisuals : byte
|
||||
{
|
||||
SeatVisualState,
|
||||
}
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
public enum SeatVisualState : byte
|
||||
{
|
||||
SeatUp,
|
||||
SeatDown
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user