DarkflameServer/dDatabase/CDClientDatabase/CDClientTables/CDMissionEmailTable.h

29 lines
607 B
C
Raw Permalink Normal View History

#pragma once
// Custom Classes
#include "CDTable.h"
struct CDMissionEmail {
uint32_t ID;
uint32_t messageType;
uint32_t notificationGroup;
uint32_t missionID;
uint32_t attachmentLOT;
2022-07-28 13:39:57 +00:00
bool localize;
uint32_t locStatus;
2022-07-28 13:39:57 +00:00
std::string gate_version;
};
class CDMissionEmailTable : public CDTable<CDMissionEmailTable> {
private:
2022-07-28 13:39:57 +00:00
std::vector<CDMissionEmail> entries;
public:
void LoadValuesFromDatabase();
// Queries the table with a custom "where" clause
2022-07-28 13:39:57 +00:00
std::vector<CDMissionEmail> Query(std::function<bool(CDMissionEmail)> predicate);
const std::vector<CDMissionEmail>& GetEntries() const;
};