Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5651 in orxonox.OLD for trunk/src/story_entities


Ignore:
Timestamp:
Nov 20, 2005, 5:14:27 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: new (LoadParam && ExecutorSpecials)-Functionality that enables the Loading of XML-elements.
The new Executor really works out, and makes the understanding of loadParam way easier (given you won't read Executor :)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/story_entities/campaign.cc

    r5324 r5651  
    2828
    2929#include "load_param.h"
     30
    3031
    3132using namespace std;
     
    7475  static_cast<BaseObject*>(this)->loadParams(root);
    7576
    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)
    8083      .describe("A List of Worlds to be loaded in this Campaign");
    8184}
     
    8790void Campaign::loadWorldListParams(const TiXmlElement* root)
    8891{
     92  if (root == NULL)
     93    return;
     94
    8995  const TiXmlElement* element = root->FirstChildElement();
    9096  // load Worlds/Subcampaigns/Whatever
Note: See TracChangeset for help on using the changeset viewer.