DayZ 1.28
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 строка 495

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

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

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