Changeset 11518 for code/branches/ScriptableController_HS17/src/orxonox/worldentities/WorldEntity.cc
- Timestamp:
- Oct 30, 2017, 4:05:01 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/ScriptableController_HS17/src/orxonox/worldentities/WorldEntity.cc
r11083 r11518 45 45 #include "Scene.h" 46 46 #include "collisionshapes/WorldEntityCollisionShape.h" 47 #include "scriptablecontroller/scriptable_controller.h" 47 48 48 49 namespace orxonox … … 79 80 this->parentID_ = OBJECTID_UNKNOWN; 80 81 this->bDeleteWithParent_ = true; 82 this->id_ = -1; 81 83 82 84 this->node_->setPosition(Vector3::ZERO); … … 160 162 XMLPortParamTemplate(WorldEntity, "scale3D", setScale3D, getScale3D, xmlelement, mode, const Vector3&); 161 163 XMLPortParam (WorldEntity, "scale", setScale, getScale, xmlelement, mode); 164 XMLPortParamLoadOnly(WorldEntity, "id", setID, xmlelement, mode); 162 165 XMLPortParamLoadOnly(WorldEntity, "lookat", lookAt_xmlport, xmlelement, mode); 163 166 XMLPortParamLoadOnly(WorldEntity, "direction", setDirection_xmlport, xmlelement, mode); … … 275 278 } 276 279 280 void WorldEntity::registerToScriptableController(ScriptableController *controller) 281 { 282 controller->registerWorldEntity(this->id_, this); 283 } 284 277 285 /** 278 286 @brief
Note: See TracChangeset
for help on using the changeset viewer.