Can now somewhat reliably join a party

This commit is contained in:
watsonb8
2019-07-06 15:52:28 -04:00
parent 0d64c0732e
commit 2a3290defc
15 changed files with 140 additions and 125 deletions

View File

@ -8,6 +8,8 @@ namespace Aurora.Services
public class SettingsService : BaseService<SettingsService>
{
private Lazy<ISettings> _appSettings;
private string _usernameKey = "username";
private string _defaultPortKey = "port";
public SettingsService()
{
@ -30,8 +32,6 @@ namespace Aurora.Services
}
}
private string _usernameKey = "username";
public string Username
{
get { return AppSettings.GetValueOrDefault(_usernameKey, ""); }
@ -40,5 +40,12 @@ namespace Aurora.Services
AppSettings.AddOrUpdateValue(_usernameKey, value);
}
}
public int DefaultPort
{
get { return AppSettings.GetValueOrDefault(_defaultPortKey, 4005); }
set { AppSettings.AddOrUpdateValue(_defaultPortKey, value); }
}
}
}