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

◆ LoadDustEffectPaths()

void DustKickupEffects::LoadDustEffectPaths ( )
inlineprivate

Going over all surfaces, extracting all dust particles paths from each surface.

Iterating over each surface that is in the config

Iterating over every effect that is inside the DustEffects class

Getting the path from a specific effect stored inside the DUstEffects class in the surface

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

136 {
137 string configPath = "CfgSurfaces ";
138 string childClass = "";
139
140 int count = g_Game.ConfigGetChildrenCount(configPath);
141
143 for (int i = 0; i < count; ++i)
144 {
145 g_Game.ConfigGetChildName(configPath, i, childClass);
146
148
149 int effectsCount = g_Game.ConfigGetChildrenCount(configPath + childClass + " DustEffects");
150
152 for (int j = 0; j < effectsCount; j++)
153 {
154 string dustPath = " ";
155 string effectClass = " ";
156
157 g_Game.ConfigGetChildName(configPath + childClass + " DustEffects", j, effectClass);
158
160 g_Game.ConfigGetText(configPath + childClass + " DustEffects" + " " + effectClass + " path", dustPath);
161
162 if (dustPath.Length() > 1)
163 {
164 int particleID = ParticleList.RegisterParticleByFullPath(dustPath);
165 dustEffectParticles.Insert(effectClass, new DustKickupParticleData(dustPath, particleID, effectClass));
166 }
167 }
168 if (effectsCount > 0)
169 {
170 m_DustEffPaths.Insert(childClass, dustEffectParticles);
171 }
172 }
173 }
map
Определения ControlsXboxNew.c:4
DayZGame g_Game
Определения DayZGame.c:4074
class DustKickupEffectDistanceData DustKickupParticleData
ref map< string, ref map< string, ref DustKickupParticleData > > m_DustEffPaths
Определения DustKickupEffects.c:47
proto native int Length()
Returns length of string.

Перекрестные ссылки DustKickupParticleData, g_Game, string::Length(), m_DustEffPaths и ParticleList::RegisterParticleByFullPath().

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