Add Lua function to load a JSON file

This commit is contained in:
Alexander Bock
2024-02-10 10:18:57 +01:00
parent 5e9af1bc13
commit fa1847d235
5 changed files with 84 additions and 2 deletions

View File

@@ -1698,7 +1698,8 @@ scripting::LuaLibrary OpenSpaceEngine::luaLibrary() {
codegen::lua::ReadCSVFile,
codegen::lua::ResetCamera,
codegen::lua::Configuration,
codegen::lua::LayerServer
codegen::lua::LayerServer,
codegen::lua::LoadJson
},
{
absPath("${SCRIPTS}/core_scripts.lua")