mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 00:36:30 +02:00
another attempt at zones starting from box
This commit is contained in:
parent
098a18b725
commit
a9c2a6e048
4 changed files with 9 additions and 4 deletions
|
@ -30,9 +30,10 @@
|
||||||
#include "RenderableBoxEntityItem.h"
|
#include "RenderableBoxEntityItem.h"
|
||||||
#include "RenderableLightEntityItem.h"
|
#include "RenderableLightEntityItem.h"
|
||||||
#include "RenderableModelEntityItem.h"
|
#include "RenderableModelEntityItem.h"
|
||||||
|
#include "RenderableParticleEffectEntityItem.h"
|
||||||
#include "RenderableSphereEntityItem.h"
|
#include "RenderableSphereEntityItem.h"
|
||||||
#include "RenderableTextEntityItem.h"
|
#include "RenderableTextEntityItem.h"
|
||||||
#include "RenderableParticleEffectEntityItem.h"
|
#include "RenderableZoneEntityItem.h"
|
||||||
#include "EntitiesRendererLogging.h"
|
#include "EntitiesRendererLogging.h"
|
||||||
|
|
||||||
|
|
||||||
|
@ -56,6 +57,7 @@ EntityTreeRenderer::EntityTreeRenderer(bool wantScripts, AbstractViewStateInterf
|
||||||
REGISTER_ENTITY_TYPE_WITH_FACTORY(Light, RenderableLightEntityItem::factory)
|
REGISTER_ENTITY_TYPE_WITH_FACTORY(Light, RenderableLightEntityItem::factory)
|
||||||
REGISTER_ENTITY_TYPE_WITH_FACTORY(Text, RenderableTextEntityItem::factory)
|
REGISTER_ENTITY_TYPE_WITH_FACTORY(Text, RenderableTextEntityItem::factory)
|
||||||
REGISTER_ENTITY_TYPE_WITH_FACTORY(ParticleEffect, RenderableParticleEffectEntityItem::factory)
|
REGISTER_ENTITY_TYPE_WITH_FACTORY(ParticleEffect, RenderableParticleEffectEntityItem::factory)
|
||||||
|
REGISTER_ENTITY_TYPE_WITH_FACTORY(Zone, RenderableZoneEntityItem::factory)
|
||||||
|
|
||||||
_currentHoverOverEntityID = EntityItemID::createInvalidEntityID(); // makes it the unknown ID
|
_currentHoverOverEntityID = EntityItemID::createInvalidEntityID(); // makes it the unknown ID
|
||||||
_currentClickingOnEntityID = EntityItemID::createInvalidEntityID(); // makes it the unknown ID
|
_currentClickingOnEntityID = EntityItemID::createInvalidEntityID(); // makes it the unknown ID
|
||||||
|
|
|
@ -137,6 +137,7 @@ class EntityItemProperties {
|
||||||
friend class LightEntityItem; // TODO: consider removing this friend relationship and use public methods
|
friend class LightEntityItem; // TODO: consider removing this friend relationship and use public methods
|
||||||
friend class TextEntityItem; // TODO: consider removing this friend relationship and use public methods
|
friend class TextEntityItem; // TODO: consider removing this friend relationship and use public methods
|
||||||
friend class ParticleEffectEntityItem; // TODO: consider removing this friend relationship and use public methods
|
friend class ParticleEffectEntityItem; // TODO: consider removing this friend relationship and use public methods
|
||||||
|
friend class ZoneEntityItem; // TODO: consider removing this friend relationship and use public methods
|
||||||
public:
|
public:
|
||||||
EntityItemProperties();
|
EntityItemProperties();
|
||||||
virtual ~EntityItemProperties();
|
virtual ~EntityItemProperties();
|
||||||
|
|
|
@ -21,9 +21,10 @@
|
||||||
#include "BoxEntityItem.h"
|
#include "BoxEntityItem.h"
|
||||||
#include "LightEntityItem.h"
|
#include "LightEntityItem.h"
|
||||||
#include "ModelEntityItem.h"
|
#include "ModelEntityItem.h"
|
||||||
|
#include "ParticleEffectEntityItem.h"
|
||||||
#include "SphereEntityItem.h"
|
#include "SphereEntityItem.h"
|
||||||
#include "TextEntityItem.h"
|
#include "TextEntityItem.h"
|
||||||
#include "ParticleEffectEntityItem.h"
|
#include "ZoneEntityItem.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;
|
||||||
|
@ -39,7 +40,7 @@ REGISTER_ENTITY_TYPE(Sphere)
|
||||||
REGISTER_ENTITY_TYPE(Light)
|
REGISTER_ENTITY_TYPE(Light)
|
||||||
REGISTER_ENTITY_TYPE(Text)
|
REGISTER_ENTITY_TYPE(Text)
|
||||||
REGISTER_ENTITY_TYPE(ParticleEffect)
|
REGISTER_ENTITY_TYPE(ParticleEffect)
|
||||||
|
REGISTER_ENTITY_TYPE(Zone)
|
||||||
|
|
||||||
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);
|
||||||
|
|
|
@ -36,7 +36,8 @@ public:
|
||||||
Light,
|
Light,
|
||||||
Text,
|
Text,
|
||||||
ParticleEffect,
|
ParticleEffect,
|
||||||
LAST = ParticleEffect
|
Zone,
|
||||||
|
LAST = Zone
|
||||||
} EntityType;
|
} EntityType;
|
||||||
|
|
||||||
static const QString& getEntityTypeName(EntityType entityType);
|
static const QString& getEntityTypeName(EntityType entityType);
|
||||||
|
|
Loading…
Reference in a new issue