Changeset 4599 in orxonox.OLD for orxonox/trunk
- Timestamp:
- Jun 11, 2005, 3:23:35 AM (20 years ago)
- Location:
- orxonox/trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/story_entities/campaign.cc
r4598 r4599 76 76 LoadParam<Campaign>(root, "identifier", this, &Campaign::setStoryID); 77 77 78 LoadParam<Campaign>(root, "WorldList", this, &Campaign::loadWorldListParams , root->FirstChildElement("WorldList"));78 LoadParam<Campaign>(root, "WorldList", this, &Campaign::loadWorldListParams); 79 79 } 80 80 -
orxonox/trunk/src/util/loading/load_param.h
r4598 r4599 306 306 LoadParam4(l_FLOAT, l_FLOAT, l_FLOAT, l_FLOAT); 307 307 308 LoadParamPT(l_XML_ELEM); 308 309 LoadParam(const TiXmlElement* root, const char* paramName, T* pt2Object, void(T::*function)(const TiXmlElement*), bool multi = false) 310 : BaseLoadParam(root, pt2Object, paramName, 1, multi, NULL, "XML-Element") 311 { 312 if (root != NULL) 313 { 314 const TiXmlElement* elem = root->FirstChildElement(paramName); 315 if (likely(elem != NULL)) 316 (*pt2Object.*function)(elem); 317 else 318 PRINTF(2)("%s of %s is empty", paramName, pt2Object->getClassName()); 319 } 320 else 321 PRINTF(4)("Not loaded parameter %s of %s\n", paramName, pt2Object->getClassName()); 322 } 323 324 //LoadParamPT(l_XML_ELEM); 309 325 }; 310 326
Note: See TracChangeset
for help on using the changeset viewer.