DIFF

class CombinationLock

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

Constructors 1

Constants 9

static const string LOCK_SELECTION_OUTSIDE = "lock_attached_outside"
static const string LOCK_SELECTION_INSIDE = "lock_attached_inside"
static const int FACING_OUTSIDE = 0
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"
const string SOUND_LOCK_WRONG_PIN = "combinationlock_wrong_combination_SoundSet"
Referenced by InitItemSounds()

Members 11

int m_LockDigits

how many digits will the combination contain

int m_DialIndex

index of current combination dial on lock outside

Referenced by DialNextNumber(), GetDialIndex(), SetNextDial()
Show 1 more, UpdateVisuals()
int m_DialIndexInside

index of current combination dial on lock inside

protected bool m_IsLocked
protected LockAction m_LockActionPerformed = LockAction.NONE
protected bool m_IsInitialized
protected EffectSound m_Sound

Methods 55

protected void SetBaseLockValues()
Referenced by CombinationLock()
override void EEInit()
void SetInitialized()
References m_IsInitialized
override bool IsInitialized()
References m_IsInitialized
override void OnItemLocationChanged(EntityAI old_owner, EntityAI new_owner)
override void OnStoreSave(ParamsWriteContext ctx)
void ResetActionVar()
override void OnVariablesSynchronized()
void SetCombination(int combination, bool setOtherSide = true)
void SetCombinationInside(int combination, bool setOtherSide = true)

Set both combinations when lock is not attached and combination is changed (while in hands).

void SetCombinationLocked(int combination)

Set both combinations when lock is not attached and combination is changed (while in hands).

Referenced by LockServer()
int GetCombination()
References m_Combination
int GetCombinationInside()
int GetLockDigits()
References m_LockDigits
int GetDialIndex()
References m_DialIndex
int GetDialIndexInside()
protected void ShuffleLock()
Referenced by LockServer()
void CheckLockedStateServer(bool insideLock = false)
protected void DestroyLock()
protected void ShowItem()
protected void HideItem()
protected void ShowAttached()
protected void HideAttached()
override void SetActions()
static float GetDigitRotation(int digitValue)
protected void SetDigitRotationAnimationPhaseOutside(string digitIndex, float rot)
protected void SetDigitRotationAnimationPhaseInside(string digitIndex, float rot)
protected void AnimateDigitsOutside(string digitIndex)
Referenced by UpdateVisuals()
protected void AnimateDigitsInside(string digitIndex)
Referenced by UpdateVisuals()
override bool IsExternalLockType()
protected void SoundLockOpen()

DEPRECTAED

protected void SoundLockClose()
protected void SoundLockChangeNumber()
protected void SoundLockChangeDial()
bool IsLockedOnGate()
void Unlock()
void SetDigitRotationAnimationPhase(string digitIndex, float rot)
void AnimateDigits(string digitIndex)