2021-12-05 17:54:36 +00:00
|
|
|
#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
|
2021-12-05 17:54:36 +00:00
|
|
|
};
|
|
|
|
|
2023-03-17 14:36:21 +00:00
|
|
|
class CDScriptComponentTable : public CDTable<CDScriptComponentTable> {
|
2021-12-05 17:54:36 +00:00
|
|
|
private:
|
2022-07-28 13:39:57 +00:00
|
|
|
std::map<unsigned int, CDScriptComponent> entries;
|
2021-12-05 17:54:36 +00:00
|
|
|
CDScriptComponent m_ToReturnWhenNoneFound;
|
2022-07-28 13:39:57 +00:00
|
|
|
|
2021-12-05 17:54:36 +00:00
|
|
|
public:
|
2023-03-17 14:36:21 +00:00
|
|
|
CDScriptComponentTable();
|
|
|
|
// Gets an entry by scriptID
|
2021-12-05 17:54:36 +00:00
|
|
|
const CDScriptComponent& GetByID(unsigned int id);
|
|
|
|
};
|
|
|
|
|