DarkflameServer/dDatabase/Tables/CDRarityTableTable.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
469 B
C
Raw Normal View History

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