Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 1, 2009, 11:44:53 AM (15 years ago)
Author:
rgrieder
Message:

Moved the singleton creation/destruction mess to the Core class by using just two possible Scopes:

  • ScopeID::Root for singletons that may always persists
  • ScopeID::Graphics for singletons that only work when graphics was loaded
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core5/src/orxonox/gamestates/GSRoot.cc

    r5831 r5850  
    3737#include "tools/interfaces/TimeFactorListener.h"
    3838#include "tools/interfaces/Tickable.h"
    39 #include "LevelManager.h"
    4039
    4140namespace orxonox
     
    7069        this->ccPause_ = createConsoleCommand(createFunctor(&GSRoot::pause, this), "pause");
    7170        CommandExecutor::addConsoleCommandShortcut(this->ccPause_).accessLevel(AccessLevel::Offline);
    72 
    73         // create the LevelManager
    74         this->levelManager_ = new LevelManager();
    7571    }
    7672
     
    9086        }
    9187*/
    92 
    93         this->levelManager_->destroy();
    9488    }
    9589
Note: See TracChangeset for help on using the changeset viewer.