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

◆ Update()

override void GameplayEffectsData::Update ( float timeSlice = 0,
Param p = null,
int handle = -1 )
inlineprotected

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

155 {
156 //starts or ends a bleeding indicator
157 if (p)
158 {
159 //start/stop of the indicator
160 //<state,bit,position,immediate>
161 Param4<bool,int,vector,bool> par;
162
163 //hide/show of bleeding effect visuals
164 //<state>
165 Param1<bool> parShow;
166
167 if (Class.CastTo(par,p))
168 {
169 bool state = par.param1;
170 if (state) //queue add indicator
171 {
172 SpawnBleedingIndicator(par.param2,par.param3);
173 }
174 else //queue stop indicator
175 {
176 StopBleedingIndicator(par.param2,par.param4);
177 }
178 }
179 else if (Class.CastTo(parShow,p) && m_Visible != parShow.param1)
180 {
181 m_Visible = parShow.param1;
183 }
184 }
185
186 //updates bleeding indicators
187 UpdateBleedingIndicators(timeSlice);
189
190 if (m_RunningIndicators.Count() <= 0)
191 {
192 GetGame().GetMission().GetEffectWidgets().RemoveActiveEffects({EffectWidgetsTypes.BLEEDING_LAYER});
193 m_WidgetArray.ShuffleArray();
194 }
195 }
proto native Mission GetMission()
override void RemoveActiveEffects(array< int > effects)
Определения GameplayEffectWidgets.c:301
void CleanupBleedingIndicators()
Определения GEWidgetsMetaDataBleeding.c:145
void SpawnBleedingIndicator(int source_ID, vector position)
Определения GEWidgetsMetaDataBleeding.c:87
ref array< int > m_RunningIndicators
Определения GEWidgetsMetaDataBleeding.c:9
void StopBleedingIndicator(int source_ID, bool instant=false)
Определения GEWidgetsMetaDataBleeding.c:126
void UpdateBleedingIndicators(float timeSlice)
Определения GEWidgetsMetaDataBleeding.c:131
Widget m_BloodDropsFrame
Определения GEWidgetsMetaDataBleeding.c:14
GameplayEffectWidgets_base GetEffectWidgets()
proto native CGame GetGame()

Перекрестные ссылки Class::CastTo(), CleanupBleedingIndicators(), Mission::GetEffectWidgets(), GetGame(), CGame::GetMission(), m_BloodDropsFrame, m_RunningIndicators, m_Visible, GameplayEffectWidgets_base::RemoveActiveEffects(), SpawnBleedingIndicator(), StopBleedingIndicator() и UpdateBleedingIndicators().

Используется в GameplayEffectWidgets_base::UpdateWidgets().