home *** CD-ROM | disk | FTP | other *** search
/ Enter 2005 March / ENTER.ISO / files / fwp-0.0.6-win32-installer.exe / ConsoleInfo.h < prev    next >
Encoding:
C/C++ Source or Header  |  2004-12-06  |  1.2 KB  |  54 lines

  1. #ifndef __ConsoleInfo_h__
  2. #define __ConsoleInfo_h__
  3.  
  4. #include "SubSystemInfo.h"
  5. #include "CVar.h"
  6. #include "CAlias.h"
  7. #include "ConsoleCCmds.h"
  8.  
  9. typedef struct ConsoleInfoVar_s{
  10.     float* fontColor;
  11. //    float* backgroundColor;
  12. //    char* backgroundTexture;
  13. }ConsoleInfoVar_t;
  14.  
  15. typedef struct ConsoleInfoCVar_s{
  16.     CVarRealVector* console_fontColor;
  17. //    CVarRealVector* console_backgroundColor;
  18. //    CVarString* console_backgroundTexture;
  19. }ConsoleInfoCVar_t;
  20.  
  21. typedef struct ConsoleInfoCCmd_s{
  22.     CCmdConsoleToggle* console_toggle;
  23.     CCmdConsoleClear* console_clear;
  24.     CCmdConsoleStartLog* console_startLog;
  25.     CCmdConsoleEndLog* console_endLog;
  26.     CCmdConsoleRestart* console_restart;
  27. }ConsoleInfoCCmd_t;
  28.  
  29.  
  30. class ConsoleInfo{
  31. public:
  32.     static ConsoleInfoVar_t var;
  33.     static ConsoleInfoCVar_t cvar;
  34.     static ConsoleInfoCCmd_t ccmd;
  35.  
  36.     static bool init();
  37.     static bool shutdown();
  38.     static bool wasInit();
  39.  
  40.     static bool initFrontEnd();
  41.     static bool shutdownFrontEnd();
  42.     static bool wasFrontEndInit();
  43.     
  44.  
  45.     static bool registerCVarsAndCCmds();
  46.     static bool unregisterCVarsAndCCmds();
  47.  
  48. protected:
  49.     static bool initialized;
  50.     static bool frontEndInitialized;
  51. };
  52.  
  53. #endif    /* __ConsoleInfo_h__ */
  54.