Debian Codegraph @

xbmc/games/GameTypes.h

raw
1 /*
2 * Copyright (C) 2015-2018 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
4 *
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
7 */
8
9 #pragma once
10
11 #include <memory>
12 #include <vector>
13
14 namespace KODI
15 {
16 namespace GAME
17 {
18
19 class CGameAgent;
20 class CGameClient;
21 class CGameClientDevice;
22 class CGameClientPort;
23
24 /*!
25 * \ingroup games
26 *
27 * \brief Smart pointer to a game client (\ref CGameClient)
28 */
29 using GameClientPtr = std::shared_ptr<CGameClient>;
30
31 /*!
32 * \ingroup games
33 *
34 * \brief Vector of smart pointers to a game client (\ref CGameClient)
35 */
36 using GameClientVector = std::vector<GameClientPtr>;
37
38 /*!
39 * \ingroup games
40 *
41 * \brief Smart pointer to an input port for a game client (\ref CGameClientPort)
42 */
43 using GameClientPortPtr = std::unique_ptr<CGameClientPort>;
44
45 /*!
46 * \ingroup games
47 *
48 * \brief Vector of smart pointers to input ports for a game client (\ref CGameClientPort)
49 */
50 using GameClientPortVec = std::vector<GameClientPortPtr>;
51
52 /*!
53 * \ingroup games
54 *
55 * \brief Smart pointer to an input device for a game client (\ref CGameClientDevice)
56 */
57 using GameClientDevicePtr = std::unique_ptr<CGameClientDevice>;
58
59 /*!
60 * \ingroup games
61 *
62 * \brief Vector of smart pointers to input devices for a game client (\ref CGameClientDevice)
63 */
64 using GameClientDeviceVec = std::vector<GameClientDevicePtr>;
65
66 /*!
67 * \ingroup games
68 *
69 * \brief Smart pointer to a game-playing agent (\ref CGameAgent)
70 */
71 using GameAgentPtr = std::shared_ptr<CGameAgent>;
72
73 /*!
74 * \ingroup games
75 *
76 * \brief Vector of smart pointers to game-playing agents (\ref CGameAgent)
77 */
78 using GameAgentVec = std::vector<GameAgentPtr>;
79
80 /*!
81 * \ingroup games
82 *
83 * \brief Name of the resources directory for game clients
84 */
85 constexpr auto GAME_CLIENT_RESOURCES_DIRECTORY = "resources";
86 } // namespace GAME
87 } // namespace KODI