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

◆ GetParticleIDByName()

static int ParticleList::GetParticleIDByName ( string name)
inlinestaticprivate

Returns particle's ID based on the filename (without .ptc suffix)

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

501 {
502 int id = 0;
503 if (!m_ParticleNames.Find(name, id))
504 ErrorEx(string.Format("No particle registered with name: %1", name), ErrorExSeverity.WARNING);
505 return id;
506 }
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
static ref map< string, int > m_ParticleNames
Определения ParticleList.c:14
ErrorExSeverity
Определения EnDebug.c:62
enum ShapeType ErrorEx

Перекрестные ссылки ErrorEx, m_ParticleNames и name.

Используется в WeaponParticlesBase::CheckParticleOverride(), AmmoEffects::GetAmmoParticleID(), ParticleSource::GetParticleID(), Ammo_40mm_Smoke_ColorBase::OnVariablesSynchronized(), MiscEffects::PlayVegetationCollideParticles() и WeaponParticlesBase::WeaponParticlesBase().