Changeset 5651 in orxonox.OLD for trunk/src/story_entities
- Timestamp:
- Nov 20, 2005, 5:14:27 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/story_entities/campaign.cc
r5324 r5651 28 28 29 29 #include "load_param.h" 30 30 31 31 32 using namespace std; … … 74 75 static_cast<BaseObject*>(this)->loadParams(root); 75 76 76 LoadParam<Campaign>(root, "identifier", this, &Campaign::setStoryID) 77 .describe("A Unique Identifier for this Campaign"); 78 79 LoadParam<Campaign>(root, "WorldList", this, &Campaign::loadWorldListParams) 77 //LoadParam<Campaign>(root, "identifier", this, &Campaign::setStoryID) 78 LoadParamNEW(root, "identifier", this, Campaign, setStoryID) 79 .describe("A Unique Identifier for this Campaign"); 80 81 // LoadParam<Campaign>(root, "WorldList", this, &Campaign::loadWorldListParams) 82 LoadParamXML(root, "WorldList", this, Campaign, loadWorldListParams) 80 83 .describe("A List of Worlds to be loaded in this Campaign"); 81 84 } … … 87 90 void Campaign::loadWorldListParams(const TiXmlElement* root) 88 91 { 92 if (root == NULL) 93 return; 94 89 95 const TiXmlElement* element = root->FirstChildElement(); 90 96 // load Worlds/Subcampaigns/Whatever
Note: See TracChangeset
for help on using the changeset viewer.