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

◆ ChangePPEMaterial()

void ChangePPEMaterial ( PostProcessPrioritiesCamera priority,
PostProcessEffectType type,
string path,
bool scriptside_only )
protected

Changes material file associated with the script material class. Will be used very rarely, mostly set in C++ anyway.

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

357 {
358 if (m_PPEClassMap.Contains(type))
359 {
360 PPEClassBase mat_class = m_PPEClassMap.Get(type);
361 typename name = mat_class.Type();
362 PPEClassBase postprocess_capsule = PPEClassBase.Cast(name.Spawn());
363 postprocess_capsule.ChangeMaterialPathUsed(path);
364
365 if (postprocess_capsule.GetMaterial() == 0x0)
366 {
367 Debug.Log("PPEManager | Invalid material path " + path + " used for " + name );
368 return;
369 }
370
371 //m_PPEClassMap.Remove(type);
372 m_PPEClassMap.Set(type,postprocess_capsule);
373 }
374
375 //can be sent script-side only to adapt to c++ options changes
376 if (!scriptside_only)
378 }
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
string path
Определения OptionSelectorMultistate.c:142
class PPEManagerStatic CAMERA_ID
ref map< int, ref PPEClassBase > m_PPEClassMap
Определения PPEManager.c:58
static void Log(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
Prints debug message with normal prio.
Определения Debug.c:122
Определения Debug.c:2
void ChangeMaterialPathUsed(string path)
Определения PPEMatClassesBase.c:326
Material GetMaterial()
Определения PPEMatClassesBase.c:41
Created once, on manager init. Script-side representation of C++ material class, separate handling.
Определения PPEMatClassesBase.c:3
proto native void SetCameraPostProcessEffect(int cam, int priority, PostProcessEffectType type, string materialPath)

Перекрестные ссылки CAMERA_ID, PPEClassBase::ChangeMaterialPathUsed(), PPEClassBase::GetMaterial(), Debug::Log(), m_PPEClassMap, name, path и SetCameraPostProcessEffect().