DarkflameServer/dDatabase/Tables/CDScriptComponentTable.h
2023-07-25 22:34:11 -07:00

20 lines
492 B
C++

#pragma once
// Custom Classes
#include "CDTable.h"
struct CDScriptComponent {
std::string script_name; //!< The script name
std::string client_script_name; //!< The client script name
};
class CDScriptComponentTable : public CDTable<CDScriptComponentTable> {
private:
std::unordered_map<unsigned int, CDScriptComponent> entries;
public:
void LoadValuesFromDatabase();
// Gets an entry by scriptID
const std::optional<CDScriptComponent> GetByID(unsigned int id);
};