DarkflameServer/dDatabase/CDClientDatabase/CDClientTables/CDItemSetsTable.h

36 lines
1.1 KiB
C
Raw Normal View History

#pragma once
// Custom Classes
#include "CDTable.h"
struct CDItemSets {
uint32_t setID; //!< The item set ID
uint32_t locStatus; //!< The loc status
2022-07-28 13:39:57 +00:00
std::string itemIDs; //!< THe item IDs
uint32_t kitType; //!< The item kit type
uint32_t kitRank; //!< The item kit rank
uint32_t kitImage; //!< The item kit image
uint32_t skillSetWith2; //!< The skill set with 2
uint32_t skillSetWith3; //!< The skill set with 3
uint32_t skillSetWith4; //!< The skill set with 4
uint32_t skillSetWith5; //!< The skill set with 5
uint32_t skillSetWith6; //!< The skill set with 6
2022-07-28 13:39:57 +00:00
bool localize; //!< Whether or localize
std::string gate_version; //!< The gate version
uint32_t kitID; //!< The kit ID
2022-07-28 13:39:57 +00:00
float priority; //!< The priority
};
class CDItemSetsTable : public CDTable<CDItemSetsTable> {
private:
2022-07-28 13:39:57 +00:00
std::vector<CDItemSets> entries;
public:
void LoadValuesFromDatabase();
// Queries the table with a custom "where" clause
2022-07-28 13:39:57 +00:00
std::vector<CDItemSets> Query(std::function<bool(CDItemSets)> predicate);
const std::vector<CDItemSets>& GetEntries(void) const;
};