DarkflameServer/dDatabase/CDClientDatabase/CDClientTables/CDPropertyTemplateTable.h

21 lines
473 B
C
Raw Normal View History

#pragma once
#include "CDTable.h"
struct CDPropertyTemplate {
2022-07-28 13:39:57 +00:00
uint32_t id;
uint32_t mapID;
uint32_t vendorMapID;
std::string spawnName;
};
class CDPropertyTemplateTable : public CDTable<CDPropertyTemplateTable> {
public:
void LoadValuesFromDatabase();
static const std::string GetTableName() { return "PropertyTemplate"; };
2022-07-28 13:39:57 +00:00
CDPropertyTemplate GetByMapID(uint32_t mapID);
private:
2022-07-28 13:39:57 +00:00
std::vector<CDPropertyTemplate> entries{};
CDPropertyTemplate defaultEntry{};
};