Changeset 3542 in orxonox.OLD for orxonox/branches/levelloader/src/story_entities/campaign.cc
- Timestamp:
- Mar 14, 2005, 9:58:58 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/levelloader/src/story_entities/campaign.cc
r3530 r3542 56 56 } 57 57 else this->setStoryID( id); 58 58 59 59 // find WorldList 60 60 element = root->FirstChildElement( "WorldList"); 61 61 62 62 // load Worlds/Subcampaigns/Whatever 63 StoryEntity* lastCreated = NULL; 63 64 while( element != NULL) 64 65 { 65 66 StoryEntity* created = (StoryEntity*) loader->fabricate( element); 66 if( created != NULL) addEntity( created); 67 if( lastCreated != NULL) created->setNextStoryID( lastCreated->getStoryID()); 68 if( created != NULL) 69 { 70 this->addEntity( created); 71 lastCreated = created; 72 } 67 73 element = element->NextSiblingElement(); 68 74 } 75 if( lastCreated != NULL) lastCreated->setStoryID( WORLD_ID_GAMEEND); 69 76 } 70 77
Note: See TracChangeset
for help on using the changeset viewer.