Enumerations | |
| enum | LockAction { NONE , DIAL_NUMBER_CHANED , DIAL_INDEX_CHANGED , LOCKED , UNLOCKED , COUNT } |
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 |
| enum LockAction |
| override void AfterStoreLoad | ( | ) |
References GetGame(), LockServer(), and Synchronize().
| void CheckLockedStateServer | ( | ) |
References m_Combination, m_CombinationLocked, and m_IsLocked.
Referenced by DialNextNumber(), LockServer(), and UnlockServer().
| void CombinationLock | ( | ) |
References m_LockDigits, Math::Pow(), and CombinationLock::SetBaseLockValues().
| void DestroyLock | ( | ) |
References GetGame(), and CGame::ObjectDelete().
| void DialNextNumber | ( | ) |
| override void EEInit | ( | ) |
| int GetCombination | ( | ) |
References m_Combination.
| int GetDialIndex | ( | ) |
References m_DialIndex.
| int GetLockDigits | ( | ) |
References m_LockDigits.
| protected void HideAttached | ( | ) |
Referenced by UpdateVisuals().
| protected void HideItem | ( | ) |
Referenced by UpdateVisuals().
| override bool IsInitialized | ( | ) |
References m_IsInitialized.
Referenced by ItemBase::EEItemAttached(), OnItemLocationChanged(), OnVariablesSynchronized(), GeyserTrigger::OnVariablesSynchronized(), and ItemBase::OnWorkStart().
| bool IsLockAttached | ( | ) |
Referenced by LockServer(), and UnlockServer().
| bool IsLocked | ( | ) |
References m_IsLocked.
| bool IsLockedOnGate | ( | ) |
References IsLocked().
Referenced by UpdateVisuals().
References bsbDebugPrint(), CheckLockedStateServer(), InventoryLocation::GetSlot(), LogManager::IsBaseBuildingLogEnable(), IsLockAttached(), m_Combination, m_CombinationLocked, m_LockActionPerformed, SetCombinationLocked(), SetTakeable(), ShuffleLock(), and Synchronize().
Referenced by AfterStoreLoad(), and OnItemLocationChanged().
References GetGame(), IsInitialized(), and LockServer().
| override bool OnStoreLoad | ( | ParamsReadContext | ctx, |
| int | version | ||
| ) |
References m_Combination, m_CombinationLocked, and Serializer::Read().
| override void OnStoreSave | ( | ParamsWriteContext | ctx | ) |
References m_Combination, m_CombinationLocked, and Serializer::Write().
| override void OnVariablesSynchronized | ( | ) |
| void ResetActionVar | ( | ) |
References m_LockActionPerformed.
Referenced by Synchronize().
| override void SetActions | ( | ) |
References ActionDialCombinationLock(), ActionDialCombinationLockOnTarget(), and AddAction().
| protected void SetBaseLockValues | ( | ) |
References m_Combination, m_CombinationLocked, m_IsLocked, and m_LockDigits.
| void SetCombination | ( | int | combination | ) |
References m_Combination.
Referenced by DialNextNumber(), and ShuffleLock().
| void SetCombinationLocked | ( | int | combination | ) |
References m_CombinationLocked.
Referenced by LockServer().
| void SetInitialized | ( | ) |
References m_IsInitialized.
Referenced by EEInit().
| void SetNextDial | ( | ) |
References m_DialIndex, m_LockActionPerformed, m_LockDigits, and Synchronize().
| protected void ShowAttached | ( | ) |
Referenced by UpdateVisuals().
| protected void ShowItem | ( | ) |
Referenced by UpdateVisuals().
| void ShuffleLock | ( | ) |
References string::Get(), string::Length(), m_Combination, m_LockDigits, Math::RandomInt(), SetCombination(), and string::ToInt().
Referenced by LockServer().
| void SoundLockChangeDial | ( | ) |
References m_Sound, and SOUND_LOCK_CHANGE_DIAL.
Referenced by UpdateSound().
| void SoundLockChangeNumber | ( | ) |
References m_Sound, and SOUND_LOCK_CHANGE_NUMBER.
Referenced by UpdateSound().
| protected void SoundLockClose | ( | ) |
References m_Sound, and SOUND_LOCK_CLOSE.
Referenced by UpdateSound().
| protected void SoundLockOpen | ( | ) |
References m_Sound, and SOUND_LOCK_OPEN.
Referenced by UpdateSound().
| void Synchronize | ( | ) |
References bsbDebugPrint(), CALL_CATEGORY_SYSTEM, ScriptCallQueue::CallLater(), CGame::GetCallQueue(), GetGame(), LogManager::IsBaseBuildingLogEnable(), m_Combination, m_CombinationLocked, ResetActionVar(), and UpdateVisuals().
Referenced by AfterStoreLoad(), CheckValue(), DialNextNumber(), Car::EEItemAttached(), Car::EEItemDetached(), Weapon::FillChamber(), Weapon::FillInnerMagazine(), Heating(), LockServer(), RefreshAudioVisualsOnClient(), RemoveAudioVisualsOnClient(), SetFireState(), SetNextDial(), SetOvenState(), SetStoneCircleState(), Weapon::SpawnAttachedMagazine(), StartFire(), StopFire(), and UnlockServer().
References bsbDebugPrint(), CheckLockedStateServer(), GetGame(), InventoryLocation::GetSlot(), LogManager::IsBaseBuildingLogEnable(), IsLockAttached(), EntityAI::LocalDropEntity(), m_Combination, m_CombinationLocked, m_LockActionPerformed, EntityAI::ServerDropEntity(), SetPosition(), SetTakeable(), and Synchronize().
| void UpdateSound | ( | ) |
References m_LockActionPerformed, SoundLockChangeDial(), SoundLockChangeNumber(), SoundLockClose(), and SoundLockOpen().
Referenced by OnVariablesSynchronized().
| void UpdateVisuals | ( | ) |
| int m_Combination |
| int m_CombinationLocked |
| int m_DialIndex |
Referenced by DialNextNumber(), GetDialIndex(), and SetNextDial().
| protected bool m_IsInitialized |
Referenced by IsInitialized(), and SetInitialized().
| protected bool m_IsLocked |
| protected LockAction m_LockActionPerformed = LockAction.NONE |
Referenced by DialNextNumber(), LockServer(), OnVariablesSynchronized(), ResetActionVar(), SetNextDial(), UnlockServer(), and UpdateSound().
| enum LockAction m_LockDigits |
| protected EffectSound m_Sound |
| const string SOUND_LOCK_CHANGE_DIAL = "combinationlock_changedial_SoundSet" |
Referenced by SoundLockChangeDial().
| const string SOUND_LOCK_CHANGE_NUMBER = "combinationlock_changenumber_SoundSet" |
Referenced by SoundLockChangeNumber().
| const string SOUND_LOCK_CLOSE = "combinationlock_close_SoundSet" |
Referenced by SoundLockClose().
| const string SOUND_LOCK_OPEN = "combinationlock_open_SoundSet" |
Referenced by SoundLockOpen().