mirror of
https://github.com/overte-org/overte.git
synced 2025-07-23 11:44:09 +02:00
Exposing Hyperlink type to javascript
This commit is contained in:
parent
63665d720a
commit
dbb447c9b5
2 changed files with 4 additions and 1 deletions
|
@ -28,6 +28,7 @@
|
||||||
#include "ZoneEntityItem.h"
|
#include "ZoneEntityItem.h"
|
||||||
#include "LineEntityItem.h"
|
#include "LineEntityItem.h"
|
||||||
#include "PolyVoxEntityItem.h"
|
#include "PolyVoxEntityItem.h"
|
||||||
|
#include "HyperlinkEntityItem.h"
|
||||||
|
|
||||||
QMap<EntityTypes::EntityType, QString> EntityTypes::_typeToNameMap;
|
QMap<EntityTypes::EntityType, QString> EntityTypes::_typeToNameMap;
|
||||||
QMap<QString, EntityTypes::EntityType> EntityTypes::_nameToTypeMap;
|
QMap<QString, EntityTypes::EntityType> EntityTypes::_nameToTypeMap;
|
||||||
|
@ -47,6 +48,7 @@ REGISTER_ENTITY_TYPE(ParticleEffect)
|
||||||
REGISTER_ENTITY_TYPE(Zone)
|
REGISTER_ENTITY_TYPE(Zone)
|
||||||
REGISTER_ENTITY_TYPE(Line)
|
REGISTER_ENTITY_TYPE(Line)
|
||||||
REGISTER_ENTITY_TYPE(PolyVox)
|
REGISTER_ENTITY_TYPE(PolyVox)
|
||||||
|
REGISTER_ENTITY_TYPE(Hyperlink)
|
||||||
|
|
||||||
const QString& EntityTypes::getEntityTypeName(EntityType entityType) {
|
const QString& EntityTypes::getEntityTypeName(EntityType entityType) {
|
||||||
QMap<EntityType, QString>::iterator matchedTypeName = _typeToNameMap.find(entityType);
|
QMap<EntityType, QString>::iterator matchedTypeName = _typeToNameMap.find(entityType);
|
||||||
|
|
|
@ -46,7 +46,8 @@ public:
|
||||||
Web,
|
Web,
|
||||||
Line,
|
Line,
|
||||||
PolyVox,
|
PolyVox,
|
||||||
LAST = PolyVox
|
Hyperlink,
|
||||||
|
LAST = Hyperlink
|
||||||
} EntityType;
|
} EntityType;
|
||||||
|
|
||||||
static const QString& getEntityTypeName(EntityType entityType);
|
static const QString& getEntityTypeName(EntityType entityType);
|
||||||
|
|
Loading…
Reference in a new issue