-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAppSaveInfo.cs
More file actions
32 lines (22 loc) · 847 Bytes
/
Copy pathAppSaveInfo.cs
File metadata and controls
32 lines (22 loc) · 847 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
namespace SetMouseForGames;
public class AppSaveInfo
{
public string SelectedPresetName { get; set; } = null!;
public Dictionary<string, GamesAimSettings> GamesAimSett { get; set; } = null!;
public int MouseDPI { get; set; }
internal void CreateAppSaveInfo(MainLogic mainLogic)
{
SelectedPresetName = mainLogic.GamesManager.SelectedGameAimSettings.GameName;
GamesAimSett = mainLogic.GamesManager.GamesAimSettingsList;
MouseDPI = mainLogic.WindowsMouseSettings.MouseDriverDPI;
}
internal void LoadAppSaveInfo(MainLogic mainLogic)
{
mainLogic.GamesManager.GamesAimSettingsList = GamesAimSett.ToDictionary();
mainLogic.GamesManager.SelectGame(SelectedPresetName);
mainLogic.WindowsMouseSettings.SetMouseDriverDPI(MouseDPI);
}
}
internal class BBBBB
{
}