Forgot to add ResourceScriptingInterface.cpp before

This commit is contained in:
ksuprynowicz 2022-08-18 17:32:50 +02:00
parent 5a9b0ccfb0
commit a14c6444f1

View file

@ -0,0 +1,24 @@
//
// ResourceScriptingInterface.cpp
// libraries/script-engine
//
// Created by dr Karol Suprynowicz on 2022/08/18.
// Copyright 2022 Overte e.V.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#include <QtCore/QObject>
#include <QtCore/QString>
#include <ResourceCache.h>
#include "ScriptEngineCast.h"
#include "ScriptManager.h"
STATIC_SCRIPT_TYPES_INITIALIZER(+[](ScriptManager* manager){
auto scriptEngine = manager->engine().get();
scriptRegisterMetaType(scriptEngine, scriptValueFromEnumClass<ScriptableResource::State>, scriptValueToEnumClass<ScriptableResource::State>, "State");
});