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

◆ SetMaterialParamUpdating()

void SetMaterialParamUpdating ( int material_id,
int parameter_id,
int order )
protected

Queues material/parameter to update (once)

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

154 {
155 if ( order > PPEConstants.DEPENDENCY_ORDER_HIGHEST )
156 {
157 //DbgPrnt("PPEDebug | PPEManager - SetMaterialParamUpdating | Order higher than max, ignoring! | mat/par/ord: " + material_id + "/" + parameter_id + "/" + order);
158 return;
159 }
160
161 PPEClassBase mat_class = m_PPEClassMap.Get(material_id);
162
163 //DbgPrnt("PPEDebug | PPEManager - SetMaterialParamUpdating | mat/par: " + material_id + "/" + parameter_id);
164 //insert material into queue
165 if ( !m_PPEMaterialUpdateQueueMap.Contains(order) )
167
168 int found = m_PPEMaterialUpdateQueueMap.Get(order).Find(material_id);
169 if ( found == -1 )
170 {
171 m_PPEMaterialUpdateQueueMap.Get(order).Insert(material_id);
172 }
173
174 mat_class.SetParameterUpdating(order,parameter_id);
175 }
ref map< int, ref array< int > > m_PPEMaterialUpdateQueueMap
Определения PPEManager.c:59
ref map< int, ref PPEClassBase > m_PPEClassMap
Определения PPEManager.c:58
void SetParameterUpdating(int order, int parameter_id)
Queue specific parameter of this material to update.
Определения PPEMatClassesBase.c:295
Created once, on manager init. Script-side representation of C++ material class, separate handling.
Определения PPEMatClassesBase.c:3
Result for an object found in CGame.IsBoxCollidingGeometryProxy.

Перекрестные ссылки m_PPEClassMap, m_PPEMaterialUpdateQueueMap и PPEClassBase::SetParameterUpdating().

Используется в SendMaterialValueData().