51 if (m_RequestMap.Count() > 0)
57 m_Parent.ParamUpdateRemove(m_ParameterIndex);
61 for (
int i = 0;
i < m_RequestMap.Count();
i++)
67 Error(
"Debug | PPEMatClassParameterFloat | req_data not found! | " +
this +
" | mat/par: " + m_MaterialIndex +
"/" + m_ParameterIndex);
102 req_data.SetUpdatingDataValues(
false);
137 operator =
m_LayerInfo.Get(m_CommandLayersArray.Get(
i)).Get(LAYER_INFO_OPERATOR);
202 m_CommandLayersArray.Clear();
214 m_Parent.ParamUpdateRemove(m_ParameterIndex);
PPOperators
PP operators, specify operation between subsequent layers.
ref map< int, ref ColorValuesData > m_LayerInfo
class PPEMatClassParameterFloat extends PPEMatClassParameterCommandData PPEMatClassParameterFloatSaturation(int mat_idx, int parameter_idx, PPEClassBase parent)
void PPEMatClassParameterFloat(int mat_idx, int parameter_idx, PPEClassBase parent)
PPETemplateDefFloat m_Float
void PPERequestParamDataFloat(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 PrepareLayerInfo(int layer, float value, int operator)
void AddPriorityInfo(int priority)
Adds 'layers' to be iterated throug.
override int GetParameterVarType()
PPETemplateDefFloat m_Float
override void InitDefaults()
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)
ref map< int, ref array< float, int > > m_LayerInfo
override void SetParameterValueDefault(inout Param p_total)
No active requests for the mat. parameter value change, sets the value to DEFAULT.
void PPEMatClassParameterFloat(int mat_idx, int parameter_idx, PPEClassBase parent)
Base Param Class with no parameters. Used as general purpose parameter overloaded with Param1 to Para...
PostProcessEffectType
Post-process effect type.
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 Lerp(float a, float b, float time)
Linearly interpolates between 'a' and 'b' given 'time'.
static proto float Min(float x, float y)
Returns smaller of two given values.
static proto float Clamp(float value, float min, float max)
Clamps 'value' to 'min' if it is lower than 'min', or to 'max' if it is higher than 'max'.