DarkflameServer/dDatabase/Tables/CDScriptComponentTable.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
545 B
C
Raw Normal View History

#pragma once
// Custom Classes
#include "CDTable.h"
struct CDScriptComponent {
unsigned int id; //!< The component ID
2023-07-26 04:39:20 +00:00
std::string script_name; //!< The script name
std::string client_script_name; //!< The client script name
};
class CDScriptComponentTable : public CDTable<CDScriptComponentTable> {
private:
std::map<unsigned int, CDScriptComponent> entries;
public:
void LoadValuesFromDatabase();
// Gets an entry by scriptID
2023-07-26 04:39:20 +00:00
const std::optional<CDScriptComponent> GetByID(unsigned int id);
};