GOG GALAXY SDK Documentation
GalaxyGameServerApi.h
Go to the documentation of this file.
1 #ifndef GALAXY_GALAXY_GAME_SERVER_API_H
2 #define GALAXY_GALAXY_GAME_SERVER_API_H
3 
9 #include "GalaxyExport.h"
10 #include "InitOptions.h"
11 #include "ShutdownOptions.h"
12 #include "IUser.h"
13 #include "IMatchmaking.h"
14 #include "INetworking.h"
15 #include "IUtils.h"
16 #include "ITelemetry.h"
17 #include "ILogger.h"
18 #include "Errors.h"
19 
20 #include <cstddef>
21 
22 namespace galaxy
23 {
24  namespace api
25  {
85  GALAXY_DLL_EXPORT void GALAXY_CALLTYPE InitGameServer(const InitOptions& initOptions);
86 
95  GALAXY_DLL_EXPORT void GALAXY_CALLTYPE ShutdownGameServer();
96 
107  GALAXY_DLL_EXPORT void GALAXY_CALLTYPE ShutdownGameServerEx(const ShutdownOptions& shutdownOptions);
108 
114  GALAXY_DLL_EXPORT IUser* GALAXY_CALLTYPE GameServerUser();
115 
121  GALAXY_DLL_EXPORT IMatchmaking* GALAXY_CALLTYPE GameServerMatchmaking();
122 
129  GALAXY_DLL_EXPORT INetworking* GALAXY_CALLTYPE GameServerNetworking();
130 
136  GALAXY_DLL_EXPORT IUtils* GALAXY_CALLTYPE GameServerUtils();
137 
143  GALAXY_DLL_EXPORT ITelemetry* GALAXY_CALLTYPE GameServerTelemetry();
144 
150  GALAXY_DLL_EXPORT ILogger* GALAXY_CALLTYPE GameServerLogger();
151 
164  GALAXY_DLL_EXPORT void GALAXY_CALLTYPE ProcessGameServerData();
165 
169  }
170 }
171 
172 #endif
Contains classes representing exceptions.
Contains a macro used for DLL export.
Contains data structures and interfaces related to logging.
Contains data structures and interfaces related to matchmaking.
Contains data structures and interfaces related to communicating with other Galaxy Peers.
Contains data structures and interfaces related to telemetry.
Contains data structures and interfaces related to user account.
Contains data structures and interfaces related to common activities.
Contains class that holds Galaxy initialization parameters.
Contains class that holds Galaxy shutdown parameters.
The interface for logging.
Definition: ILogger.h:22
The interface for managing game lobbies.
Definition: IMatchmaking.h:446
The interface for communicating with other Galaxy Peers.
Definition: INetworking.h:118
The interface for handling telemetry.
Definition: ITelemetry.h:76
The interface for handling the user account.
Definition: IUser.h:331
The interface for managing images.
Definition: IUtils.h:142
GALAXY_DLL_EXPORT INetworking *GALAXY_CALLTYPE GameServerNetworking()
Returns an instance of INetworking interface for the Game Server entity that allows to communicate as...
GALAXY_DLL_EXPORT IMatchmaking *GALAXY_CALLTYPE GameServerMatchmaking()
Returns an instance of IMatchmaking interface for the Game Server entity.
GALAXY_DLL_EXPORT ITelemetry *GALAXY_CALLTYPE GameServerTelemetry()
Returns an instance of ITelemetry.
GALAXY_DLL_EXPORT void GALAXY_CALLTYPE InitGameServer(const InitOptions &initOptions)
Initializes the Galaxy Game Server with specified credentials.
GALAXY_DLL_EXPORT IUtils *GALAXY_CALLTYPE GameServerUtils()
Returns an instance of IUtils interface for the Game Server entity.
GALAXY_DLL_EXPORT void GALAXY_CALLTYPE ShutdownGameServer()
Shuts down the Galaxy Game Server.
GALAXY_DLL_EXPORT ILogger *GALAXY_CALLTYPE GameServerLogger()
Returns an instance of ILogger interface for the Game Server entity.
GALAXY_DLL_EXPORT void GALAXY_CALLTYPE ProcessGameServerData()
Makes the Game Server process its input and output streams.
GALAXY_DLL_EXPORT IUser *GALAXY_CALLTYPE GameServerUser()
Returns an instance of IUser interface for the Game Server entity.
GALAXY_DLL_EXPORT void GALAXY_CALLTYPE ShutdownGameServerEx(const ShutdownOptions &shutdownOptions)
Shuts down the Galaxy Game Server.
The group of options used for Init configuration.
Definition: InitOptions.h:27
The group of options used for Shutdown options.
Definition: ShutdownOptions.h:22