Class LockComponent
Allows locking/unlocking, with access determined by AccessReader
Inheritance
System.Object
LockComponent
Namespace: Content.Shared.Lock
Assembly: Content.Shared.dll
Syntax
public sealed class LockComponent : Component
Fields
| Improve this Doc View SourceBreakOnEmag
Whether or not an emag disables it.
Declaration
public bool BreakOnEmag
Field Value
Type | Description |
---|---|
System.Boolean |
Locked
Whether or not the lock is locked.
Declaration
public bool Locked
Field Value
Type | Description |
---|---|
System.Boolean |
LockOnClick
Whether or not the lock is toggled by simply clicking.
Declaration
public bool LockOnClick
Field Value
Type | Description |
---|---|
System.Boolean |
LockSound
The sound played when locked.
Declaration
public SoundSpecifier LockSound
Field Value
Type | Description |
---|---|
Robust.Shared.Audio.SoundSpecifier |
UnlockSound
The sound played when unlocked.
Declaration
public SoundSpecifier UnlockSound
Field Value
Type | Description |
---|---|
Robust.Shared.Audio.SoundSpecifier |