27#include "Utils/CInterpolator.h"
28#include "ParticleSystem/Particles/CParticle.h"
29#include "ParticleSystem/Particles/CParticleSerializable.h"
43 class COMPONENT_API CModel :
public CParticleSerializable
67 std::string m_typeName;
121 inline CModel*
setEnd(
float f1,
float f2)
153 float getStartValue1()
158 void setStartValue1(
float f)
163 float getStartValue2()
168 void setStartValue2(
float f)
178 void setEndValue1(
float f)
188 void setEndValue2(
float f)
211 virtual const char* getTypeName();
Keyframe interpolator for scalar, vector, and color values.
Definition CInterpolator.h:146
Definition CObjectSerializable.h:36
Represents a group of particles with shared settings, emitters, and a renderer.
Definition CGroup.h:132
CModel * setEnd(float f)
Sets fixed end value.
Definition CModel.h:112
bool isEnableEndValue()
Checks if end value is enabled.
Definition CModel.h:130
bool isRandomEnd()
Checks if end is random.
Definition CModel.h:148
float getRandomEnd()
Generates a random end value from range.
float getRandomStart()
Generates a random start value from range.
void setInterpolator(CInterpolator *interpolate)
Sets a custom curve for parameter animation.
Definition CModel.h:200
CModel * setStart(float f)
Sets fixed start value.
Definition CModel.h:94
EParticleParams m_type
The parameter type being animated.
Definition CModel.h:47
const wchar_t * getName()
Gets the display name of the model.
virtual void loadSerializable(CObjectSerializable *object)
Loads properties from a serializable object.
CGroup * getGroup()
Gets parent group.
Definition CModel.h:88
bool m_randomStart
If true, picks a random start value between start1 and start2.
Definition CModel.h:50
CInterpolator * m_interpolator
Optional custom curve for interpolation.
Definition CModel.h:65
CModel * setEnd(float f1, float f2)
Sets random end range.
Definition CModel.h:121
virtual CObjectSerializable * createSerializable()
Creates a serializable object for property editing or saving.
bool isRandomStart()
Checks if start is random.
Definition CModel.h:142
CInterpolator * getInterpolator()
Gets current interpolator.
Definition CModel.h:206
CGroup * m_group
Parent group.
Definition CModel.h:62
CModel * setStart(float f1, float f2)
Sets random start range.
Definition CModel.h:103
bool m_enableEndValue
Whether to interpolate towards an end value.
Definition CModel.h:55
void enableEndValue(bool b)
Enables or disables interpolation to end value.
Definition CModel.h:136
bool m_randomEnd
If true, picks a random end value between end1 and end2.
Definition CModel.h:57
EParticleParams getType()
Gets the parameter type.
Definition CModel.h:82
EParticleParams
IDs for particle parameters that can be animated over time.
Definition CParticle.h:39
Everything in the Skylicht Engine. You can start by looking at the topics.
Definition AudioDebugLog.h:29