Changeset 11855 for code/branches/ScriptableController_FS18/src/orxonox/worldentities/WorldEntity.cc
- Timestamp:
- Apr 12, 2018, 2:07:03 PM (7 years ago)
- Location:
- code/branches/ScriptableController_FS18
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/ScriptableController_FS18
- Property svn:mergeinfo changed
/code/branches/ScriptableController_HS17 (added) merged: 11462,11518-11519,11549,11552,11562,11583,11606,11638,11662,11673-11674,11684,11852,11854
- Property svn:mergeinfo changed
-
code/branches/ScriptableController_FS18/src/orxonox/worldentities/WorldEntity.cc
r11083 r11855 44 44 #include "core/XMLPort.h" 45 45 #include "Scene.h" 46 #include "Level.h" 46 47 #include "collisionshapes/WorldEntityCollisionShape.h" 48 #include "scriptablecontroller/scriptable_controller.h" 47 49 48 50 namespace orxonox … … 79 81 this->parentID_ = OBJECTID_UNKNOWN; 80 82 this->bDeleteWithParent_ = true; 83 this->id_ = -1; 81 84 82 85 this->node_->setPosition(Vector3::ZERO); … … 160 163 XMLPortParamTemplate(WorldEntity, "scale3D", setScale3D, getScale3D, xmlelement, mode, const Vector3&); 161 164 XMLPortParam (WorldEntity, "scale", setScale, getScale, xmlelement, mode); 165 XMLPortParamLoadOnly(WorldEntity, "id", setID, xmlelement, mode); 162 166 XMLPortParamLoadOnly(WorldEntity, "lookat", lookAt_xmlport, xmlelement, mode); 163 167 XMLPortParamLoadOnly(WorldEntity, "direction", setDirection_xmlport, xmlelement, mode); … … 181 185 // Attached collision shapes 182 186 XMLPortObject(WorldEntity, CollisionShape, "collisionShapes", attachCollisionShape, getAttachedCollisionShape, xmlelement, mode); 187 188 if(!this->id_.empty() && this->getLevel() != nullptr) 189 this->getLevel()->getScriptableController()->registerWorldEntity(this->id_, this); 183 190 } 184 191
Note: See TracChangeset
for help on using the changeset viewer.