HifiExperimentsscript entitiesefd26391 year agoHistory
33 lines · 1.3 KB · C
RawDownload
////  EntitiesScriptEngineProvider.h//  libraries/script-engine/src////  Created by Brad Hefta-Gaub on Sept. 18, 2015//  Copyright 2015 High Fidelity, Inc.//  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//// TODO: How will we handle collision callbacks with Entities// #ifndef hifi_EntitiesScriptEngineProvider_h#define hifi_EntitiesScriptEngineProvider_h #include <QtCore/QString>#include <QFuture>#include "EntityItemID.h" class EntitiesScriptEngineProvider {public:    virtual void callEntityScriptMethod(const EntityItemID& entityID, const QString& methodName,                                         const QStringList& params = QStringList(), const QUuid& remoteCallerID = QUuid()) = 0;    virtual void callEntityScriptMethodForScript(const EntityItemID& entityID, const QString& scriptURL,                                                 const QString& methodName, const QStringList& params = QStringList(),                                                 const QUuid& remoteCallerID = QUuid()) = 0;    virtual QFuture<QVariant> getLocalEntityScriptDetails(const EntityItemID& entityID, const QString& scriptURL) = 0;}; #endif // hifi_EntitiesScriptEngineProvider_h