mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-12-23 22:13:35 +00:00
28 lines
886 B
C++
28 lines
886 B
C++
#pragma once
|
|
|
|
// Custom Classes
|
|
#include "CDTable.h"
|
|
|
|
struct CDActivityRewards {
|
|
unsigned int objectTemplate; //!< The object template (?)
|
|
unsigned int ActivityRewardIndex; //!< The activity reward index
|
|
int activityRating; //!< The activity rating
|
|
unsigned int LootMatrixIndex; //!< The loot matrix index
|
|
unsigned int CurrencyIndex; //!< The currency index
|
|
unsigned int ChallengeRating; //!< The challenge rating
|
|
std::string description; //!< The description
|
|
};
|
|
|
|
class CDActivityRewardsTable : public CDTable<CDActivityRewardsTable> {
|
|
private:
|
|
std::vector<CDActivityRewards> entries;
|
|
|
|
public:
|
|
CDActivityRewardsTable();
|
|
// Queries the table with a custom "where" clause
|
|
std::vector<CDActivityRewards> Query(std::function<bool(CDActivityRewards)> predicate);
|
|
|
|
std::vector<CDActivityRewards> GetEntries(void) const;
|
|
|
|
};
|