19 #include <unordered_map>
21 #include <torquescript/function.hpp>
22 #include <torquescript/consoleobject.hpp>
23 #include <torquescript/storedvalue.hpp>
24 #include <torquescript/stringhelpers.hpp>
25 #include <torquescript/storedvaluestack.hpp>
27 #define NAMESPACE_EMPTY ""
28 #define PACKAGE_EMPTY ""
42 void setConsoleObject(
const std::string& name, std::shared_ptr<ConsoleObject> value);
43 std::shared_ptr<ConsoleObject> getConsoleObject(
const std::string& name);
44 std::shared_ptr<ConsoleObject> getConsoleObject(
const unsigned int id);
46 std::string getConsoleObjectName(std::shared_ptr<ConsoleObject> target);
47 unsigned int getConsoleObjectID(std::shared_ptr<ConsoleObject> target);
49 unsigned int addConsoleObject(std::shared_ptr<ConsoleObject> value);
51 void removeConsoleObject(
const std::string& name);
52 void removeConsoleObject(std::shared_ptr<ConsoleObject> target);
55 unsigned int mNextObjectID;
58 std::unordered_map<unsigned int, std::shared_ptr<ConsoleObject>> mConsoleObjectsByID;
61 std::unordered_map<std::string, std::shared_ptr<ConsoleObject>> mConsoleObjectsByName;
Definition: consoleobjectregistry.hpp:38