BVB Source Codes

CRYENGINE Show IGameSessionHandler.h Source code

Return Download CRYENGINE: download IGameSessionHandler.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: Interface to handle sessions.
  8.  
  9.    -------------------------------------------------------------------------
  10.    History:
  11.    - 08:12:2009 : Created By Ben Johnson
  12.  
  13. *************************************************************************/
  14.  
  15. #ifndef __I_GAME_SESSION_HANDLER_H__
  16. #define __I_GAME_SESSION_HANDLER_H__
  17.  
  18. #include <CryLobby/CommonICryLobby.h>
  19.  
  20. struct SGameStartParams;
  21.  
  22. struct IGameSessionHandler
  23. {
  24. public:
  25.         virtual ~IGameSessionHandler() {}
  26.  
  27.         virtual bool             ShouldCallMapCommand(const char* pLevelName, const char* pGameRules) = 0;
  28.         virtual void             JoinSessionFromConsole(CrySessionID session) = 0;
  29.         virtual int              EndSession() = 0;
  30.  
  31.         virtual int              StartSession() = 0;
  32.         virtual void             LeaveSession() = 0;
  33.  
  34.         virtual void             OnUserQuit() = 0;
  35.         virtual void             OnGameShutdown() = 0;
  36.  
  37.         virtual CrySessionHandle GetGameSessionHandle() const = 0;
  38.         virtual bool             ShouldMigrateNub() const = 0;
  39.  
  40.         virtual bool             IsMultiplayer() const = 0;
  41.  
  42.         virtual int              GetNumberOfExpectedClients() = 0;
  43.  
  44.         virtual bool             IsGameSessionMigrating() const = 0;
  45.         virtual bool             IsMidGameLeaving() const = 0;
  46. };
  47.  
  48. #endif //__I_GAME_SESSION_HANDLER_H__
  49.  
downloadIGameSessionHandler.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