-
Notifications
You must be signed in to change notification settings - Fork 16
/
IConfigurationRepository.cs
108 lines (78 loc) · 2.94 KB
/
IConfigurationRepository.cs
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
using AutomaticTypeMapper;
using System;
namespace EOLib.Config
{
public interface IConfigurationRepository
{
string Host { get; set; }
int Port { get; set; }
byte VersionMajor { get; set; }
byte VersionMinor { get; set; }
byte VersionBuild { get; set; }
EOLanguage Language { get; set; }
bool CurseFilterEnabled { get; set; }
bool StrictFilterEnabled { get; set; }
bool ShowShadows { get; set; }
bool ShowChatBubbles { get; set; }
bool ShowTransition { get; set; }
int PlayerDropProtectTime { get; set; }
int NPCDropProtectTime { get; set; }
bool MusicEnabled { get; set; }
bool SoundEnabled { get; set; }
bool HearWhispers { get; set; }
bool Interaction { get; set; }
bool LogChatToFile { get; set; }
bool MainCloneCompat { get; set; }
TimeSpan AccountCreateTimeout { get; set; }
bool EnableLog { get; set; }
}
public interface IConfigurationProvider
{
string Host { get; }
int Port { get; }
byte VersionMajor { get; }
byte VersionMinor { get; }
byte VersionBuild { get; }
EOLanguage Language { get; }
bool CurseFilterEnabled { get; }
bool StrictFilterEnabled { get; }
bool ShowShadows { get; }
bool ShowChatBubbles { get; }
bool ShowTransition { get; }
int PlayerDropProtectTime { get; }
int NPCDropProtectTime { get; }
bool MusicEnabled { get; }
bool SoundEnabled { get; }
bool HearWhispers { get; }
bool Interaction { get; }
bool LogChatToFile { get; }
bool MainCloneCompat { get; }
TimeSpan AccountCreateTimeout { get; }
bool EnableLog { get; }
}
[AutoMappedType(IsSingleton = true)]
public class ConfigurationRepository : IConfigurationRepository, IConfigurationProvider
{
public string Host { get; set; }
public int Port { get; set; }
public byte VersionMajor { get; set; }
public byte VersionMinor { get; set; }
public byte VersionBuild { get; set; }
public EOLanguage Language { get; set; }
public bool CurseFilterEnabled { get; set; }
public bool StrictFilterEnabled { get; set; }
public bool ShowShadows { get; set; }
public bool ShowChatBubbles { get; set; }
public bool ShowTransition { get; set; }
public int PlayerDropProtectTime { get; set; }
public int NPCDropProtectTime { get; set; }
public bool MusicEnabled { get; set; }
public bool SoundEnabled { get; set; }
public bool HearWhispers { get; set; }
public bool Interaction { get; set; }
public bool LogChatToFile { get; set; }
public bool MainCloneCompat { get; set; }
public TimeSpan AccountCreateTimeout { get; set; }
public bool EnableLog { get; set; }
}
}