Toilet fixes (#9609)
This commit is contained in:
23
Content.Shared/Toilet/ToiletComponent.cs
Normal file
23
Content.Shared/Toilet/ToiletComponent.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using Content.Shared.Sound;
|
||||
using Content.Shared.Tools;
|
||||
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
||||
|
||||
namespace Content.Shared.Toilet
|
||||
{
|
||||
[RegisterComponent]
|
||||
public sealed class ToiletComponent : Component
|
||||
{
|
||||
[DataField("pryLidTime")]
|
||||
public float PryLidTime = 1f;
|
||||
|
||||
[DataField("pryingQuality", customTypeSerializer:typeof(PrototypeIdSerializer<ToolQualityPrototype>))]
|
||||
public string PryingQuality = "Prying";
|
||||
|
||||
[DataField("toggleSound")]
|
||||
public SoundSpecifier ToggleSound = new SoundPathSpecifier("/Audio/Effects/toilet_seat_down.ogg");
|
||||
|
||||
public bool LidOpen = false;
|
||||
public bool IsSeatUp = false;
|
||||
public bool IsPrying = false;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user