2021-12-05 17:54:36 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
// Custom Classes
|
|
|
|
#include "CDTable.h"
|
|
|
|
|
|
|
|
struct CDSkillBehavior {
|
2024-01-09 07:54:14 +00:00
|
|
|
uint32_t skillID; //!< The Skill ID of the skill
|
|
|
|
UNUSED(uint32_t locStatus); //!< ??
|
|
|
|
uint32_t behaviorID; //!< The Behavior ID of the skill
|
|
|
|
uint32_t imaginationcost; //!< The imagination cost of the skill
|
|
|
|
uint32_t cooldowngroup; //!< The cooldown group ID of the skill
|
2022-07-28 13:39:57 +00:00
|
|
|
float cooldown; //!< The cooldown time of the skill
|
|
|
|
UNUSED(bool isNpcEditor); //!< ???
|
2024-01-09 07:54:14 +00:00
|
|
|
UNUSED(uint32_t skillIcon); //!< The Skill Icon ID
|
2022-07-28 13:39:57 +00:00
|
|
|
UNUSED(std::string oomSkillID); //!< ???
|
2024-01-09 07:54:14 +00:00
|
|
|
UNUSED(uint32_t oomBehaviorEffectID); //!< ???
|
|
|
|
UNUSED(uint32_t castTypeDesc); //!< The cast type description(?)
|
|
|
|
UNUSED(uint32_t imBonusUI); //!< The imagination bonus of the skill
|
|
|
|
UNUSED(nint32_t lifeBonusUI); //!< The life bonus of the skill
|
|
|
|
UNUSED(uint32_t armorBonusUI); //!< The armor bonus of the skill
|
|
|
|
UNUSED(uint32_t damageUI); //!< ???
|
2022-07-28 13:39:57 +00:00
|
|
|
UNUSED(bool hideIcon); //!< Whether or not to show the icon
|
|
|
|
UNUSED(bool localize); //!< ???
|
|
|
|
UNUSED(std::string gate_version); //!< ???
|
2024-01-09 07:54:14 +00:00
|
|
|
UNUSED(uint32_t cancelType); //!< The cancel type (?)
|
2021-12-05 17:54:36 +00:00
|
|
|
};
|
|
|
|
|
2023-03-17 14:36:21 +00:00
|
|
|
class CDSkillBehaviorTable : public CDTable<CDSkillBehaviorTable> {
|
2021-12-05 17:54:36 +00:00
|
|
|
private:
|
2024-01-09 07:54:14 +00:00
|
|
|
std::map<uint32_t, CDSkillBehavior> entries;
|
2022-07-28 13:39:57 +00:00
|
|
|
CDSkillBehavior m_empty;
|
2021-12-05 17:54:36 +00:00
|
|
|
|
|
|
|
public:
|
2023-08-11 04:27:40 +00:00
|
|
|
void LoadValuesFromDatabase();
|
2021-12-05 17:54:36 +00:00
|
|
|
|
2023-03-17 14:36:21 +00:00
|
|
|
// Gets an entry by skillID
|
2024-01-09 07:54:14 +00:00
|
|
|
const CDSkillBehavior& GetSkillByID(uint32_t skillID);
|
2021-12-05 17:54:36 +00:00
|
|
|
};
|
|
|
|
|