2021-12-05 17:54:36 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
// Custom Classes
|
|
|
|
#include "CDTable.h"
|
|
|
|
|
|
|
|
struct CDAnimations {
|
|
|
|
unsigned int animationGroupID; //!< The animation group ID
|
|
|
|
std::string animation_type; //!< The animation type
|
|
|
|
std::string animation_name; //!< The animation name
|
|
|
|
float chance_to_play; //!< The chance to play the animation
|
|
|
|
unsigned int min_loops; //!< The minimum number of loops
|
|
|
|
unsigned int max_loops; //!< The maximum number of loops
|
|
|
|
float animation_length; //!< The animation length
|
|
|
|
bool hideEquip; //!< Whether or not to hide the equip
|
|
|
|
bool ignoreUpperBody; //!< Whether or not to ignore the upper body
|
|
|
|
bool restartable; //!< Whether or not the animation is restartable
|
|
|
|
std::string face_animation_name; //!< The face animation name
|
|
|
|
float priority; //!< The priority
|
|
|
|
float blendTime; //!< The blend time
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2023-03-17 14:36:21 +00:00
|
|
|
class CDAnimationsTable : public CDTable<CDAnimationsTable> {
|
2021-12-05 17:54:36 +00:00
|
|
|
private:
|
|
|
|
std::vector<CDAnimations> entries;
|
2022-07-28 13:39:57 +00:00
|
|
|
|
2021-12-05 17:54:36 +00:00
|
|
|
public:
|
2023-03-17 14:36:21 +00:00
|
|
|
CDAnimationsTable();
|
|
|
|
// Queries the table with a custom "where" clause
|
2021-12-05 17:54:36 +00:00
|
|
|
std::vector<CDAnimations> Query(std::function<bool(CDAnimations)> predicate);
|
2022-07-28 13:39:57 +00:00
|
|
|
|
2021-12-05 17:54:36 +00:00
|
|
|
std::vector<CDAnimations> GetEntries(void) const;
|
|
|
|
};
|