mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-23 05:57:20 +00:00
d2aeebcd46
* Move CDClientManager to be a namespace Tested that worlds still load data as expected. Had no use being a singleton anyways. * Move cdclient data storage to tu local containers Allows some data from these containers to be saved on object by reference instead of always needing to copy. iteration 2 - move all unnamed namespace containers to a singular spot - use macro for template specialization and variable declaration - use templates to allow for as little copy paste of types and functions as possible * remember to use typename! compiler believes T::StorageType is accessing a member, not a type. * Update CDClientManager.cpp * move to cpp?
36 lines
1.5 KiB
C++
36 lines
1.5 KiB
C++
#pragma once
|
|
|
|
// Custom Classes
|
|
#include "CDTable.h"
|
|
|
|
struct CDSkillBehavior {
|
|
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
|
|
float cooldown; //!< The cooldown time of the skill
|
|
UNUSED(bool isNpcEditor); //!< ???
|
|
UNUSED(uint32_t skillIcon); //!< The Skill Icon ID
|
|
UNUSED(std::string oomSkillID); //!< ???
|
|
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); //!< ???
|
|
UNUSED(bool hideIcon); //!< Whether or not to show the icon
|
|
UNUSED(bool localize); //!< ???
|
|
UNUSED(std::string gate_version); //!< ???
|
|
UNUSED(uint32_t cancelType); //!< The cancel type (?)
|
|
};
|
|
|
|
class CDSkillBehaviorTable : public CDTable<CDSkillBehaviorTable, std::map<uint32_t, CDSkillBehavior>> {
|
|
public:
|
|
void LoadValuesFromDatabase();
|
|
|
|
// Gets an entry by skillID
|
|
const CDSkillBehavior& GetSkillByID(uint32_t skillID);
|
|
};
|
|
|