DayZ 1.30
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено
Файл CodeLockComponent.c

См. исходные тексты.

Структуры данных

class  CodeLockComponentStatic
 

Перечисления

enum  CodeLockStage { NORMAL , SETTING , PROTECTION_STAGE_ONE , PROTECTION_STAGE_TWO }
 

Функции

void CodeLockComponent (notnull EntityAI parent, int minLockPinLength=MIN_LOCK_PIN_LENGTH)
 
void SetStage (CodeLockStage stage)
 
int GetStage ()
 
void SetMinimalPinCodeLength (int length)
 
bool SetInputCode (string pin, bool force=true)
 
bool ValidatePIN (string pin)
 
bool SetLockCode (string pin, bool sync=true)
 
void ResetPIN (bool sync=true)
 
void SetLockState (bool state, bool sync=true)
 
void HandleHierarchyRootLock (bool state)
 
void OnStoreSave (ParamsWriteContext ctx)
 
bool OnStoreLoad (ParamsReadContext ctx, int version)
 
void CheckUIActionServer (CodeLockUIAction uiAction)
 
void ResetUIActionServer ()
 
void CheckUIActionClient ()
 
void CheckCodeRequest (string pin, PlayerIdentity identity)
 
void HandleBruteForceProtectionServer ()
 
void ActivateBruteForceProtection (float protectionTime, float protectionResetTime)
 
void StopAllTimers ()
 
bool ShouldTriggerProtectionStage ()
 
void CheckBruteForceState ()
 
void CheckBruteForceReset ()
 
void OnParentDetached (bool sync=true)
 
void OnParentReset (bool sync=true)
 
void OnRPC (PlayerIdentity sender, int type, ParamsReadContext ctx)
 
void UpdateParentVisuals ()
 
void SyncAndMarkDirty ()
 
EntityAI GetParent ()
 Get parent of the Effect.
 
void SetDoorIndex (int index)
 
int GetDoorIndex ()
 
vector GetPosition ()
 ToDo: Door parent position handling?!
 
string GetInputPIN ()
 
bool HasPIN ()
 
string GetLockPIN ()
 
bool IsLocked ()
 
bool HasParent ()
 
bool HasBruteForceProtection ()
 
bool ShouldHandleBruteForce ()
 
int GetWrongCodeCount ()
 
int GetMinLockPINLength ()
 
CodeLockUIAction GetUIAction ()
 

Переменные

enum CodeLockStage NONE
 
enum CodeLockStage CONFIRM_INPUT
 
enum CodeLockStage CLEAR_INPUT
 
enum CodeLockStage MIN_LOCK_PIN_LENGTH = 4
 
const int MAX_LOCK_PIN_LENGTH = 6
 
const float DEFAULT_BRUTEFORCE_TIME = 30.0
 
const float DEFAULT_BRUTEFORCE_RESET_TIME = 3600.0
 
int m_MinLockPinLength
 
string m_InputPIN
 
string m_LockPIN
 
bool m_IsLocked
 
EntityAI m_Parent
 
int m_DoorIndex = -1
 
bool m_HasPIN
 
float m_BruteForceProtectionTime
 
float m_BruteForceResetTime
 
int m_Stage
 
ref Timer m_BruteForceUpdateTimer
 
ref Timer m_BruteForceResetTimer
 
int m_WrongCodeCount
 
bool m_HasBruteForceProtection
 
bool m_HandleBruteForceProtection
 
CodeLockUIAction m_UIAction