DarkflameServer/dDatabase/CDClientDatabase/CDClientTables/CDScriptComponentTable.h

23 lines
573 B
C
Raw Normal View History

#pragma once
// Custom Classes
#include "CDTable.h"
struct CDScriptComponent {
2022-07-28 13:39:57 +00:00
unsigned int 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:
2022-07-28 13:39:57 +00:00
std::map<unsigned int, CDScriptComponent> entries;
CDScriptComponent m_ToReturnWhenNoneFound;
2022-07-28 13:39:57 +00:00
public:
void LoadValuesFromDatabase();
// Gets an entry by scriptID
const CDScriptComponent& GetByID(unsigned int id);
};