mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-06-21 06:20:07 +02:00
provide assignment dynamic factory to agent
This commit is contained in:
parent
36784b0039
commit
09065cf19a
1 changed files with 6 additions and 0 deletions
|
@ -53,6 +53,7 @@
|
||||||
#include <EntityScriptingInterface.h> // TODO: consider moving to scriptengine.h
|
#include <EntityScriptingInterface.h> // TODO: consider moving to scriptengine.h
|
||||||
|
|
||||||
#include "entities/AssignmentParentFinder.h"
|
#include "entities/AssignmentParentFinder.h"
|
||||||
|
#include "AssignmentDynamicFactory.h"
|
||||||
#include "RecordingScriptingInterface.h"
|
#include "RecordingScriptingInterface.h"
|
||||||
#include "AbstractAudioInterface.h"
|
#include "AbstractAudioInterface.h"
|
||||||
#include "AgentScriptingInterface.h"
|
#include "AgentScriptingInterface.h"
|
||||||
|
@ -67,6 +68,9 @@ Agent::Agent(ReceivedMessage& message) :
|
||||||
{
|
{
|
||||||
DependencyManager::set<ScriptableAvatar>();
|
DependencyManager::set<ScriptableAvatar>();
|
||||||
|
|
||||||
|
DependencyManager::registerInheritance<EntityDynamicFactoryInterface, AssignmentDynamicFactory>();
|
||||||
|
DependencyManager::set<AssignmentDynamicFactory>();
|
||||||
|
|
||||||
DependencyManager::set<AnimationCache>();
|
DependencyManager::set<AnimationCache>();
|
||||||
DependencyManager::set<AnimationCacheScriptingInterface>();
|
DependencyManager::set<AnimationCacheScriptingInterface>();
|
||||||
DependencyManager::set<EntityScriptingInterface>(false);
|
DependencyManager::set<EntityScriptingInterface>(false);
|
||||||
|
@ -860,6 +864,8 @@ void Agent::aboutToFinish() {
|
||||||
DependencyManager::destroy<recording::ClipCache>();
|
DependencyManager::destroy<recording::ClipCache>();
|
||||||
DependencyManager::destroy<ScriptEngine>();
|
DependencyManager::destroy<ScriptEngine>();
|
||||||
|
|
||||||
|
DependencyManager::destroy<AssignmentDynamicFactory>();
|
||||||
|
|
||||||
DependencyManager::destroy<ScriptableAvatar>();
|
DependencyManager::destroy<ScriptableAvatar>();
|
||||||
|
|
||||||
QMetaObject::invokeMethod(&_avatarAudioTimer, "stop");
|
QMetaObject::invokeMethod(&_avatarAudioTimer, "stop");
|
||||||
|
|
Loading…
Reference in a new issue