Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 12, 2008, 4:32:10 AM (16 years ago)
Author:
landauf
Message:
  • Some small changes in XMLPortParam: It's now possible to add functions of another class. an example is setPosition and getPosition that are directly referred to Ogre::Node. Use XMLPortParamExtern if you need this. It takes the object to call the functions on as an additional argument (in our example: this→node_).
  • Removed loadParams functions and reduced the usage of XMLPortParamLoadOnly in several classes
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core3/src/orxonox/objects/Model.cc

    r1559 r1592  
    6868        WorldEntity::XMLPort(xmlelement, mode);
    6969
    70         XMLPortParamLoadOnly(Model, "mesh", setMesh, xmlelement, mode);
     70        XMLPortParam(Model, "mesh", setMesh, getMesh, xmlelement, mode);
    7171
    7272        Model::create();
    73     }
    74 
    75     void Model::setMesh(const std::string& meshname)
    76     {
    77         this->meshSrc_ = meshname;
    7873    }
    7974
Note: See TracChangeset for help on using the changeset viewer.