-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGameMode.cpp
More file actions
36 lines (30 loc) · 804 Bytes
/
Copy pathGameMode.cpp
File metadata and controls
36 lines (30 loc) · 804 Bytes
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
#include "pch.h"
#include "GameMode.h"
#if __has_include("GameMode.g.cpp")
#include "GameMode.g.cpp"
#endif
namespace winrt::SSnake::implementation
{
GameMode::GameMode(winrt::hstring modeName, winrt::hstring imagePath) : m_modeName{ modeName }, m_imagePath{ imagePath } {}
winrt::hstring GameMode::ModeName()
{
return m_modeName;
}
winrt::hstring GameMode::ImagePath()
{
return m_imagePath;
}
void GameMode::ModeName(winrt::hstring modeName)
{
m_modeName = modeName;
}
void GameMode::ImagePath(winrt::hstring imagePath)
{
m_imagePath = imagePath;
}
void GameMode::SetGameModeData(winrt::hstring modeName, winrt::hstring imagePath)
{
m_modeName = modeName;
m_imagePath = imagePath;
}
}