253 float color[4] = {0, 0, 0, 0};
Param2< string, ref array< float > > PPETemplateDefVector
Param4< string, float, float, float > PPETemplateDefFloat
Param2< string, string > PPETemplateDefResource
Param2< string, string > PPETemplateDefTexture
Param4< string, int, int, int > PPETemplateDefInt
Param5< string, float, float, float, float > PPETemplateDefColor
Param2 PPETemplateDefBool
void PPEMatClassParameterColor(int mat_idx, int parameter_idx, PPEClassBase parent)
void PPEMatClassParameterFloat(int mat_idx, int parameter_idx, PPEClassBase parent)
Super root of all classes in Enforce script.
proto void SetParamByIndex(int paramIndex, void value)
Created once, on manager init. Script-side representation of C++ material class, separate handling.
void ChangeMaterialPathUsed(string path)
ref map< int, ref array< int > > m_ParameterUpdateQueueMap
void InsertParamValueData(PPERequestParamDataBase request_data)
Distributes requester data to the material class structure and links them to appropriate parameter.
void RegisterParameterScalarFloat(int idx, string parameter_name, float default_value, float min, float max)
WARNING - min/max values are usually taken from Workbench defaults, may not be actual min/max values ...
void RegisterParameterVector(int idx, string parameter_name, array< float > default_values)
void DbgPrnt(string text)
string GetDefaultMaterialPath()
override this if you want to use different path by default; '.emat' is appended automatically
void Init(string mat_path_override="")
void SetFinalParameterValue(int parameter_idx)
Clamps the values being set to defaults, if there is no request setting non-zero values on the parame...
void RegisterParameterColorEx(int idx, string parameter_name, float r, float g, float b, float a, typename type)
WARNING - min/max values are usually taken from Workbench defaults, may not be actual min/max values ...
void RegisterParameterScalarInt(int idx, string parameter_name, int default_value, int min, int max)
void RegisterParameterScalarBool(int idx, string parameter_name, bool default_value)
void ParamUpdateQueueCleanup(int order)
void RegisterParameterResource(int idx, string parameter_name, string default_path)
ref array< int > m_ParameterRemovalQueue
void RemoveRequest(int req_idx)
unused, see 'RemoveActiveRequestFromMaterials' for more info
void InsertUpdatedParameter(int mat_id)
void RegisterParameterScalarFloatEx(int idx, string parameter_name, float default_value, float min, float max, typename type)
WARNING - min/max values are usually taken from Workbench defaults, may not be actual min/max values ...
void RegisterMaterialParameters()
inserted into associative array by parameter int value, parameter registration order does not matter ...
string GetCurrentMaterialPath()
void OnUpdate(float timeslice, int order)
generic update method, take care when overriding!
void SetParameterUpdating(int order, int parameter_id)
Queue specific parameter of this material to update.
void CreateDataStructure()
void RegisterParameterTexture(int idx, string parameter_name, string default_path)
int GetPostProcessEffectID()
Overriden in all material classes!
void RegisterParameterColor(int idx, string parameter_name, float r, float g, float b, float a)
WARNING - min/max values are usually taken from Workbench defaults, may not be actual min/max values ...
void ParamUpdateRemove(int parameter_idx)
Queue selected parameter for removal from the update queue.
PPEMatClassParameterCommandData GetParameterCommandData(int parameter_idx)
Some PP effects are handled as hard-coded exceptions, outside of material system. Default == PPEExcep...
ref array< int > m_UpdatedParameters
ref map< int, ref PPEMatClassParameterCommandData > m_MaterialParamMapStructure
void PPEClassBase(string mat_path_override="")
Static component of PPE manager, used to hold the instance.
static PPEManager GetPPEManager()
Returns the manager instance singleton.
override int GetParameterVarType()
Param GetCurrentValues()
Careful, only actual values, WITHOUT string.
Data for one material parameter, requester side.
Base Param Class with no parameters. Used as general purpose parameter overloaded with Param1 to Para...
proto native CGame GetGame()
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.