mirror of
https://github.com/overte-org/overte.git
synced 2025-04-08 07:12:40 +02:00
Forgot to add ResourceScriptingInterface.cpp before
This commit is contained in:
parent
5a9b0ccfb0
commit
a14c6444f1
1 changed files with 24 additions and 0 deletions
24
libraries/script-engine/src/ResourceScriptingInterface.cpp
Normal file
24
libraries/script-engine/src/ResourceScriptingInterface.cpp
Normal 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");
|
||||
});
|
Loading…
Reference in a new issue