DarkflameServer/dDatabase/Tables/CDPropertyTemplateTable.h

22 lines
453 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 {
public:
2022-07-28 13:39:57 +00:00
CDPropertyTemplateTable();
~CDPropertyTemplateTable();
2022-07-28 13:39:57 +00:00
[[nodiscard]] std::string GetName() const override;
CDPropertyTemplate GetByMapID(uint32_t mapID);
private:
2022-07-28 13:39:57 +00:00
std::vector<CDPropertyTemplate> entries{};
CDPropertyTemplate defaultEntry{};
};