2021-12-05 17:54:36 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
// Custom Classes
|
|
|
|
#include "CDTable.h"
|
|
|
|
|
|
|
|
struct CDActivities {
|
|
|
|
unsigned int ActivityID;
|
|
|
|
unsigned int locStatus;
|
|
|
|
unsigned int instanceMapID;
|
|
|
|
unsigned int minTeams;
|
|
|
|
unsigned int maxTeams;
|
|
|
|
unsigned int minTeamSize;
|
|
|
|
unsigned int maxTeamSize;
|
|
|
|
unsigned int waitTime;
|
|
|
|
unsigned int startDelay;
|
|
|
|
bool requiresUniqueData;
|
|
|
|
unsigned int leaderboardType;
|
|
|
|
bool localize;
|
|
|
|
int optionalCostLOT;
|
|
|
|
int optionalCostCount;
|
|
|
|
bool showUIRewards;
|
|
|
|
unsigned int CommunityActivityFlagID;
|
|
|
|
std::string gate_version;
|
|
|
|
bool noTeamLootOnDeath;
|
|
|
|
float optionalPercentage;
|
|
|
|
};
|
|
|
|
|
2023-03-17 14:36:21 +00:00
|
|
|
class CDActivitiesTable : public CDTable<CDActivitiesTable> {
|
2021-12-05 17:54:36 +00:00
|
|
|
private:
|
|
|
|
std::vector<CDActivities> entries;
|
|
|
|
|
|
|
|
public:
|
2023-07-25 08:26:52 +00:00
|
|
|
void LoadValuesFromDatabase();
|
|
|
|
|
2023-03-17 14:36:21 +00:00
|
|
|
// Queries the table with a custom "where" clause
|
2021-12-05 17:54:36 +00:00
|
|
|
std::vector<CDActivities> Query(std::function<bool(CDActivities)> predicate);
|
|
|
|
|
2023-07-25 08:26:52 +00:00
|
|
|
const std::vector<CDActivities>& GetEntries() const { return this->entries; }
|
2021-12-05 17:54:36 +00:00
|
|
|
};
|