mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-26 23:47:21 +00:00
24 lines
465 B
C++
24 lines
465 B
C++
#pragma once
|
|
|
|
// Custom Classes
|
|
#include "CDTable.h"
|
|
|
|
struct CDRarityTable {
|
|
float randmax;
|
|
uint32_t 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();
|
|
|
|
const std::vector<CDRarityTable>& GetRarityTable(uint32_t predicate);
|
|
};
|
|
|