DayZ 1.29
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 строка 506

507 {
508 int id = 0;
509 if (!m_ParticleNames.Find(name, id))
510 ErrorEx(string.Format("No particle registered with name: %1", name), ErrorExSeverity.WARNING);
511 return id;
512 }
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().