DIFF

class DigitalCodeLock

DigitalCodeLock › ItemBase › InventoryItem › EntityAI › Entity › ObjectTyped › Object › IEntity › Managed

Constructors 1

void DigitalCodeLock()
References Init()

Constants 11

const string MEMPOINT_INSIDE = "inside"
const string MEMPOINT_CENTER = "ce_center"
protected const string ATTACHMENT_SLOT_BATTERY = "BatteryD"
protected const string SELECTION_NAME_BACK = "back"
private const string CODELOCK_ACCESS_SOUND = "digitalLock_beep_Access_SoundSet"
Referenced by InitItemSounds()
private const string CODELOCK_LOCK_SOUND = "digitalLock_mechanism_Lock_SoundSet"
Referenced by InitItemSounds()
private const string CODELOCK_UNLOCK_SOUND = "digitalLock_mechanism_Unlock_SoundSet"
Referenced by InitItemSounds()
private const string CODELOCK_ERROR_SOUND = "digitalLock_beep_Error_SoundSet"
Referenced by InitItemSounds()
private const string CODELOCK_DIGITS_SOUND = "digitalLock_buttons_Digits_SoundSet"
Referenced by InitItemSounds()
private const string CODELOCK_CLEAR_SOUND = "digitalLock_button_Clear_SoundSet"
Referenced by InitItemSounds()
private const string CODELOCK_CONFIRM_SOUND = "digitalLock_button_Key_confirm_SoundSet"
Referenced by InitItemSounds()

Members 3

protected ref CodeLockVisualManager m_VisualManager
Referenced by ForceFullVisualsUpdate(), GetVisualManager(), Init()
Show 2 more, OnWork(), and UpdateVisuals()
protected bool m_Reversed = false

Methods 50

override void EEInit()
override void EEItemDetached(EntityAI item, string slot_name)

Start energy consumption once battery is attached and the lock is already attached to a parent that can have a construction component

override void OnWasDetached(EntityAI parent, int slot_id)

Start energy consumption once code lock is attached with a battery and the lock parent can have a construction component

override bool CanDetachAttachment(EntityAI parent)

Stop energy consumption once lock is detached with active energy manager

References IsLocked()
override void OnWorkStop()

GetReversedState is used to check if code lock is mounted on reversible doors

override void OnWorkStart()
Battery9V GetBattery()
Referenced by GetBatteryEnergy(), HasBattery(), OnWasAttached()
Show 1 more, OnWork()
bool HasBattery()
References GetBattery()
Referenced by AfterStoreLoad()
bool ShouldHandleBruteForce()
bool IsPlayerOnBackside(PlayerBase player)

Checks whether the given player is standing on the physical (non-keypad) side of the lock Fails closed when the required memory points are not available

override void SetActions()
override void OnRPC(PlayerIdentity sender, int rpc_type, ParamsReadContext ctx)
override void AfterStoreLoad()
override void EEHealthLevelChanged(int oldLevel, int newLevel, string zone)
override bool IsExternalLockType()