Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 26, 2009, 2:15:08 PM (15 years ago)
Author:
rgrieder
Message:

Loading and unloading graphics automatically: As soon as a GameState requires graphics (defined at the GameState declaration with a bool) it gets loaded. And vice versa.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/resource/src/core/GameMode.h

    r3343 r3355  
    4141    class _CoreExport GameMode
    4242    {
    43         friend class Core;
     43        friend class Game;
    4444
    4545        public:
     
    5959            ~GameMode();
    6060
    61             static void setShowsGraphics(bool val) { bShowsGraphics_s = val; updateIsMaster(); }
    62             static void updateIsMaster  ()         { bIsMaster_s      = (bHasServer_s || bIsStandalone_s); }
     61            static void updateIsMaster()
     62            {
     63                bIsMaster_s = (bHasServer_s || bIsStandalone_s);
     64            }
    6365
    6466            static bool bShowsGraphics_s;                   //!< global variable that tells whether to show graphics
Note: See TracChangeset for help on using the changeset viewer.