45 if (m_RequestMap.Count() > 0)
51 m_Parent.ParamUpdateRemove(m_ParameterIndex);
55 for (
int i = 0;
i < m_RequestMap.Count();
i++)
61 Error(
"PPEMatClassParameterBool | 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(
"PPEMatClassParameterBool | 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
void PPERequestParamDataBool(int requester_idx, int mat_id, int param_id, int data_type=0, int priority=0, int mask=PPOperators.SET, bool relative=false)
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.
PPETemplateDefBool m_Bool
override int GetParameterVarType()
void PPEMatClassParameterBool(int mat_idx, int parameter_idx, PPEClassBase parent)
override void InitDefaults()
ref map< int, ref array< bool, int > > m_LayerInfo
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.
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.