Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 31, 2015, 10:56:32 AM (9 years ago)
Author:
landauf
Message:

load modules AFTER core was initialized. load each module with a separate ModuleInstance. unloading is not yet implemented…

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core7/src/libraries/core/Core.h

    r10509 r10518  
    6060    {
    6161        friend class Singleton<Core>;
    62         friend class Game;
    6362
    6463        public:
     
    7776            void destroy();
    7877
     78            void preUpdate(const Clock& time);
     79            void postUpdate(const Clock& time);
     80
     81            void loadGraphics();
     82            void unloadGraphics();
     83
     84            void loadModules();
     85            void unloadModules();
     86            void loadModule(ModuleInstance* module);
     87            void unloadModule(ModuleInstance* module);
     88
    7989            inline CoreConfig* getConfig() const
    8090                { return this->config_; }
     
    8292        private:
    8393            Core(const Core&); //!< Don't use (undefined symbol)
    84 
    85             void preUpdate(const Clock& time);
    86             void postUpdate(const Clock& time);
    87 
    88             void loadGraphics();
    89             void unloadGraphics();
    9094
    9195            void setThreadAffinity(int limitToCPU);
     
    108112            Scope<ScopeID::GRAPHICS>* graphicsScope_;
    109113            bool                      bGraphicsLoaded_;
     114            ModuleInstance*           rootModule_;
     115            std::list<ModuleInstance*>modules_;
    110116
    111117            /// Helper object that stores the config values
Note: See TracChangeset for help on using the changeset viewer.