Changeset 4436 in orxonox.OLD for orxonox/trunk/src/world_entities/world_entity.cc
- Timestamp:
- Jun 1, 2005, 12:50:07 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/world_entities/world_entity.cc
r4435 r4436 39 39 } 40 40 41 void WorldEntity::loadParams(const TiXmlElement* root)42 {43 // name setup44 // LoadParam<WorldEntity>(root, "name", this, &BaseObject::setName)45 // .describe("the name of the Object at hand");46 47 // Model Loading48 LoadParam<WorldEntity>(root, "model", this, &WorldEntity::loadModel)49 .describe("the fileName of the model, that should be loaded onto this world-entity. (must be relative to the data-dir)") ;50 }51 52 41 /** 53 42 \brief standard destructor … … 58 47 if (this->model) 59 48 ResourceManager::getInstance()->unload(this->model); 49 } 50 51 void WorldEntity::loadParams(const TiXmlElement* root) 52 { 53 static_cast<PNode*>(this)->loadParams(root); 54 // Model Loading 55 LoadParam<WorldEntity>(root, "model", this, &WorldEntity::loadModel) 56 .describe("the fileName of the model, that should be loaded onto this world-entity. (must be relative to the data-dir)") ; 60 57 } 61 58
Note: See TracChangeset
for help on using the changeset viewer.