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

◆ UpdateSelections()

void Hologram::UpdateSelections ( )
inlineprotected

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

199 {
200 string cfg_access = "CfgVehicles " + m_Projection.GetType() + " AnimationSources ";
201
202 if ( GetGame().ConfigIsExisting(cfg_access) )
203 {
204 int cfg_access_count = g_Game.ConfigGetChildrenCount(cfg_access);
205
206 for ( int i = 0; i < cfg_access_count; ++i )
207 {
208 string found_anim;
209 GetGame().ConfigGetChildName(cfg_access, i, found_anim);
210
211 float anim_phase = m_Parent.GetAnimationPhase(found_anim);
212 m_Projection.SetAnimationPhase(found_anim, anim_phase);
213 }
214 }
215 }
DayZGame g_Game
Определения DayZGame.c:3868
proto bool ConfigGetChildName(string path, int index, out string name)
Get name of subclass in config class on path.
EntityAI m_Projection
Определения Hologram.c:22
ItemBase m_Parent
Определения Hologram.c:21
proto native CGame GetGame()

Перекрестные ссылки CGame::ConfigGetChildName(), g_Game, GetGame(), m_Parent и m_Projection.

Используется в SetAnimations().