Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 1, 2005, 12:50:07 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: baseObject now implements loading of objectNames

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/world_entities/world_entity.cc

    r4435 r4436  
    3939}
    4040
    41 void WorldEntity::loadParams(const TiXmlElement* root)
    42 {
    43   // name setup
    44   //  LoadParam<WorldEntity>(root, "name", this, &BaseObject::setName)
    45   //    .describe("the name of the Object at hand");
    46 
    47   // Model Loading     
    48   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 
    5241/**
    5342   \brief standard destructor
     
    5847  if (this->model)
    5948    ResourceManager::getInstance()->unload(this->model);
     49}
     50
     51void 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)") ;
    6057}
    6158
Note: See TracChangeset for help on using the changeset viewer.