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

◆ Init()

void ConstructionPartEffectsData::Init ( string partPath,
ConstructionPartTypeData typeDataObject )
inlineprotected

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

18 {
19 string effectPath = partPath + " EffectsData";
20 if (!g_Game.ConfigIsExisting(effectPath)) //none of this is valid without an existing class
21 return;
22
23 int materialType = typeDataObject.GetMaterialType();
24
25 //none of this is valid without SOME defined position points..
26 if (g_Game.ConfigIsExisting(effectPath + " soundEffectPositions"))
27 {
28 g_Game.ConfigGetTextArray(effectPath + " soundEffectPositions", m_SoundEffectMemoryPointNames);
29
30 if (m_SoundEffectMemoryPointNames.Count() > 0)
31 {
32 m_IsValid = true;
33 InitConstructionSoundsData(effectPath, materialType);
34 }
35 }
36
37 if (g_Game.ConfigIsExisting(effectPath + " particleEffectPositions"))
38 {
39 g_Game.ConfigGetTextArray(effectPath + " particleEffectPositions", m_ParticleEffectMemoryPointNames);
40
42 {
43 m_IsValid = true;
44 InitConstructionParticleData(effectPath, materialType);
45 }
46 }
47 }
DayZGame g_Game
Определения DayZGame.c:4074
void InitConstructionSoundsData(string effectPath, int materialType)
Определения ConstructionEffects.c:49
ref array< string > m_SoundEffectMemoryPointNames
Определения ConstructionEffects.c:6
ref array< string > m_ParticleEffectMemoryPointNames
Определения ConstructionEffects.c:7
void InitConstructionParticleData(string effectPath, int materialType)
Определения ConstructionEffects.c:56
int GetMaterialType()
rough material type, used for effect playback
Определения ConstructionPartTyped.c:588

Перекрестные ссылки g_Game, ConstructionPartTypeData::GetMaterialType(), InitConstructionParticleData(), InitConstructionSoundsData(), m_IsValid, m_ParticleEffectMemoryPointNames и m_SoundEffectMemoryPointNames.