History

rename base action classes to dynamics, start on constraints

Seth Alves committed 9 years ago

Commit 74c0a701 parent b07ed1339 files · +1200 −872Browse files

Showing the changes to libraries/entities/src/EntityScriptingInterface.cpp (1 of 39 files). Show all

Unified · Split

libraries/entities/src/EntityScriptingInterface.cpp+6−6
@@ -24,8 +24,8 @@ · 23 unmodified lines
2424 #include <model-networking/MeshProxy.h>
2525
2626 #include "EntitiesLogging.h"
27−#include "EntityActionFactoryInterface.h"
28−#include "EntityActionInterface.h"
27+#include "EntityDynamicFactoryInterface.h"
28+#include "EntityDynamicInterface.h"
2929 #include "EntitySimulation.h"
3030 #include "EntityTree.h"
3131 #include "LightEntityItem.h"
@@ -1133,7 +1133,7 @@ QUuid EntityScriptingInterface::addAction(const QString& actionTypeString, · 1101 unmodified lines
11331133 PROFILE_RANGE(script_entities, __FUNCTION__);
11341134
11351135 QUuid actionID = QUuid::createUuid();
1136− auto actionFactory = DependencyManager::get<EntityActionFactoryInterface>();
1136+ auto actionFactory = DependencyManager::get<EntityDynamicFactoryInterface>();
11371137 bool success = false;
11381138 actionWorker(entityID, [&](EntitySimulationPointer simulation, EntityItemPointer entity) {
11391139 // create this action even if the entity doesn't have physics info. it will often be the
@@ -1142,11 +1142,11 @@ QUuid EntityScriptingInterface::addAction(const QString& actionTypeString, · 2 unmodified lines
11421142 // if (!entity->getPhysicsInfo()) {
11431143 // return false;
11441144 // }
1145− EntityActionType actionType = EntityActionInterface::actionTypeFromString(actionTypeString);
1146− if (actionType == ACTION_TYPE_NONE) {
1145+ EntityDynamicType dynamicType = EntityDynamicInterface::dynamicTypeFromString(actionTypeString);
1146+ if (dynamicType == DYNAMIC_TYPE_NONE) {
11471147 return false;
11481148 }
1149− EntityActionPointer action = actionFactory->factory(actionType, actionID, entity, arguments);
1149+ EntityDynamicPointer action = actionFactory->factory(dynamicType, actionID, entity, arguments);
11501150 if (!action) {
11511151 return false;
11521152 }