Changeset 4436 in orxonox.OLD for orxonox/trunk/src/world_entities
- Timestamp:
 - Jun 1, 2005, 12:50:07 PM (20 years ago)
 - Location:
 - orxonox/trunk/src/world_entities
 - Files:
 - 
          
- 2 edited
 
- 
          skybox.cc (modified) (2 diffs)
 - 
          world_entity.cc (modified) (2 diffs)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
        
orxonox/trunk/src/world_entities/skybox.cc
r4357 r4436 45 45 } 46 46 47 SkyBox::SkyBox(const TiXmlElement* root) : WorldEntity(root)47 SkyBox::SkyBox(const TiXmlElement* root) 48 48 { 49 49 this->preInit(); … … 56 56 void SkyBox::loadParams(const TiXmlElement* root) 57 57 { 58 static_cast<WorldEntity*>(this)->loadParams(root); 59 58 60 LoadParam<SkyBox>(root, "Materialset", this, &SkyBox::setTexture) 59 61 .describe("Sets the material on the SkyBox. The string must be the path relative to the data-dir, and without a trailing .jpg");  - 
        
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.
      


            






