-
Notifications
You must be signed in to change notification settings - Fork 12
/
Game.hpp
45 lines (37 loc) · 1.03 KB
/
Game.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#pragma once
#include "Common.hpp"
namespace ER
{
class GameVariables
{
public:
explicit GameVariables();
~GameVariables() noexcept = default;
GameVariables(GameVariables const&) = delete;
GameVariables(GameVariables&&) = delete;
GameVariables& operator=(GameVariables const&) = delete;
GameVariables& operator=(GameVariables&&) = delete;
int m_GamePid{};
HANDLE m_GameHandle{};
HWND m_GameWindow{};
int m_GameWidth;
int m_GameHeight;
LPCSTR m_GameTitle;
LPCSTR m_ClassName;
LPCSTR m_GamePath;
IDXGISwapChain3* m_Swapchain{};
bool m_ShowMenu{};
};
class GameFunctions
{
public:
explicit GameFunctions();
~GameFunctions() noexcept = default;
GameFunctions(GameFunctions const&) = delete;
GameFunctions(GameFunctions&&) = delete;
GameFunctions& operator=(GameFunctions const&) = delete;
GameFunctions& operator=(GameFunctions&&) = delete;
};
inline std::unique_ptr<GameVariables> g_GameVariables;
inline std::unique_ptr<GameFunctions> g_GameFunctions;
}