Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
1.4 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //
  7. //=============================================================================//
  8. #include "cbase.h"
  9. #include "clientmode.h"
  10. // memdbgon must be the last include file in a .cpp file!!!
  11. #include "tier0/memdbgon.h"
  12. //================================================================
  13. // Global startup and shutdown functions for game code in the DLL.
  14. //================================================================
  15. class CViewportClientSystem : public IGameSystem
  16. {
  17. public:
  18. CViewportClientSystem()
  19. {
  20. }
  21. virtual char const *Name() { return "CViewportClientSystem"; }
  22. virtual bool IsPerFrame() { return false; }
  23. // Init, shutdown
  24. virtual bool Init()
  25. {
  26. for ( int hh = 0; hh < MAX_SPLITSCREEN_PLAYERS; ++hh )
  27. {
  28. ACTIVE_SPLITSCREEN_PLAYER_GUARD_VGUI( hh );
  29. GetClientMode()->Layout();
  30. }
  31. return true;
  32. }
  33. virtual void PostInit() {}
  34. virtual void Shutdown() {}
  35. virtual void LevelInitPreEntity() {}
  36. virtual void LevelInitPostEntity() {}
  37. virtual void LevelShutdownPreEntity() {}
  38. virtual void LevelShutdownPostEntity() {}
  39. virtual void SafeRemoveIfDesired() {}
  40. virtual void OnSave() {}
  41. virtual void OnRestore() {}
  42. };
  43. static CViewportClientSystem g_ViewportClientSystem;
  44. IGameSystem *ViewportClientSystem()
  45. {
  46. return &g_ViewportClientSystem;
  47. }