mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-06-20 21:09:25 +02:00
* include error details in BatchLoader results * update EntityServerScript properties in edtior to reflect more granular statuses * ScriptEngine plumbing in prep for require/module integration
33 lines
No EOL
888 B
C++
33 lines
No EOL
888 B
C++
//
|
|
// EntityScriptUtils.h
|
|
// libraries/networking/src
|
|
//
|
|
// Created by Ryan Huffman on 2017/01/13
|
|
// Copyright 2017 High Fidelity, Inc.
|
|
//
|
|
// Distributed under the Apache License, Version 2.0.
|
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
|
//
|
|
|
|
#ifndef hifi_EntityScriptUtils_h
|
|
#define hifi_EntityScriptUtils_h
|
|
#include <QMetaEnum>
|
|
|
|
class EntityScriptStatus_ : public QObject {
|
|
Q_OBJECT
|
|
public:
|
|
enum EntityScriptStatus {
|
|
PENDING,
|
|
LOADING,
|
|
ERROR_LOADING_SCRIPT,
|
|
ERROR_RUNNING_SCRIPT,
|
|
RUNNING,
|
|
UNLOADED
|
|
};
|
|
Q_ENUM(EntityScriptStatus)
|
|
static QString valueToKey(EntityScriptStatus status) {
|
|
return QMetaEnum::fromType<EntityScriptStatus>().valueToKey(status);
|
|
}
|
|
};
|
|
using EntityScriptStatus = EntityScriptStatus_::EntityScriptStatus;
|
|
#endif // hifi_EntityScriptUtils_h
|