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/sound/SoundManager.h

    r5693 r5850  
    3232#include <cassert>
    3333#include <list>
    34 #include "util/Singleton.h"
     34#include "util/ScopedSingleton.h"
    3535#include "tools/interfaces/Tickable.h"
    3636
     
    4343     *
    4444     */
    45     class _OrxonoxExport SoundManager : public Singleton<SoundManager>, public Tickable
     45    class _OrxonoxExport SoundManager : public ScopedSingleton<SoundManager, ScopeID::Graphics>, public Tickable
    4646    {
    47         friend class Singleton<SoundManager>;
     47        friend class ScopedSingleton<SoundManager, ScopeID::Graphics>;
    4848    public:
    4949        SoundManager();
Note: See TracChangeset for help on using the changeset viewer.