mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-10 10:18:21 +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
36 lines
1.2 KiB
C++
36 lines
1.2 KiB
C++
#pragma once
|
|
|
|
// Custom Classes
|
|
#include "CDTable.h"
|
|
|
|
struct CDItemSets {
|
|
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
|
|
};
|
|
|
|
class CDItemSetsTable : public CDTable<CDItemSetsTable> {
|
|
private:
|
|
std::vector<CDItemSets> entries;
|
|
|
|
public:
|
|
CDItemSetsTable();
|
|
// Queries the table with a custom "where" clause
|
|
std::vector<CDItemSets> Query(std::function<bool(CDItemSets)> predicate);
|
|
|
|
std::vector<CDItemSets> GetEntries(void) const;
|
|
};
|
|
|