mirror of
https://github.com/DarkflameUniverse/DarkflameServer
synced 2024-08-30 18:43:58 +00:00
3a6313a3ba
* Assorted pet improvements * remove unecessary include * updates to address some feedback * fixed database code for testing * messinng around with tables * updated to address feedback * fix world hang * Remove at() in CDLootTableTable.cpp * Uncapitalize LOT variable * Uncapitalize LOT variable
26 lines
551 B
C++
26 lines
551 B
C++
#pragma once
|
|
|
|
// Custom Classes
|
|
#include "CDTable.h"
|
|
|
|
#include <cstdint>
|
|
|
|
struct CDMissionEmail {
|
|
uint32_t ID;
|
|
uint32_t messageType;
|
|
uint32_t notificationGroup;
|
|
uint32_t missionID;
|
|
uint32_t attachmentLOT;
|
|
bool localize;
|
|
uint32_t locStatus;
|
|
std::string gate_version;
|
|
};
|
|
|
|
|
|
class CDMissionEmailTable : public CDTable<CDMissionEmailTable, std::vector<CDMissionEmail>> {
|
|
public:
|
|
void LoadValuesFromDatabase();
|
|
// Queries the table with a custom "where" clause
|
|
std::vector<CDMissionEmail> Query(std::function<bool(CDMissionEmail)> predicate);
|
|
};
|