Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5161 in orxonox.OLD for trunk/src/util/loading


Ignore:
Timestamp:
Sep 5, 2005, 10:19:44 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: better method to register Shell-Commands (now via the Factory-algorithm proposed)

BUT!! NOW ONLY SINGLETON IS SUPPORTED → fixing!!

Location:
trunk/src/util/loading
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/util/loading/factory.cc

    r5156 r5161  
    7171  {
    7272    Factory::first = factory;
    73     ShellCommand<Factory>::registerCommand("create", CL_FACTORY, &Factory::fabricate);
     73    ShellCommand<Factory>::registerCommand("create", "Factory", &Factory::fabricate);
    7474  }
    7575  else
  • trunk/src/util/loading/game_loader.cc

    r5139 r5161  
    4444  this->setName("GameLoader");
    4545
    46   ShellCommand<GameLoader>::registerCommand("quit", CL_GAME_LOADER, &GameLoader::stop);
     46  ShellCommand<GameLoader>::registerCommand("quit", "GameLoader", &GameLoader::stop);
    4747}
    4848
Note: See TracChangeset for help on using the changeset viewer.