Repository navigation
Expand file tree
/
Copy pathGameShell.inl
More file actions
51 lines (42 loc) · 1.46 KB
/
Copy pathGameShell.inl
File metadata and controls
51 lines (42 loc) · 1.46 KB
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
46
47
48
49
50
51
/* Copyright (c) 2026 SeriousAlexej.
This program is free software; you can redistribute it and/or modify
it under the terms of version 2 of the GNU General Public License as published by
the Free Software Foundation
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */
#pragma once
inline GameGUI_interface::GameGUI_interface()
: mp_handle(nullptr)
{
auto* handle = GameGUI_interface_new();
SECppAPI_CheckException();
mp_handle = handle;
}
inline GameGUI_interface::~GameGUI_interface()
{
if (mp_handle)
{
GameGUI_interface_delete(mp_handle);
SECppAPI_CheckException();
}
}
inline void GameGUI_interface::Initialize(const CTFileName& fnGameSettings)
{
GameGUI_interface_Initialize(mp_handle, fnGameSettings);
SECppAPI_CheckException();
}
inline void GameGUI_interface::End()
{
GameGUI_interface_End(mp_handle);
SECppAPI_CheckException();
}
inline void GameGUI_interface::QuickTest(const CTFileName& fnMapName, CDrawPort_* pdpDrawport, CViewPort_* pvpViewport)
{
GameGUI_interface_QuickTest(mp_handle, fnMapName, pdpDrawport, pvpViewport);
SECppAPI_CheckException();
}