Showing the changes to libraries/script-engine/src/ResourceScriptingInterface.cpp (1 of 1 file). Show all
Unified · Split
| @@ -0,0 +1,24 @@ | |||
| 1 | // | ||
| 2 | // ResourceScriptingInterface.cpp | ||
| 3 | // libraries/script-engine | ||
| 4 | // | ||
| 5 | // Created by dr Karol Suprynowicz on 2022/08/18. | ||
| 6 | // Copyright 2022 Overte e.V. | ||
| 7 | // | ||
| 8 | // Distributed under the Apache License, Version 2.0. | ||
| 9 | // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html | ||
| 10 | // | ||
| 11 | |||
| 12 | #include <QtCore/QObject> | ||
| 13 | #include <QtCore/QString> | ||
| 14 | |||
| 15 | #include <ResourceCache.h> | ||
| 16 | |||
| 17 | #include "ScriptEngineCast.h" | ||
| 18 | #include "ScriptManager.h" | ||
| 19 | |||
| 20 | STATIC_SCRIPT_TYPES_INITIALIZER(+[](ScriptManager* manager){ | ||
| 21 | auto scriptEngine = manager->engine().get(); | ||
| 22 | |||
| 23 | scriptRegisterMetaType(scriptEngine, scriptValueFromEnumClass<ScriptableResource::State>, scriptValueToEnumClass<ScriptableResource::State>, "State"); | ||
| 24 | }); | ||