BVB Source Codes

CRYENGINE Show GameSessionHandler.h Source code

Return Download CRYENGINE: download GameSessionHandler.h Source code - Download CRYENGINE Source code - Type:.h
  1. // Copyright 2001-2016 Crytek GmbH / Crytek Group. All rights reserved.
  2.  
  3. /*************************************************************************
  4.    -------------------------------------------------------------------------
  5.    $Id$
  6.    $DateTime$
  7.    Description: Default session handler implementation.
  8.  
  9.    -------------------------------------------------------------------------
  10.    History:
  11.    - 08:12:2009 : Created By Ben Johnson
  12.  
  13. *************************************************************************/
  14. #ifndef __GAME_SESSION_HANDLER_H__
  15. #define __GAME_SESSION_HANDLER_H__
  16.  
  17. #include <IGameSessionHandler.h>
  18.  
  19. class CGameSessionHandler : public IGameSessionHandler
  20. {
  21. public:
  22.         CGameSessionHandler();
  23.         virtual ~CGameSessionHandler();
  24.  
  25.         // IGameSessionHandler
  26.         virtual bool             ShouldCallMapCommand(const char* pLevelName, const char* pGameRules);
  27.         virtual void             JoinSessionFromConsole(CrySessionID sessionID);
  28.         virtual int              EndSession();
  29.  
  30.         virtual int              StartSession();
  31.         virtual void             LeaveSession();
  32.  
  33.         virtual void             OnUserQuit();
  34.         virtual void             OnGameShutdown();
  35.  
  36.         virtual CrySessionHandle GetGameSessionHandle() const;
  37.         virtual bool             ShouldMigrateNub() const;
  38.  
  39.         virtual bool             IsMultiplayer() const;
  40.         virtual int              GetNumberOfExpectedClients();
  41.  
  42.         virtual bool             IsGameSessionMigrating() const;
  43.         virtual bool             IsMidGameLeaving() const;
  44.         // ~IGameSessionHandler
  45. };
  46.  
  47. #endif //__GAME_SESSION_HANDLER_H__
  48.  
downloadGameSessionHandler.h Source code - Download CRYENGINE Source code
Related Source Codes/Software:
postal - 2017-06-11
reactide - Reactide is the first dedicated IDE for React web ... 2017-06-11
rkt - rkt is a pod-native container engine for Linux. It... 2017-06-11
uWebSockets - Tiny WebSockets https://for... 2017-06-11
realworld - TodoMVC for the RealWorld - Exemplary fullstack Me... 2017-06-11
CRYENGINE - CRYENGINE is a powerful real-time game development... 2017-06-11
goreplay - GoReplay is an open-source tool for capturing and ... 2017-06-10
pyenv - Simple Python version management 2017-06-10
redux-saga - An alternative side effect model for Redux apps ... 2017-06-10
angular-starter - 2017-06-10

 Back to top