Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6261 for code/branches


Ignore:
Timestamp:
Dec 6, 2009, 9:47:42 PM (15 years ago)
Author:
rgrieder
Message:

Tolua interface for GameMode that has functions like playsSound, showsGraphics, etc.

Location:
code/branches/presentation2/src/libraries/core
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation2/src/libraries/core/CMakeLists.txt

    r6259 r6261  
    8888    ConfigFileManager.h
    8989    Game.h
     90    GameMode.h
    9091    Loader.h
    9192    LuaState.h
  • code/branches/presentation2/src/libraries/core/GameMode.h

    r5929 r6261  
    3737#include "CorePrereqs.h"
    3838
     39// tolua_begin
    3940namespace orxonox
    4041{
    4142    class _CoreExport GameMode
    4243    {
     44// tolua_end
    4345        friend class Core;
    4446
    4547        public:
     48// tolua_begin
    4649            static bool showsGraphics() { return bShowsGraphics_s; }
    4750            static bool playsSound()    { return bPlaysSound_s; }
     
    5053            static bool isStandalone()  { return bIsStandalone_s; }
    5154            static bool isMaster()      { return bIsMaster_s; }
     55// tolua_end
    5256
    5357            static void setPlaysSound   (bool val) { bPlaysSound_s    = val; }
     
    7276            static bool bIsStandalone_s;
    7377            static bool bIsMaster_s;
    74     };
    75 }
     78    }; // tolua_export
     79} // tolua_export
    7680
    7781#endif /* _GameMode_H__ */
Note: See TracChangeset for help on using the changeset viewer.