2021-12-05 17:54:36 +00:00
|
|
|
#pragma once
|
|
|
|
#include "CDTable.h"
|
|
|
|
|
|
|
|
struct CDPropertyTemplate {
|
|
|
|
uint32_t id;
|
|
|
|
uint32_t mapID;
|
|
|
|
uint32_t vendorMapID;
|
|
|
|
std::string spawnName;
|
|
|
|
};
|
|
|
|
|
2023-03-17 14:36:21 +00:00
|
|
|
class CDPropertyTemplateTable : public CDTable<CDPropertyTemplateTable> {
|
2021-12-05 17:54:36 +00:00
|
|
|
public:
|
|
|
|
CDPropertyTemplateTable();
|
|
|
|
|
2023-03-17 14:36:21 +00:00
|
|
|
static const std::string GetTableName() { return "PropertyTemplate"; };
|
2021-12-05 17:54:36 +00:00
|
|
|
CDPropertyTemplate GetByMapID(uint32_t mapID);
|
|
|
|
private:
|
|
|
|
std::vector<CDPropertyTemplate> entries{};
|
|
|
|
CDPropertyTemplate defaultEntry{};
|
|
|
|
};
|