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

◆ UpdateVisuals()

void UpdateVisuals ( )
private

См. определение в файле CodeLockVisualManager.c строка 91

92 {
94 #ifdef CODELOCKCOMPONENT_LOG
95 if (m_CurrentLightState != newLightState)
96 ErrorEx(string.Format("Current light state=%1 | New light state=%2", typename.EnumToString(CodeLockLightState, m_CurrentLightState), typename.EnumToString(CodeLockLightState, newLightState)), ErrorExSeverity.INFO);
97 #endif
98
99 bool lightStateChanged = m_FullVisualUpdate || (newLightState != m_CurrentLightState);
100 bool animationsChanged = m_FullVisualUpdate || HasAnimationsChanged();
101 bool batteryLevelChanged = m_FullVisualUpdate || HasBatteryLevelChanged();
102
103 // Only update if something actually changed or we're marked dirty
104 if (!m_FullVisualUpdate && !lightStateChanged && !animationsChanged && !batteryLevelChanged)
105 {
106 #ifdef CODELOCKCOMPONENT_LOG
107 ErrorEx("No visual changes detected, skipping update of visuals..", ErrorExSeverity.INFO);
108 #endif
109 return;
110 }
111
112 if (lightStateChanged)
113 {
114 SetLightState(newLightState);
115 }
116
117 if (animationsChanged)
118 {
120 }
121
122 if (batteryLevelChanged)
123 {
125 }
126
127 m_FullVisualUpdate = false;
128 }
void UpdateAnimations()
Определения CodeLockVisualManager.c:385
bool m_FullVisualUpdate
Определения CodeLockVisualManager.c:28
bool HasBatteryLevelChanged()
Определения CodeLockVisualManager.c:157
CodeLockLightState
Определения CodeLockVisualManager.c:3
bool HasAnimationsChanged()
Определения CodeLockVisualManager.c:131
CodeLockLightState m_CurrentLightState
Определения CodeLockVisualManager.c:17
void UpdateBatteryIndicator()
Определения CodeLockVisualManager.c:471
CodeLockLightState DetermineRequiredLightState()
Определения CodeLockVisualManager.c:176
void SetLightState(CodeLockLightState newState)
Определения CodeLockVisualManager.c:212
ErrorExSeverity
Определения EnDebug.c:62
enum ShapeType ErrorEx

Перекрестные ссылки DetermineRequiredLightState(), ErrorEx, HasAnimationsChanged(), HasBatteryLevelChanged(), m_CurrentLightState, m_FullVisualUpdate, SetLightState(), UpdateAnimations() и UpdateBatteryIndicator().

Используется в BaseBuildingBase::AfterStoreLoad(), EEInit(), ItemBase::EEInit(), TerritoryFlag::FullyBuild(), InitVisuals(), Plastic_Explosive::OnDisarmed(), BaseBuildingBase::OnPartBuiltServer(), BaseBuildingBase::OnPartDestroyedServer(), BaseBuildingBase::OnPartDismantledServer(), ImprovisedExplosive::OnTriggerAttached(), Plastic_Explosive::OnTriggerAttached(), ImprovisedExplosive::OnTriggerDetached(), Plastic_Explosive::OnTriggerDetached(), ImprovisedExplosive::OnVariablesSynchronized(), OnVariablesSynchronized(), Plastic_Explosive::OnVariablesSynchronized() и Synchronize().