mirror of
https://github.com/overte-org/overte.git
synced 2025-07-23 01:00:50 +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 "LineEntityItem.h"
|
||||
#include "PolyVoxEntityItem.h"
|
||||
#include "HyperlinkEntityItem.h"
|
||||
|
||||
QMap<EntityTypes::EntityType, QString> EntityTypes::_typeToNameMap;
|
||||
QMap<QString, EntityTypes::EntityType> EntityTypes::_nameToTypeMap;
|
||||
|
@ -47,6 +48,7 @@ REGISTER_ENTITY_TYPE(ParticleEffect)
|
|||
REGISTER_ENTITY_TYPE(Zone)
|
||||
REGISTER_ENTITY_TYPE(Line)
|
||||
REGISTER_ENTITY_TYPE(PolyVox)
|
||||
REGISTER_ENTITY_TYPE(Hyperlink)
|
||||
|
||||
const QString& EntityTypes::getEntityTypeName(EntityType entityType) {
|
||||
QMap<EntityType, QString>::iterator matchedTypeName = _typeToNameMap.find(entityType);
|
||||
|
|
|
@ -46,7 +46,8 @@ public:
|
|||
Web,
|
||||
Line,
|
||||
PolyVox,
|
||||
LAST = PolyVox
|
||||
Hyperlink,
|
||||
LAST = Hyperlink
|
||||
} EntityType;
|
||||
|
||||
static const QString& getEntityTypeName(EntityType entityType);
|
||||
|
|
Loading…
Reference in a new issue