2021-12-05 17:54:36 +00:00
|
|
|
#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;
|
2021-12-05 17:54:36 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class CDPropertyTemplateTable : public CDTable {
|
|
|
|
public:
|
2022-07-28 13:39:57 +00:00
|
|
|
CDPropertyTemplateTable();
|
|
|
|
~CDPropertyTemplateTable();
|
2021-12-05 17:54:36 +00:00
|
|
|
|
2022-07-28 13:39:57 +00:00
|
|
|
[[nodiscard]] std::string GetName() const override;
|
|
|
|
CDPropertyTemplate GetByMapID(uint32_t mapID);
|
2021-12-05 17:54:36 +00:00
|
|
|
private:
|
2022-07-28 13:39:57 +00:00
|
|
|
std::vector<CDPropertyTemplate> entries{};
|
|
|
|
CDPropertyTemplate defaultEntry{};
|
|
|
|
};
|