45 if (m_RequestMap.Count() > 0)
51 m_Parent.ParamUpdateRemove(m_ParameterIndex);
55 for (
int i = 0;
i < m_RequestMap.Count();
i++)
57 req_data = PPERequestParamDataInt.Cast(m_RequestMap.GetElement(
i));
61 Error(
"Debug | PPEMatClassParameterInt | req_data not found! | " +
this +
" | mat/par: " + m_MaterialIndex +
"/" + m_ParameterIndex);
96 req_data.SetUpdatingDataValues(
false);
127 operator =
m_LayerInfo.Get(m_CommandLayersArray.Get(
i)).Get(LAYER_INFO_OPERATOR);
148 Error(
"PPEMatClassParameterInt | Invalid operator " +
operator +
" in mat/par: " + m_MaterialIndex +
"/" + m_ParameterIndex);
159 m_CommandLayersArray.Clear();
165 m_Parent.ParamUpdateRemove(m_ParameterIndex);
PPOperators
PP operators, specify operation between subsequent layers.
ref map< int, ref ColorValuesData > m_LayerInfo
Super root of all classes in Enforce script.
Created once, on manager init. Script-side representation of C++ material class, separate handling.
void AddPriorityInfo(int priority)
Adds 'layers' to be iterated throug.
void PrepareLayerInfo(int layer, int value, int operator)
override int GetParameterVarType()
override void InitDefaults()
void PPEMatClassParameterInt(int mat_idx, int parameter_idx, PPEClassBase parent)
override void Update(float timeslice, out Param p_total, out bool setting_defaults, int order)
override void InitCuttent()
void PrepareLayerInfo(int layer, bool value, int operator)
override void SetParameterValueDefault(inout Param p_total)
No active requests for the mat. parameter value change, sets the value to DEFAULT.
ref map< int, ref array< int, int > > m_LayerInfo
Base Param Class with no parameters. Used as general purpose parameter overloaded with Param1 to Para...
void Error(string err)
Messagebox with error message.
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.
static proto float Max(float x, float y)
Returns bigger of two given values.
static proto float Min(float x, float y)
Returns smaller of two given values.