mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-12-25 15:03:34 +00:00
7671cc6865
* CDClient cleanup and optimization - Use static function to get table name - Remove unused GetName function - Replace above function with a static GetTableName function - Remove verbose comments - Remove verbose initializers - Remove need to specify table name when getting a table by name - Remove unused typedef for mac and linux * Re-add unused table Convert tables to singletons - Convert all CDClient tables to singletons - Move Singleton.h to dCommon - Reduce header clutter in CDClientManager
42 lines
1.7 KiB
C++
42 lines
1.7 KiB
C++
#pragma once
|
|
|
|
// Custom Classes
|
|
#include "CDTable.h"
|
|
|
|
struct CDSkillBehavior {
|
|
unsigned int skillID; //!< The Skill ID of the skill
|
|
UNUSED(unsigned int locStatus); //!< ??
|
|
unsigned int behaviorID; //!< The Behavior ID of the skill
|
|
unsigned int imaginationcost; //!< The imagination cost of the skill
|
|
unsigned int cooldowngroup; //!< The cooldown group ID of the skill
|
|
float cooldown; //!< The cooldown time of the skill
|
|
UNUSED(bool isNpcEditor); //!< ???
|
|
UNUSED(unsigned int skillIcon); //!< The Skill Icon ID
|
|
UNUSED(std::string oomSkillID); //!< ???
|
|
UNUSED(unsigned int oomBehaviorEffectID); //!< ???
|
|
UNUSED(unsigned int castTypeDesc); //!< The cast type description(?)
|
|
UNUSED(unsigned int imBonusUI); //!< The imagination bonus of the skill
|
|
UNUSED(nsigned int lifeBonusUI); //!< The life bonus of the skill
|
|
UNUSED(unsigned int armorBonusUI); //!< The armor bonus of the skill
|
|
UNUSED(unsigned int damageUI); //!< ???
|
|
UNUSED(bool hideIcon); //!< Whether or not to show the icon
|
|
UNUSED(bool localize); //!< ???
|
|
UNUSED(std::string gate_version); //!< ???
|
|
UNUSED(unsigned int cancelType); //!< The cancel type (?)
|
|
};
|
|
|
|
class CDSkillBehaviorTable : public CDTable<CDSkillBehaviorTable> {
|
|
private:
|
|
std::map<unsigned int, CDSkillBehavior> entries;
|
|
CDSkillBehavior m_empty;
|
|
|
|
public:
|
|
CDSkillBehaviorTable();
|
|
// Queries the table with a custom "where" clause
|
|
std::vector<CDSkillBehavior> Query(std::function<bool(CDSkillBehavior)> predicate);
|
|
|
|
// Gets an entry by skillID
|
|
const CDSkillBehavior& GetSkillByID(unsigned int skillID);
|
|
};
|
|
|