Show / Hide Table of Contents

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 Source

BreakOnEmag

Whether or not an emag disables it.

Declaration
public bool BreakOnEmag
Field Value
Type Description
System.Boolean
| Improve this Doc View Source

Locked

Whether or not the lock is locked.

Declaration
public bool Locked
Field Value
Type Description
System.Boolean
| Improve this Doc View Source

LockOnClick

Whether or not the lock is toggled by simply clicking.

Declaration
public bool LockOnClick
Field Value
Type Description
System.Boolean
| Improve this Doc View Source

LockSound

The sound played when locked.

Declaration
public SoundSpecifier LockSound
Field Value
Type Description
Robust.Shared.Audio.SoundSpecifier
| Improve this Doc View Source

UnlockSound

The sound played when unlocked.

Declaration
public SoundSpecifier UnlockSound
Field Value
Type Description
Robust.Shared.Audio.SoundSpecifier
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾