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

◆ GetAmmoEffectTypename()

static AmmoEffects::GetAmmoEffectTypename ( string ammoType)
inlinestaticprivate

Get the typename for the effect for this ammoType.

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

73 {
74 typename typeName;
75
76 // Search for it in the static map
77 if ( !m_AmmoEffects.Find(ammoType, typeName) )
78 {
79 // Load it in when we can't find it
80 string effectName;
81 g_Game.ConfigGetText(string.Format("cfgAmmo %1 effect", ammoType), effectName);
82
83 // If we found a valid entry, try looking for it in ParticleList
84 if ( effectName != "" )
85 {
86 typeName = effectName.ToType();
87 }
88
89 // Store it for next search
90 m_AmmoEffects.Insert(ammoType, typeName);
91 }
92
93 return typeName;
94 }
DayZGame g_Game
Определения DayZGame.c:4074
string ammoType
Определения DustKickupEffects.c:24
static ref map< string, typename > m_AmmoEffects
Key: Ammo class name; Data: ParticleList ID.
Определения AmmoEffects.c:12
proto native ToType()
Returns internal type representation. Can be used in runtime, or cached in variables and used for fas...

Перекрестные ссылки ammoType, g_Game, m_AmmoEffects и string::ToType().

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