Add AvatarHashMap and AvatarManager to DM

This commit is contained in:
Atlante45 2015-01-23 11:46:11 -08:00
parent ef5e57a46e
commit 9f58865937
3 changed files with 6 additions and 5 deletions

View file

@ -24,6 +24,7 @@ class MyAvatar;
class AvatarManager : public AvatarHashMap {
Q_OBJECT
SINGLETON_DEPENDENCY
public:

View file

@ -14,10 +14,7 @@
#include "AvatarHashMap.h"
AvatarHashMap::AvatarHashMap() :
_avatarHash(),
_lastOwnerSessionUUID()
{
AvatarHashMap::AvatarHashMap() {
connect(DependencyManager::get<NodeList>().data(), &NodeList::uuidChanged, this, &AvatarHashMap::sessionUUIDChanged);
}

View file

@ -16,6 +16,7 @@
#include <QtCore/QSharedPointer>
#include <QtCore/QUuid>
#include <DependencyManager.h>
#include <Node.h>
#include "AvatarData.h"
@ -24,8 +25,10 @@ typedef QSharedPointer<AvatarData> AvatarSharedPointer;
typedef QWeakPointer<AvatarData> AvatarWeakPointer;
typedef QHash<QUuid, AvatarSharedPointer> AvatarHash;
class AvatarHashMap : public QObject {
class AvatarHashMap : public QObject, public Dependency {
Q_OBJECT
SINGLETON_DEPENDENCY
public:
AvatarHashMap();