class CodeLockComponent
CodeLockComponent › Managed
Constructors 1
References CfgGameplayHandler.GetExternalLockProtectionResetTime(), CfgGameplayHandler.GetExternalLockProtectionTime(), DEFAULT_BRUTEFORCE_RESET_TIME
Show 11 more
, DEFAULT_BRUTEFORCE_TIME, m_BruteForceProtectionTime, m_BruteForceResetTime, m_DoorIndex, m_HasPIN, m_InputPIN, m_IsLocked, m_LockPIN, m_MinLockPinLength, m_Parent, and m_StageReferenced by DigitalCodeLock.Init()
Constants 4
const int MIN_LOCK_PIN_LENGTH = 4min amount of digits the combination needs to contain
Referenced by DigitalCodeLock_Bunker.Init()
const int MAX_LOCK_PIN_LENGTH = 6max amount of digits the combination can contain
Referenced by SetInputCode(), SetLockCode(), ValidatePIN()
Show 1 more
, DigitalCodeLock_Bunker.Init()private const float DEFAULT_BRUTEFORCE_TIME = 30.0Referenced by CodeLockComponent()
private const float DEFAULT_BRUTEFORCE_RESET_TIME = 3600.0Referenced by CodeLockComponent()
Members 16
protected int m_MinLockPinLengthReferenced by CodeLockComponent(), GetMinLockPINLength(), OnStoreLoad()
Show 4 more
, SetInputCode(), SetLockCode(), SetMinimalPinCodeLength(), and ValidatePIN()protected string m_InputPINcombination that is dialed on lock
protected string m_LockPINactual combination of the lock
Referenced by CheckCodeRequest(), CodeLockComponent(), GetLockPIN()
Show 4 more
, OnStoreLoad(), OnStoreSave(), ResetPIN(), and SetLockCode()protected bool m_IsLockedlock state
Referenced by CheckCodeRequest(), CodeLockComponent(), IsLocked()
Show 3 more
, OnStoreLoad(), OnStoreSave(), and SetLockState()protected EntityAI m_Parentcode lock parent entity
protected int m_DoorIndex = -1code lock door index for parent building if code lock belongs to a door
Referenced by CodeLockComponent(), GetDoorIndex(), HandleHierarchyRootLock()
Show 6 more
, HasParent(), OnParentDetached(), OnStoreLoad(), OnStoreSave(), SetDoorIndex(), and SetLockState()protected bool m_HasPINcode state
Referenced by CheckBruteForceReset(), CheckCodeRequest(), CodeLockComponent()
Show 5 more
, HasPIN(), OnStoreLoad(), ResetPIN(), SetLockCode(), and SetLockState()protected float m_BruteForceProtectionTimeprotected float m_BruteForceResetTimeprotected int m_StageReferenced by ActivateBruteForceProtection(), CodeLockComponent(), GetStage()
Show 3 more
, SetLockState(), SetStage(), and ShouldTriggerProtectionStage()protected ref Timer m_BruteForceUpdateTimerReferenced by ActivateBruteForceProtection(), CheckBruteForceReset(), CheckBruteForceState()
Show 2 more
, OnParentReset(), and StopAllTimers()protected ref Timer m_BruteForceResetTimerReferenced by ActivateBruteForceProtection(), CheckBruteForceReset(), OnParentReset()
Show 1 more
, StopAllTimers()protected int m_WrongCodeCountprotected bool m_HasBruteForceProtectionReferenced by ActivateBruteForceProtection(), CheckBruteForceReset(), CheckBruteForceState()
Show 4 more
, HandleBruteForceProtectionServer(), HasBruteForceProtection(), OnParentReset(), and SetLockState()protected bool m_HandleBruteForceProtectionReferenced by ActivateBruteForceProtection(), CheckBruteForceReset(), CheckBruteForceState()
Show 2 more
, SetLockState(), and ShouldHandleBruteForce()protected CodeLockUIAction m_UIActionReferenced by CheckUIActionClient(), CheckUIActionServer(), GetUIAction()
Show 1 more
, ResetUIActionServer()Methods 40
void SetStage(CodeLockStage stage)void SetMinimalPinCodeLength(int length)References m_MinLockPinLength
Referenced by DigitalCodeLock_Bunker.Init()
References ErrorEx(), string.Length(), m_InputPIN
Show 2 more
, m_MinLockPinLength, and MAX_LOCK_PIN_LENGTHReferenced by SetLockCode()
References ErrorEx(), string.Format(), string.Length()
Show 8 more
, SetLockState(), SetStage(), SyncAndMarkDirty(), ValidatePIN(), m_HasPIN, m_LockPIN, m_MinLockPinLength, and MAX_LOCK_PIN_LENGTHvoid ResetPIN(bool sync = true)References Class.Cast(), ErrorEx(), HandleHierarchyRootLock()
Show 16 more
, CGame.IsMultiplayer(), CGame.IsServer(), SetStage(), ItemBase.StartItemSoundServer(), StopAllTimers(), SyncAndMarkDirty(), SoundConstants.ITEM_DIGITAL_LOCK_LOCK, SoundConstants.ITEM_DIGITAL_LOCK_UNLOCK, m_DoorIndex, m_HandleBruteForceProtection, m_HasBruteForceProtection, m_HasPIN, m_IsLocked, m_Parent, m_Stage, and m_WrongCodeCountReferenced by CheckCodeRequest(), OnParentReset(), OnStoreLoad()
Show 3 more
, SetLockCode(), DigitalCodeLock.OnWork(), and DigitalCodeLock.SetLockState()protected void HandleHierarchyRootLock(bool state)Referenced by SetLockState()
void OnStoreSave(ParamsWriteContext ctx)Referenced by DigitalCodeLock.OnStoreSave()
bool OnStoreLoad(ParamsReadContext ctx, int version)References ErrorEx(), string.Format(), string.Length()
Show 7 more
, Serializer.Read(), SetLockState(), m_DoorIndex, m_HasPIN, m_IsLocked, m_LockPIN, and m_MinLockPinLengthReferenced by DigitalCodeLock.OnStoreLoad()
protected void CheckUIActionServer(CodeLockUIAction uiAction)References ScriptCallQueue.CallLater(), typename.EnumToString(), ErrorEx()
Show 5 more
, DayZGame.GetCallQueue(), CGame.IsMultiplayer(), CGame.IsServer(), SyncAndMarkDirty(), and m_UIActionReferenced by OnRPC()
protected void ResetUIActionServer()void CheckUIActionClient()Referenced by DigitalCodeLock.OnVariablesSynchronized()
protected void CheckCodeRequest(string pin, PlayerIdentity identity)References Class.Cast(), Class.CastTo(), ErrorEx()
Show 21 more
, GetGame(), GetInputPIN(), GetLockPIN(), DigitalCodeLock.GetVisualManager(), HandleBruteForceProtectionServer(), CGame.IsDedicatedServer(), CGame.IsMultiplayer(), CGame.IsServer(), CGame.RPCSingleParam(), SetInputCode(), SetLockCode(), SetLockState(), EntityAI.SetSynchDirty(), ItemBase.StartItemSoundServer(), CodeLockVisualManager.UpdateVisuals(), SoundConstants.ITEM_DIGITAL_LOCK_ERROR, m_HasPIN, m_InputPIN, m_IsLocked, m_LockPIN, and m_ParentReferenced by OnRPC()
protected void HandleBruteForceProtectionServer()References ActivateBruteForceProtection(), ShouldTriggerProtectionStage(), StopAllTimers()
Show 4 more
, m_BruteForceProtectionTime, m_BruteForceResetTime, m_HasBruteForceProtection, and m_WrongCodeCountReferenced by CheckCodeRequest()
Referenced by HandleBruteForceProtectionServer()
void StopAllTimers()Referenced by HandleBruteForceProtectionServer(), SetLockState(), DigitalCodeLock.OnWasDetached()
Show 1 more
, DigitalCodeLock.OnWorkStop()private bool ShouldTriggerProtectionStage()References CfgGameplayHandler.GetExternalLockProtectionCountStageOne(), CfgGameplayHandler.GetExternalLockProtectionCountStageTwo(), m_Stage
Show 1 more
, m_WrongCodeCountReferenced by HandleBruteForceProtectionServer()
protected void CheckBruteForceState()References Timer.Stop(), SyncAndMarkDirty(), m_BruteForceUpdateTimer
Show 2 more
, m_HandleBruteForceProtection, and m_HasBruteForceProtectionprotected void CheckBruteForceReset()void OnParentDetached(bool sync = true)Referenced by DigitalCodeLock.OnWasDetached()
void OnParentReset(bool sync = true)void OnRPC(PlayerIdentity sender, int type, ParamsReadContext ctx)Referenced by DigitalCodeLock.OnRPC()
protected void UpdateParentVisuals()References Class.CastTo(), DigitalCodeLock.GetVisualManager(), CodeLockVisualManager.MarkDirty()
Show 2 more
, CodeLockVisualManager.UpdateVisuals(), and m_Parentprotected void SyncAndMarkDirty()References CGame.IsDedicatedServer(), EntityAI.SetSynchDirty(), UpdateParentVisuals()
Show 1 more
, m_ParentReferenced by CheckBruteForceReset(), CheckBruteForceState(), CheckUIActionServer()
Show 6 more
, OnParentDetached(), OnParentReset(), ResetPIN(), ResetUIActionServer(), SetLockCode(), and SetLockState()void SetDoorIndex(int index)References m_DoorIndex
Referenced by DigitalCodeLock.SetDoorInfoFromSlot()
int GetDoorIndex()References m_DoorIndex
vector GetPosition()ToDo: Door parent position handling?!
Referenced by DigitalCodeLockUI.SetTargetLock()
string GetInputPIN()References m_InputPIN
bool IsLocked()References m_IsLocked
bool HasParent()bool HasBruteForceProtection()References m_HasBruteForceProtection
bool ShouldHandleBruteForce()References m_HandleBruteForceProtection
int GetWrongCodeCount()References m_WrongCodeCount
Referenced by DigitalCodeLock.GetWrongCodeCount()
int GetMinLockPINLength()References m_MinLockPinLength
Referenced by DigitalCodeLock.GetMinLockPINLength()
CodeLockUIAction GetUIAction()References m_UIAction
Referenced by DigitalCodeLock.OnVariablesSynchronized()