59 lines
1.8 KiB
C#

using System;
using System.ComponentModel;
using System.Text.Json.Serialization;
namespace Saradomin.Model.Settings.Client
{
public class ClientSettings : SettingsBase
{
public const string FileName = "config.json";
public const string LiveServerAddress = "play.emoscape.org";
public const string OriginalServerAddress = "play.2009scape.org";
public const string TestServerAddress = "test.2009scape.org";
public const string LocalServerAddress = "localhost";
public enum ServerProfile
{
[Description("EmoScape Game Server;play.emoscape.org")]
Live,
[Description("2009Scape Testing Server;test.2009scape.org")]
Testing,
[Description("Local Server;localhost")]
Local,
[Description("Original 2009Scape Server;play.2009scape.org")]
Original,
[Description("Unsupported server")]
Unsupported
}
[JsonPropertyName("ip_management")]
public string ManagementServerAddress { get; set; } = LiveServerAddress;
[JsonPropertyName("ip_address")]
public string GameServerAddress { get; set; } = LiveServerAddress;
[JsonPropertyName("world")]
public ushort World { get; set; } = 1;
[JsonPropertyName("server_port")]
public ushort GameServerPort { get; set; } = 43594;
[JsonPropertyName("wl_port")]
public ushort WorldListServerPort { get; set; } = 43595;
[JsonPropertyName("js5_port")]
public ushort CacheServerPort { get; set; } = 43595;
[JsonPropertyName("ui_scale")]
public int UiScale { get; set; } = 1;
[JsonPropertyName("fps")]
public int Fps { get; set; } = 0;
}
}