Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
combinationlock.c File Reference

Go to the source code of this file.

Enumerations

enum  LockAction {
  NONE, DIAL_NUMBER_CHANED, DIAL_INDEX_CHANGED, LOCKED,
  UNLOCKED, COUNT
}
 

Functions

void CombinationLock ()
 
protected void SetBaseLockValues ()
 
override void EEInit ()
 
void SetInitialized ()
 
override bool IsInitialized ()
 
override void OnItemLocationChanged (EntityAI old_owner, EntityAI new_owner)
 
override void OnStoreSave (ParamsWriteContext ctx)
 
override bool OnStoreLoad (ParamsReadContext ctx, int version)
 
override void AfterStoreLoad ()
 
void Synchronize ()
 
void ResetActionVar ()
 
override void OnVariablesSynchronized ()
 
void SetCombination (int combination)
 
void SetCombinationLocked (int combination)
 
int GetCombination ()
 
int GetLockDigits ()
 
void DialNextNumber ()
 
int GetDialIndex ()
 
void SetNextDial ()
 
void LockServer (EntityAI parent, bool ignore_combination=false)
 
void UnlockServer (EntityAI player, EntityAI parent)
 
void ShuffleLock ()
 
bool IsLocked ()
 
void CheckLockedStateServer ()
 
bool IsLockedOnGate ()
 
bool IsLockAttached ()
 
void DestroyLock ()
 
void UpdateVisuals ()
 
void UpdateSound ()
 
protected void ShowItem ()
 
protected void HideItem ()
 
protected void ShowAttached ()
 
protected void HideAttached ()
 
protected void SoundLockOpen ()
 
protected void SoundLockClose ()
 
void SoundLockChangeNumber ()
 
void SoundLockChangeDial ()
 
override void SetActions ()
 

Variables

enum LockAction m_LockDigits
 
int m_Combination
 
int m_CombinationLocked
 
int m_DialIndex
 
protected bool m_IsLocked
 
protected LockAction m_LockActionPerformed = LockAction.NONE
 
protected bool m_IsInitialized
 
const string SOUND_LOCK_OPEN = "combinationlock_open_SoundSet"
 
const string SOUND_LOCK_CLOSE = "combinationlock_close_SoundSet"
 
const string SOUND_LOCK_CHANGE_NUMBER = "combinationlock_changenumber_SoundSet"
 
const string SOUND_LOCK_CHANGE_DIAL = "combinationlock_changedial_SoundSet"
 
protected EffectSound m_Sound
 

Enumeration Type Documentation

◆ LockAction

enum LockAction
Enumerator
NONE 
DIAL_NUMBER_CHANED 
DIAL_INDEX_CHANGED 
LOCKED 
UNLOCKED 
COUNT 

Definition at line 1 of file combinationlock.c.

Function Documentation

◆ AfterStoreLoad()

override void AfterStoreLoad ( )

Definition at line 132 of file combinationlock.c.

◆ CheckLockedStateServer()

void CheckLockedStateServer ( )

Definition at line 359 of file combinationlock.c.

◆ CombinationLock()

void CombinationLock ( )

Definition at line 33 of file combinationlock.c.

◆ DestroyLock()

void DestroyLock ( )

Definition at line 390 of file combinationlock.c.

◆ DialNextNumber()

void DialNextNumber ( )

Definition at line 202 of file combinationlock.c.

◆ EEInit()

override void EEInit ( )

Definition at line 54 of file combinationlock.c.

◆ GetCombination()

int GetCombination ( )

Definition at line 191 of file combinationlock.c.

◆ GetDialIndex()

int GetDialIndex ( )

Definition at line 242 of file combinationlock.c.

◆ GetLockDigits()

int GetLockDigits ( )

Definition at line 196 of file combinationlock.c.

◆ HideAttached()

protected void HideAttached ( )

Definition at line 460 of file combinationlock.c.

◆ HideItem()

protected void HideItem ( )

Definition at line 446 of file combinationlock.c.

◆ IsInitialized()

override bool IsInitialized ( )

Definition at line 70 of file combinationlock.c.

◆ IsLockAttached()

bool IsLockAttached ( )

Definition at line 378 of file combinationlock.c.

◆ IsLocked()

bool IsLocked ( )

Definition at line 354 of file combinationlock.c.

◆ IsLockedOnGate()

bool IsLockedOnGate ( )

Definition at line 364 of file combinationlock.c.

◆ LockServer()

void LockServer ( EntityAI  parent,
bool  ignore_combination = false 
)

Definition at line 272 of file combinationlock.c.

◆ OnItemLocationChanged()

override void OnItemLocationChanged ( EntityAI  old_owner,
EntityAI  new_owner 
)

Definition at line 75 of file combinationlock.c.

◆ OnStoreLoad()

override bool OnStoreLoad ( ParamsReadContext  ctx,
int  version 
)

Definition at line 99 of file combinationlock.c.

◆ OnStoreSave()

override void OnStoreSave ( ParamsWriteContext  ctx)

Definition at line 90 of file combinationlock.c.

◆ OnVariablesSynchronized()

override void OnVariablesSynchronized ( )

Definition at line 168 of file combinationlock.c.

◆ ResetActionVar()

void ResetActionVar ( )

Definition at line 163 of file combinationlock.c.

◆ SetActions()

override void SetActions ( )

Definition at line 491 of file combinationlock.c.

◆ SetBaseLockValues()

protected void SetBaseLockValues ( )

Definition at line 45 of file combinationlock.c.

◆ SetCombination()

void SetCombination ( int  combination)

Definition at line 181 of file combinationlock.c.

◆ SetCombinationLocked()

void SetCombinationLocked ( int  combination)

Definition at line 186 of file combinationlock.c.

◆ SetInitialized()

void SetInitialized ( )

Definition at line 65 of file combinationlock.c.

◆ SetNextDial()

void SetNextDial ( )

Definition at line 247 of file combinationlock.c.

◆ ShowAttached()

protected void ShowAttached ( )

Definition at line 453 of file combinationlock.c.

◆ ShowItem()

protected void ShowItem ( )

Definition at line 439 of file combinationlock.c.

◆ ShuffleLock()

void ShuffleLock ( )

Definition at line 331 of file combinationlock.c.

◆ SoundLockChangeDial()

void SoundLockChangeDial ( )

Definition at line 486 of file combinationlock.c.

◆ SoundLockChangeNumber()

void SoundLockChangeNumber ( )

Definition at line 481 of file combinationlock.c.

◆ SoundLockClose()

protected void SoundLockClose ( )

Definition at line 476 of file combinationlock.c.

◆ SoundLockOpen()

protected void SoundLockOpen ( )

Definition at line 471 of file combinationlock.c.

◆ Synchronize()

void Synchronize ( )

Definition at line 151 of file combinationlock.c.

◆ UnlockServer()

void UnlockServer ( EntityAI  player,
EntityAI  parent 
)

Definition at line 299 of file combinationlock.c.

◆ UpdateSound()

void UpdateSound ( )

Definition at line 411 of file combinationlock.c.

◆ UpdateVisuals()

void UpdateVisuals ( )

Definition at line 396 of file combinationlock.c.

Variable Documentation

◆ m_Combination

int m_Combination

Definition at line 15 of file combinationlock.c.

◆ m_CombinationLocked

int m_CombinationLocked

Definition at line 16 of file combinationlock.c.

◆ m_DialIndex

int m_DialIndex

Definition at line 17 of file combinationlock.c.

◆ m_IsInitialized

protected bool m_IsInitialized

Definition at line 22 of file combinationlock.c.

◆ m_IsLocked

protected bool m_IsLocked

Definition at line 18 of file combinationlock.c.

◆ m_LockActionPerformed

protected LockAction m_LockActionPerformed = LockAction.NONE

Definition at line 20 of file combinationlock.c.

◆ m_LockDigits

enum LockAction m_LockDigits

◆ m_Sound

protected EffectSound m_Sound

Definition at line 31 of file combinationlock.c.

◆ SOUND_LOCK_CHANGE_DIAL

const string SOUND_LOCK_CHANGE_DIAL = "combinationlock_changedial_SoundSet"

Definition at line 29 of file combinationlock.c.

◆ SOUND_LOCK_CHANGE_NUMBER

const string SOUND_LOCK_CHANGE_NUMBER = "combinationlock_changenumber_SoundSet"

Definition at line 28 of file combinationlock.c.

◆ SOUND_LOCK_CLOSE

const string SOUND_LOCK_CLOSE = "combinationlock_close_SoundSet"

Definition at line 27 of file combinationlock.c.

◆ SOUND_LOCK_OPEN

const string SOUND_LOCK_OPEN = "combinationlock_open_SoundSet"

Definition at line 26 of file combinationlock.c.