Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 11, 2005, 5:28:38 PM (20 years ago)
Author:
chris
Message:

orxonox/branches/levelloader: Feeble attempt to load anything… neither finished nor useful

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/levelloader/src/story_entities/campaign.cc

    r3499 r3501  
    3333Campaign::~Campaign () {}
    3434
     35Campaign::Campaign ( TiXMLElement* root)
     36{
     37        TiXMLElement* element;
     38       
     39        assert( root != NULL);
     40        GameLoader* loader = GameLoader::getInstance();
     41       
     42  this->entities = new ListTemplate<StoryEntity>();
     43  this->isInit = false;
     44 
     45  // grab all the necessary parameters
     46 
     47  // find WorldList
     48  element = root->FirstChildElement( "WorldList");
     49 
     50  // load Worlds
     51        while( element != NULL)
     52        {
     53                StoryEntity created = loader->fabricate( element);
     54                if( created != NULL) addEntity( created);
     55                element = element->nextSiblingElement();
     56        }
     57}
    3558
    3659ErrorMessage Campaign::init()
Note: See TracChangeset for help on using the changeset viewer.