28#include "CAnimationClip.h"
35 class SKYLICHT_API CAnimation
38 std::vector<CAnimationClip*> m_clips;
39 std::map<std::string, CAnimationClip*> m_clipName;
44 virtual ~CAnimation();
53 return m_clipName[lpAnimName];
63 return m_clips[animID];
72 return (
int)m_clips.size();
84 m_clips.push_back(clip);
127 void renameClip(
const std::string& oldName,
const std::string& newName);
Represents an animation clip containing multiple animation tracks for different entities.
Definition CAnimationClip.h:41
std::string AnimName
The name of the animation clip.
Definition CAnimationClip.h:44
void sortAnimByName()
Sorts animation clips alphabetically by name.
CAnimationClip * getAnim(const char *lpAnimName)
Gets an animation clip by name.
Definition CAnimation.h:51
std::vector< CAnimationClip * > * getAllAnimClip()
Returns the internal vector of animation clips.
Definition CAnimation.h:97
void removeClip(const std::string &clipName)
Removes a specific animation clip by name.
void renameClip(const std::string &oldName, const std::string &newName)
Renames an animation clip.
CAnimationClip * getAnim(int animID)
Gets an animation clip by index.
Definition CAnimation.h:61
void addClip(CAnimationClip *clip)
Adds a new animation clip to the collection.
Definition CAnimation.h:79
int getAnimCount()
Gets the total number of animation clips.
Definition CAnimation.h:70
void removeAll()
Removes all animation clips from the collection.
std::map< std::string, CAnimationClip * > * getAllAnimNameClip()
Returns the internal map of animation clips.
Definition CAnimation.h:106
Everything in the Skylicht Engine. You can start by looking at the topics.
Definition AudioDebugLog.h:29