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

◆ GetParticleID()

static int ParticleList::GetParticleID ( string particle_file)
inlinestaticprivate

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

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

492 {
493 int id = m_ParticlePaths.GetKeyByValue(particle_file);
494 if (!IsValidId(id)) // valid id starts from 1, 0 is invalid
495 ErrorEx(string.Format("No particle registered with path: %1", particle_file), ErrorExSeverity.WARNING);
496 return id;
497 }
static ref map< int, string > m_ParticlePaths
Определения ParticleList.c:13
static bool IsValidId(int id)
Purely checks for an invalid number, does NOT mean it is actually registered.
Определения ParticleList.c:470
ErrorExSeverity
Определения EnDebug.c:62
enum ShapeType ErrorEx

Перекрестные ссылки ErrorEx, IsValidId() и m_ParticlePaths.

Используется в EffectAreaLoader::CreateZones() и ParticleSource::GetParticleIDLegacy().