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/overlays/InGameConsole.h

    r5791 r5850  
    3636
    3737#include "util/OgreForwardRefs.h"
    38 #include "util/Singleton.h"
     38#include "util/ScopedSingleton.h"
    3939#include "core/Shell.h"
    4040#include "core/WindowEventListener.h"
     
    4242namespace orxonox
    4343{
    44     class _OrxonoxExport InGameConsole : public Singleton<InGameConsole>, public ShellListener, public WindowEventListener
     44    class _OrxonoxExport InGameConsole : public ScopedSingleton<InGameConsole, ScopeID::Graphics>, public ShellListener, public WindowEventListener
    4545    {
    46         friend class Singleton<InGameConsole>;
     46        friend class ScopedSingleton<InGameConsole, ScopeID::Graphics>;
    4747    public: // functions
    4848        InGameConsole();
Note: See TracChangeset for help on using the changeset viewer.