2021-12-05 17:54:36 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
// Custom Classes
|
|
|
|
#include "CDTable.h"
|
|
|
|
|
|
|
|
struct CDItemSets {
|
2022-07-28 13:39:57 +00:00
|
|
|
unsigned int setID; //!< The item set ID
|
|
|
|
unsigned int locStatus; //!< The loc status
|
|
|
|
std::string itemIDs; //!< THe item IDs
|
|
|
|
unsigned int kitType; //!< The item kit type
|
|
|
|
unsigned int kitRank; //!< The item kit rank
|
|
|
|
unsigned int kitImage; //!< The item kit image
|
|
|
|
unsigned int skillSetWith2; //!< The skill set with 2
|
|
|
|
unsigned int skillSetWith3; //!< The skill set with 3
|
|
|
|
unsigned int skillSetWith4; //!< The skill set with 4
|
|
|
|
unsigned int skillSetWith5; //!< The skill set with 5
|
|
|
|
unsigned int skillSetWith6; //!< The skill set with 6
|
|
|
|
bool localize; //!< Whether or localize
|
|
|
|
std::string gate_version; //!< The gate version
|
|
|
|
unsigned int kitID; //!< The kit ID
|
|
|
|
float priority; //!< The priority
|
2021-12-05 17:54:36 +00:00
|
|
|
};
|
|
|
|
|
2023-07-16 07:27:30 +00:00
|
|
|
namespace CDItemSetsTable {
|
2021-12-05 17:54:36 +00:00
|
|
|
private:
|
2022-07-28 13:39:57 +00:00
|
|
|
std::vector<CDItemSets> entries;
|
|
|
|
|
2021-12-05 17:54:36 +00:00
|
|
|
public:
|
2023-07-16 07:27:30 +00:00
|
|
|
void LoadTableIntoMemory();
|
2023-03-17 14:36:21 +00:00
|
|
|
// 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);
|
|
|
|
|
|
|
|
std::vector<CDItemSets> GetEntries(void) const;
|
2021-12-05 17:54:36 +00:00
|
|
|
};
|
|
|
|
|