DarkflameServer/dDatabase/Tables/CDActivityRewardsTable.h

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

55 lines
1.3 KiB
C
Raw Permalink Normal View History

#pragma once
// Custom Classes
#include "CDTable.h"
/*!
\file CDActivityRewardsTable.hpp
\brief Contains data for the ActivityRewards table
*/
//! ActivityRewards Entry Struct
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
};
//! ActivityRewards table
class CDActivityRewardsTable : public CDTable {
private:
std::vector<CDActivityRewards> entries;
2022-07-28 13:39:57 +00:00
public:
2022-07-28 13:39:57 +00:00
//! Constructor
CDActivityRewardsTable(void);
2022-07-28 13:39:57 +00:00
//! Destructor
~CDActivityRewardsTable(void);
2022-07-28 13:39:57 +00:00
//! Returns the table's name
/*!
\return The table name
*/
std::string GetName(void) const override;
2022-07-28 13:39:57 +00:00
//! Queries the table with a custom "where" clause
/*!
\param predicate The predicate
*/
std::vector<CDActivityRewards> Query(std::function<bool(CDActivityRewards)> predicate);
2022-07-28 13:39:57 +00:00
//! Gets all the entries in the table
/*!
\return The entries
*/
std::vector<CDActivityRewards> GetEntries(void) const;
2022-07-28 13:39:57 +00:00
};