Changeset 871 for code/trunk/src/orxonox/objects/Model.cc
- Timestamp:
- Mar 9, 2008, 4:44:36 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/objects/Model.cc
r790 r871 33 33 #include "../core/CoreIncludes.h" 34 34 #include "../Orxonox.h" 35 #include "core/XMLPort.h" 35 36 36 37 #include "Model.h" … … 60 61 } 61 62 63 /** 64 @brief XML loading and saving. 65 @param xmlelement The XML-element 66 @param loading Loading (true) or saving (false) 67 @return The XML-element 68 */ 69 void Model::XMLPort(Element& xmlelement, bool loading) 70 { 71 WorldEntity::XMLPort(xmlelement, loading); 72 73 XMLPortParamLoadOnly(Model, "mesh", setMesh, xmlelement, loading); 74 75 create(); 76 } 77 78 void Model::setMesh(const std::string& meshname) 79 { 80 this->meshSrc_ = meshname; 81 } 82 62 83 bool Model::create(){ 63 84 if(meshSrc_.compare("")!=0){ … … 71 92 72 93 void Model::registerAllVariables(){ 73 registerVar(&meshSrc_, meshSrc_.length() + 1, network::STRING);94 // registerVar(&meshSrc_, meshSrc_.length() + 1, network::STRING); 74 95 } 75 96 }
Note: See TracChangeset
for help on using the changeset viewer.