Hold description of a set of animation
struct IAnimationSet { };
ICryAnimation.h
This interface hold a set of animation in which each animation is described as properties.
virtual ~IAnimationSet();
virtual void AddRef(const int32 nAnimationId) const = 0;
Retrieves the amount of animation.
virtual uint32 GetAnimationCount() const = 0;
An integer holding the amount of animation
virtual bool GetAnimationDCCWorldSpaceLocation(const CAnimation* pAnim, QuatT& startLocation, uint32 nControllerID) const = 0;
Retrieve the 'DCC world space' location of the current frame.
Returns true on success. Returns false and IDENTITY when animation is invalid.
virtual bool GetAnimationDCCWorldSpaceLocation(const char* szAnimationName, QuatT& startLocation) const = 0;
Retrieve the 'DCC world space' location of the first frame.
Returns true on success. Returns false and IDENTITY when animation is invalid.
virtual bool GetAnimationDCCWorldSpaceLocation(int32 AnimID, QuatT& startLocation) const = 0;
Retrieve the 'DCC world space' location of the first frame.
Returns true on success. Returns false and IDENTITY when animation is invalid.
virtual uint32 GetAnimationFlags(int nAnimationId) const = 0;
virtual uint32 GetAnimationSize(const uint32 nAnimationId) const = 0;
virtual int GetAnimIDByCRC(uint32 animationCRC) const = 0;
Searches for the index of an animation using its name.
virtual int GetAnimIDByName(const char* szAnimationName) const = 0;
Parameters |
Description |
const char* szAnimationName |
Null terminated string holding the name of the animation. |
An integer representing the index of the animation. In case the animation couldn't be found, -1 will be returned.
! Returns the index of the animation in the set, -1 if there's no such animation
virtual uint32 GetCRCByAnimID(int nAnimationId) const = 0;
virtual f32 GetDuration_sec(int nAnimationId) const = 0;
virtual const char* GetFilePathByID(int nAnimationId) const = 0;
virtual const char* GetFilePathByName(const char* szAnimationName) const = 0;
virtual uint32 GetFilePathCRCByAnimID(int nAnimationId) const = 0;
Gets the name of the specified animation.
virtual const char* GetNameByAnimID(int nAnimationId) const = 0;
Parameters |
Description |
int nAnimationId |
Id of an animation. |
A null terminated string holding the name of the animation. In case the animation wasn't found, the string "!NEGATIVE ANIMATION ID!" will be returned.
! Returns the given animation name
virtual bool IsAimPose(int nAnimationId, const IDefaultSkeleton& defaultSkeleton) const = 0;
virtual bool IsAnimLoaded(int nAnimationId) const = 0;
virtual bool IsLookPose(int nAnimationId, const IDefaultSkeleton& defaultSkeleton) const = 0;
virtual void Release(const int32 nAnimationId) const = 0;