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-07-16 07:27:30 +00:00
|
|
|
namespace CDPropertyTemplateTable {
|
2021-12-05 17:54:36 +00:00
|
|
|
public:
|
2023-07-16 07:27:30 +00:00
|
|
|
void LoadTableIntoMemory();
|
2021-12-05 17:54:36 +00:00
|
|
|
|
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{};
|
|
|
|
};
|