DarkflameServer/dDatabase/CDClientDatabase/CDClientTables/CDRarityTableTable.h

22 lines
440 B
C
Raw Normal View History

#pragma once
// Custom Classes
#include "CDTable.h"
struct CDRarityTable {
2022-07-28 13:39:57 +00:00
float randmax;
uint32_t rarity;
typedef uint32_t Index;
};
typedef std::vector<CDRarityTable> RarityTable;
class CDRarityTableTable : public CDTable<CDRarityTableTable, std::unordered_map<CDRarityTable::Index, std::vector<CDRarityTable>>> {
public:
void LoadValuesFromDatabase();
2022-07-28 13:39:57 +00:00
const std::vector<CDRarityTable>& GetRarityTable(uint32_t predicate);
};