mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-07-10 15:47:23 +02:00
25 lines
781 B
C++
25 lines
781 B
C++
//
|
|
// ResourceScriptingInterface.cpp
|
|
// libraries/script-engine
|
|
//
|
|
// Created by dr Karol Suprynowicz on 2022/08/18.
|
|
// Copyright 2023 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
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
//
|
|
|
|
#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<ScriptableResource::State, scriptValueFromEnumClass<ScriptableResource::State>, scriptValueToEnumClass<ScriptableResource::State> >(scriptEngine, "State");
|
|
}));
|