add: funny keys that can lock doors (#113)

This commit is contained in:
ThereDrD0
2024-02-23 22:10:38 +03:00
committed by GitHub
parent 26cb9ac1c2
commit 9d31a42880
32 changed files with 386 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
using Robust.Shared.Audio;
namespace Content.Shared._White.Keyhole.Components;
[RegisterComponent]
public sealed partial class KeyholeComponent: KeyBaseComponent
{
[ViewVariables(VVAccess.ReadWrite)]
[DataField]
public bool Locked = false;
[ViewVariables(VVAccess.ReadWrite)]
[DataField]
public float Delay = 1f;
[ViewVariables(VVAccess.ReadWrite)]
[DataField]
public SoundSpecifier DoorLockedSound = new SoundPathSpecifier("/Audio/White/Object/Tools/Keyhole/locked.ogg");
[ViewVariables(VVAccess.ReadWrite)]
[DataField]
public SoundSpecifier UnlockSound = new SoundPathSpecifier("/Audio/White/Object/Tools/Keyhole/unlock.ogg");
[ViewVariables(VVAccess.ReadWrite)]
[DataField]
public SoundSpecifier LockSound = new SoundPathSpecifier("/Audio/White/Object/Tools/Keyhole/lock.ogg");
}