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

◆ GetAmmoParticleID()

static int AmmoEffects::GetAmmoParticleID ( string ammoType)
inlinestaticprivate

Get the ParticleList ID for the particle for this ammoType.

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

23 {
24 int particleID;
25
26 // Search for it in the static map
27 if ( !m_AmmoParticles.Find(ammoType, particleID) )
28 {
29 // Load it in when we can't find it
30 string particleFileName;
31 g_Game.ConfigGetText(string.Format("cfgAmmo %1 particle", ammoType), particleFileName);
32
33 // If we found a valid entry, try looking for it in ParticleList
34 if ( particleFileName != "" )
35 {
36 particleID = ParticleList.GetParticleIDByName(particleFileName);
37 }
38
39 // Store it for next search
40 m_AmmoParticles.Insert(ammoType, particleID);
41 }
42
43 return particleID;
44 }
DayZGame g_Game
Определения DayZGame.c:4074
string ammoType
Определения DustKickupEffects.c:24
static ref map< string, int > m_AmmoParticles
Key: Ammo class name; Data: ParticleList ID.
Определения AmmoEffects.c:9

Перекрестные ссылки ammoType, g_Game, ParticleList::GetParticleIDByName() и m_AmmoParticles.