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

498 {
499 int id = m_ParticlePaths.GetKeyByValue(particle_file);
500 if (!IsValidId(id)) // valid id starts from 1, 0 is invalid
501 ErrorEx(string.Format("No particle registered with path: %1", particle_file), ErrorExSeverity.WARNING);
502 return id;
503 }
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:476
ErrorExSeverity
Определения EnDebug.c:62
enum ShapeType ErrorEx

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

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