mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-11 22:20:23 -06:00
Cleanup
This commit is contained in:
@@ -99,16 +99,17 @@ namespace {
|
||||
using namespace openspace::scripting;
|
||||
nlohmann::json function;
|
||||
function["Name"] = f.name;
|
||||
function["Arguments"] = nlohmann::json::array();
|
||||
nlohmann::json arguments = nlohmann::json::array();
|
||||
|
||||
for (const LuaLibrary::Function::Argument& arg : f.arguments) {
|
||||
nlohmann::json argument;
|
||||
argument["Name"] = arg.name;
|
||||
argument["Type"] = arg.type;
|
||||
argument["Default Value"] = arg.defaultValue.value_or("");
|
||||
function["Arguments"].push_back(argument);
|
||||
arguments.push_back(argument);
|
||||
}
|
||||
|
||||
function["Arguments"] = arguments;
|
||||
function["Return Type"] = f.returnType;
|
||||
function["Help"] = f.helpText;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user