Dayz Explorer 1.28.160049
Loading...
Searching...
No Matches
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 ()
 
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 ()
 
void ShowItem ()
 
void HideItem ()
 
void ShowAttached ()
 
void HideAttached ()
 
void SoundLockOpen ()
 
void SoundLockClose ()
 
void SoundLockChangeNumber ()
 
void SoundLockChangeDial ()
 
override void SetActions ()
 

Variables

enum LockAction m_LockDigits
 
int m_Combination
 
int m_CombinationLocked
 
int m_DialIndex
 
bool m_IsLocked
 
LockAction m_LockActionPerformed = LockAction.NONE
 
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"
 
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 ( )
protected

Definition at line 132 of file combinationlock.c.

◆ CheckLockedStateServer()

void CheckLockedStateServer ( )
protected

Definition at line 370 of file combinationlock.c.

◆ CombinationLock()

void CombinationLock ( )
protected

Definition at line 33 of file combinationlock.c.

◆ DestroyLock()

void DestroyLock ( )
protected

Definition at line 401 of file combinationlock.c.

◆ DialNextNumber()

void DialNextNumber ( )
protected

Definition at line 202 of file combinationlock.c.

◆ EEInit()

override void EEInit ( )
protected

Definition at line 54 of file combinationlock.c.

◆ GetCombination()

int GetCombination ( )
protected

Definition at line 191 of file combinationlock.c.

◆ GetDialIndex()

int GetDialIndex ( )
protected

Definition at line 242 of file combinationlock.c.

◆ GetLockDigits()

int GetLockDigits ( )
protected

Definition at line 196 of file combinationlock.c.

◆ HideAttached()

void HideAttached ( )
protected

Definition at line 471 of file combinationlock.c.

◆ HideItem()

void HideItem ( )
protected

Definition at line 457 of file combinationlock.c.

◆ IsInitialized()

override bool IsInitialized ( )
protected

Definition at line 70 of file combinationlock.c.

◆ IsLockAttached()

bool IsLockAttached ( )
protected

Definition at line 389 of file combinationlock.c.

◆ IsLocked()

bool IsLocked ( )
protected

Definition at line 365 of file combinationlock.c.

◆ IsLockedOnGate()

bool IsLockedOnGate ( )
protected

Definition at line 375 of file combinationlock.c.

◆ LockServer()

void LockServer ( EntityAI parent,
bool ignore_combination = false )
protected

Definition at line 272 of file combinationlock.c.

◆ OnItemLocationChanged()

override void OnItemLocationChanged ( EntityAI old_owner,
EntityAI new_owner )
protected

Definition at line 75 of file combinationlock.c.

◆ OnStoreLoad()

override bool OnStoreLoad ( ParamsReadContext ctx,
int version )
protected

Definition at line 99 of file combinationlock.c.

◆ OnStoreSave()

override void OnStoreSave ( ParamsWriteContext ctx)
protected

Definition at line 90 of file combinationlock.c.

◆ OnVariablesSynchronized()

override void OnVariablesSynchronized ( )
protected

Definition at line 168 of file combinationlock.c.

◆ ResetActionVar()

void ResetActionVar ( )
protected

Definition at line 163 of file combinationlock.c.

◆ SetActions()

override void SetActions ( )
protected

Definition at line 502 of file combinationlock.c.

◆ SetBaseLockValues()

void SetBaseLockValues ( )
protected

Definition at line 45 of file combinationlock.c.

◆ SetCombination()

void SetCombination ( int combination)
protected

Definition at line 181 of file combinationlock.c.

◆ SetCombinationLocked()

void SetCombinationLocked ( int combination)
protected

Definition at line 186 of file combinationlock.c.

◆ SetInitialized()

void SetInitialized ( )
protected

Definition at line 65 of file combinationlock.c.

◆ SetNextDial()

void SetNextDial ( )
protected

Definition at line 247 of file combinationlock.c.

◆ ShowAttached()

void ShowAttached ( )
protected

Definition at line 464 of file combinationlock.c.

◆ ShowItem()

void ShowItem ( )
protected

Definition at line 450 of file combinationlock.c.

◆ ShuffleLock()

void ShuffleLock ( )
protected

Definition at line 342 of file combinationlock.c.

◆ SoundLockChangeDial()

void SoundLockChangeDial ( )
protected

Definition at line 497 of file combinationlock.c.

◆ SoundLockChangeNumber()

void SoundLockChangeNumber ( )
protected

Definition at line 492 of file combinationlock.c.

◆ SoundLockClose()

void SoundLockClose ( )
protected

Definition at line 487 of file combinationlock.c.

◆ SoundLockOpen()

void SoundLockOpen ( )
protected

Definition at line 482 of file combinationlock.c.

◆ Synchronize()

void Synchronize ( )
protected

Definition at line 151 of file combinationlock.c.

◆ UnlockServer()

void UnlockServer ( EntityAI player,
EntityAI parent )
protected

Definition at line 299 of file combinationlock.c.

◆ UpdateSound()

void UpdateSound ( )
protected

Definition at line 422 of file combinationlock.c.

◆ UpdateVisuals()

void UpdateVisuals ( )
protected

Definition at line 407 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

bool m_IsInitialized
protected

Definition at line 22 of file combinationlock.c.

◆ m_IsLocked

bool m_IsLocked
protected

Definition at line 18 of file combinationlock.c.

◆ m_LockActionPerformed

LockAction m_LockActionPerformed = LockAction.NONE
protected

Definition at line 20 of file combinationlock.c.

◆ m_LockDigits

enum LockAction m_LockDigits

◆ m_Sound

EffectSound m_Sound
protected

Definition at line 31 of file combinationlock.c.

◆ SOUND_LOCK_CHANGE_DIAL

const string SOUND_LOCK_CHANGE_DIAL = "combinationlock_changedial_SoundSet"
protected

Definition at line 29 of file combinationlock.c.

◆ SOUND_LOCK_CHANGE_NUMBER

const string SOUND_LOCK_CHANGE_NUMBER = "combinationlock_changenumber_SoundSet"
protected

Definition at line 28 of file combinationlock.c.

◆ SOUND_LOCK_CLOSE

const string SOUND_LOCK_CLOSE = "combinationlock_close_SoundSet"
protected

Definition at line 27 of file combinationlock.c.

◆ SOUND_LOCK_OPEN

const string SOUND_LOCK_OPEN = "combinationlock_open_SoundSet"
protected

Definition at line 26 of file combinationlock.c.