[Orxonox-commit 1543] r6261 - code/branches/presentation2/src/libraries/core

rgrieder at orxonox.net rgrieder at orxonox.net
Sun Dec 6 21:47:42 CET 2009


Author: rgrieder
Date: 2009-12-06 21:47:42 +0100 (Sun, 06 Dec 2009)
New Revision: 6261

Modified:
   code/branches/presentation2/src/libraries/core/CMakeLists.txt
   code/branches/presentation2/src/libraries/core/GameMode.h
Log:
Tolua interface for GameMode that has functions like playsSound, showsGraphics, etc.

Modified: code/branches/presentation2/src/libraries/core/CMakeLists.txt
===================================================================
--- code/branches/presentation2/src/libraries/core/CMakeLists.txt	2009-12-06 20:46:04 UTC (rev 6260)
+++ code/branches/presentation2/src/libraries/core/CMakeLists.txt	2009-12-06 20:47:42 UTC (rev 6261)
@@ -87,6 +87,7 @@
     CommandExecutor.h
     ConfigFileManager.h
     Game.h
+    GameMode.h
     Loader.h
     LuaState.h
     PathConfig.h

Modified: code/branches/presentation2/src/libraries/core/GameMode.h
===================================================================
--- code/branches/presentation2/src/libraries/core/GameMode.h	2009-12-06 20:46:04 UTC (rev 6260)
+++ code/branches/presentation2/src/libraries/core/GameMode.h	2009-12-06 20:47:42 UTC (rev 6261)
@@ -36,19 +36,23 @@
 
 #include "CorePrereqs.h"
 
+// tolua_begin
 namespace orxonox
 {
     class _CoreExport GameMode
     {
+// tolua_end
         friend class Core;
 
         public:
+// tolua_begin
             static bool showsGraphics() { return bShowsGraphics_s; }
             static bool playsSound()    { return bPlaysSound_s; }
             static bool hasServer()     { return bHasServer_s; }
             static bool isClient()      { return bIsClient_s; }
             static bool isStandalone()  { return bIsStandalone_s; }
             static bool isMaster()      { return bIsMaster_s; }
+// tolua_end
 
             static void setPlaysSound   (bool val) { bPlaysSound_s    = val; }
             static void setHasServer    (bool val) { bHasServer_s     = val; updateIsMaster(); }
@@ -71,7 +75,7 @@
             static bool bIsClient_s;
             static bool bIsStandalone_s;
             static bool bIsMaster_s;
-    };
-}
+    }; // tolua_export
+} // tolua_export
 
 #endif /* _GameMode_H__ */




More information about the Orxonox-commit mailing list