Changeset 11583 for code/branches/ScriptableController_HS17/src/orxonox/worldentities/WorldEntity.cc
- Timestamp:
- Nov 20, 2017, 4:48:03 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/ScriptableController_HS17/src/orxonox/worldentities/WorldEntity.cc
r11562 r11583 44 44 #include "core/XMLPort.h" 45 45 #include "Scene.h" 46 #include "Level.h" 46 47 #include "collisionshapes/WorldEntityCollisionShape.h" 47 48 #include "scriptablecontroller/scriptable_controller.h" … … 185 186 XMLPortObject(WorldEntity, CollisionShape, "collisionShapes", attachCollisionShape, getAttachedCollisionShape, xmlelement, mode); 186 187 187 orxout(user_info) << "ID loaded" << std::endl; 188 if(!this->id_.empty() && this->getLevel() != nullptr) 189 this->getLevel()->getScriptableController()->registerWorldEntity(this->id_, this); 188 190 } 189 191 … … 280 282 } 281 283 282 void WorldEntity::registerToScriptableController(ScriptableController *controller)283 {284 orxout(user_info) << "Registering object to SC (" << this->id_ << ")" << std::endl;285 controller->registerWorldEntity(this->id_, this);286 }287 288 284 /** 289 285 @brief
Note: See TracChangeset
for help on using the changeset viewer.