2021-12-05 17:54:36 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
// Custom Classes
|
|
|
|
#include "CDTable.h"
|
|
|
|
|
|
|
|
struct CDActivities {
|
2024-01-09 07:54:14 +00:00
|
|
|
uint32_t ActivityID;
|
|
|
|
uint32_t locStatus;
|
|
|
|
uint32_t instanceMapID;
|
|
|
|
uint32_t minTeams;
|
|
|
|
uint32_t maxTeams;
|
|
|
|
uint32_t minTeamSize;
|
|
|
|
uint32_t maxTeamSize;
|
|
|
|
uint32_t waitTime;
|
|
|
|
uint32_t startDelay;
|
2021-12-05 17:54:36 +00:00
|
|
|
bool requiresUniqueData;
|
2024-01-09 07:54:14 +00:00
|
|
|
uint32_t leaderboardType;
|
2021-12-05 17:54:36 +00:00
|
|
|
bool localize;
|
2024-01-09 07:54:14 +00:00
|
|
|
int32_t optionalCostLOT;
|
|
|
|
int32_t optionalCostCount;
|
2021-12-05 17:54:36 +00:00
|
|
|
bool showUIRewards;
|
2024-01-09 07:54:14 +00:00
|
|
|
uint32_t CommunityActivityFlagID;
|
2021-12-05 17:54:36 +00:00
|
|
|
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-08-11 04:27:40 +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-08-11 04:27:40 +00:00
|
|
|
const std::vector<CDActivities>& GetEntries() const { return this->entries; }
|
2021-12-05 17:54:36 +00:00
|
|
|
};
|