Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.