mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-12 19:47:21 +01:00
migrate server config from v0 to v1, add more transfer bar settings
This commit is contained in:
parent
82991a1172
commit
549bef1afb
13 changed files with 144 additions and 50 deletions
|
|
@ -6,11 +6,12 @@ namespace MareSynchronos.MareConfiguration.Configurations;
|
|||
[Serializable]
|
||||
public class ServerConfig : IMareConfiguration
|
||||
{
|
||||
public int Version { get; set; } = 0;
|
||||
public int CurrentServer { get; set; } = 0;
|
||||
|
||||
public Dictionary<string, ServerStorage> ServerStorage { get; set; } = new(StringComparer.OrdinalIgnoreCase)
|
||||
public List<ServerStorage> ServerStorage { get; set; } = new()
|
||||
{
|
||||
{ ApiController.MainServiceUri, new ServerStorage() { ServerName = ApiController.MainServer, ServerUri = ApiController.MainServiceUri } },
|
||||
{ new ServerStorage() { ServerName = ApiController.MainServer, ServerUri = ApiController.MainServiceUri } },
|
||||
};
|
||||
public string CurrentServer { get; set; } = string.Empty;
|
||||
}
|
||||
|
||||
public int Version { get; set; } = 1;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue