Olympe Engine 2.0
2D Game Engine with ECS Architecture
Loading...
Searching...
No Matches
Functions
Olympe::AnimationHelpers Namespace Reference

Functions

void SetParameter (VisualAnimation_data &animData, const std::string &name, float value)
 Set float parameter value.
 
void SetParameter (VisualAnimation_data &animData, const std::string &name, bool value)
 Set bool parameter value.
 
void SetParameter (VisualAnimation_data &animData, const std::string &name, int value)
 Set int parameter value.
 
float GetFloatParameter (const VisualAnimation_data &animData, const std::string &name, float defaultValue=0.0f)
 Get float parameter value with default.
 
bool GetBoolParameter (const VisualAnimation_data &animData, const std::string &name, bool defaultValue=false)
 Get bool parameter value with default.
 
int GetIntParameter (const VisualAnimation_data &animData, const std::string &name, int defaultValue=0)
 Get int parameter value with default.
 
bool HasParameter (const VisualAnimation_data &animData, const std::string &name)
 Check if parameter exists (any type)
 
void ClearParameters (VisualAnimation_data &animData)
 Clear all parameters.
 

Function Documentation

◆ ClearParameters()

void Olympe::AnimationHelpers::ClearParameters ( VisualAnimation_data animData)
inline

Clear all parameters.

Definition at line 96 of file AnimationHelpers.h.

References GetComponentTypeID_Static().

+ Here is the call graph for this function:

◆ GetBoolParameter()

bool Olympe::AnimationHelpers::GetBoolParameter ( const VisualAnimation_data animData,
const std::string &  name,
bool  defaultValue = false 
)
inline

Get bool parameter value with default.

Definition at line 64 of file AnimationHelpers.h.

References GetComponentTypeID_Static().

+ Here is the call graph for this function:

◆ GetFloatParameter()

float Olympe::AnimationHelpers::GetFloatParameter ( const VisualAnimation_data animData,
const std::string &  name,
float  defaultValue = 0.0f 
)
inline

Get float parameter value with default.

Definition at line 55 of file AnimationHelpers.h.

References GetComponentTypeID_Static().

+ Here is the call graph for this function:

◆ GetIntParameter()

int Olympe::AnimationHelpers::GetIntParameter ( const VisualAnimation_data animData,
const std::string &  name,
int  defaultValue = 0 
)
inline

Get int parameter value with default.

Definition at line 73 of file AnimationHelpers.h.

References GetComponentTypeID_Static().

+ Here is the call graph for this function:

◆ HasParameter()

bool Olympe::AnimationHelpers::HasParameter ( const VisualAnimation_data animData,
const std::string &  name 
)
inline

Check if parameter exists (any type)

Definition at line 86 of file AnimationHelpers.h.

References GetComponentTypeID_Static().

+ Here is the call graph for this function:

◆ SetParameter() [1/3]

void Olympe::AnimationHelpers::SetParameter ( VisualAnimation_data animData,
const std::string &  name,
bool  value 
)
inline

Set bool parameter value.

Definition at line 35 of file AnimationHelpers.h.

References GetComponentTypeID_Static().

+ Here is the call graph for this function:

◆ SetParameter() [2/3]

void Olympe::AnimationHelpers::SetParameter ( VisualAnimation_data animData,
const std::string &  name,
float  value 
)
inline

Set float parameter value.

Definition at line 27 of file AnimationHelpers.h.

References GetComponentTypeID_Static().

+ Here is the call graph for this function:

◆ SetParameter() [3/3]

void Olympe::AnimationHelpers::SetParameter ( VisualAnimation_data animData,
const std::string &  name,
int  value 
)
inline

Set int parameter value.

Definition at line 43 of file AnimationHelpers.h.

References GetComponentTypeID_Static().

+ Here is the call graph for this function: