mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-28 16:37:23 +00:00
23 lines
561 B
C++
23 lines
561 B
C++
#pragma once
|
|
|
|
// Custom Classes
|
|
#include "CDTable.h"
|
|
|
|
struct CDScriptComponent {
|
|
uint32_t id; //!< The component ID
|
|
std::string script_name; //!< The script name
|
|
std::string client_script_name; //!< The client script name
|
|
};
|
|
|
|
class CDScriptComponentTable : public CDTable<CDScriptComponentTable> {
|
|
private:
|
|
std::map<uint32_t, CDScriptComponent> entries;
|
|
CDScriptComponent m_ToReturnWhenNoneFound;
|
|
|
|
public:
|
|
void LoadValuesFromDatabase();
|
|
// Gets an entry by scriptID
|
|
const CDScriptComponent& GetByID(uint32_t id);
|
|
};
|
|
|