Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Nov 20, 2005, 6:32:39 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: new LoadParam procedure with all NON-cycling load-options, and it works perfectly (on first sight :))

now going to make the same for cycling LoadOptions

Location:
trunk/src/story_entities
Files:
2 edited

Legend:

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

    r5651 r5652  
    7575  static_cast<BaseObject*>(this)->loadParams(root);
    7676
    77   //LoadParam<Campaign>(root, "identifier", this, &Campaign::setStoryID)
    7877  LoadParamNEW(root, "identifier", this, Campaign, setStoryID)
    7978     .describe("A Unique Identifier for this Campaign");
    8079
    81 //  LoadParam<Campaign>(root, "WorldList", this, &Campaign::loadWorldListParams)
    8280   LoadParamXML(root, "WorldList", this, Campaign, loadWorldListParams)
    8381      .describe("A List of Worlds to be loaded in this Campaign");
  • trunk/src/story_entities/world.cc

    r5556 r5652  
    186186  PRINTF(4)("Creating a World\n");
    187187
    188   LoadParam<World>(root, "identifier", this, &World::setStoryID)
     188  LoadParamNEW(root, "identifier", this, World, setStoryID)
    189189    .describe("Sets the StoryID of this world");
    190190
    191   LoadParam<World>(root, "nextid", this, &World::setNextStoryID)
     191  LoadParamNEW(root, "nextid", this, World, setNextStoryID)
    192192    .describe("Sets the ID of the next world");
    193193
    194   LoadParam<World>(root, "path", this, &World::setPath)
     194  LoadParamNEW(root, "path", this, World, setPath)
    195195    .describe("The Filename of this World (relative from the data-dir)");
    196196}
     
    339339    //////////////////////////////
    340340
    341     LoadParam<LightManager>(root, "LightManager", LightManager::getInstance(), &LightManager::loadParams);
    342 
    343     LoadParam<ParticleEngine>(root, "ParticleEngine", ParticleEngine::getInstance(), &ParticleEngine::loadParams);
    344     LoadParam<PhysicsEngine>(root, "PhysicsEngine", PhysicsEngine::getInstance(), &PhysicsEngine::loadParams);
     341    LoadParamXML(root, "LightManager", LightManager::getInstance(), LightManager, loadParams);
     342
     343    LoadParamXML(root, "ParticleEngine", ParticleEngine::getInstance(), ParticleEngine, loadParams);
     344    LoadParamXML(root, "PhysicsEngine", PhysicsEngine::getInstance(), PhysicsEngine, loadParams);
    345345
    346346  // find Track
Note: See TracChangeset for help on using the changeset viewer.