Rename categories in the json file to make it easier to differentiate between C++ classes and scripting

This commit is contained in:
Ylva Selling
2023-01-17 15:16:03 -05:00
parent 2cc3833bda
commit 8144fc9ea5
2 changed files with 10 additions and 11 deletions

View File

@@ -469,14 +469,13 @@ nlohmann::json ScriptEngine::generateJsonJson() const {
nlohmann::json library;
std::string libraryName = l.name == "" ? "openspace" : "openspace." + l.name;
library["name"] = libraryName;
library["subLibraries"] = nlohmann::json::array();
for (const LuaLibrary::Function& f : l.functions) {
library["data"].push_back(toJson(f));
library["functions"].push_back(toJson(f));
}
for (const LuaLibrary::Function& f : l.documentations) {
library["data"].push_back(toJson(f));
library["functions"].push_back(toJson(f));
}
json.push_back(library);
}