DarkflameServer/dDatabase/CDClientDatabase/CDClientTables/CDItemSetSkillsTable.h

25 lines
683 B
C
Raw Normal View History

#pragma once
// Custom Classes
#include "CDTable.h"
struct CDItemSetSkills {
2022-07-28 13:39:57 +00:00
unsigned int SkillSetID; //!< The skill set ID
unsigned int SkillID; //!< The skill ID
unsigned int SkillCastType; //!< The skill cast type
};
class CDItemSetSkillsTable : public CDTable<CDItemSetSkillsTable> {
private:
2022-07-28 13:39:57 +00:00
std::vector<CDItemSetSkills> entries;
public:
void LoadValuesFromDatabase();
// Queries the table with a custom "where" clause
2022-07-28 13:39:57 +00:00
std::vector<CDItemSetSkills> Query(std::function<bool(CDItemSetSkills)> predicate);
const std::vector<CDItemSetSkills>& GetEntries() const;
std::vector<CDItemSetSkills> GetBySkillID(unsigned int SkillSetID);
};