mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-03 04:36:03 +08:00
28 lines
822 B
C#
28 lines
822 B
C#
using EggLink.DanhengServer.Enums;
|
|
using Newtonsoft.Json;
|
|
using Newtonsoft.Json.Converters;
|
|
|
|
namespace EggLink.DanhengServer.Configuration;
|
|
|
|
public class HotfixContainer
|
|
{
|
|
[JsonConverter(typeof(StringEnumConverter))]
|
|
public BaseRegionEnum Region { get; set; } = BaseRegionEnum.None;
|
|
|
|
public Dictionary<string, DownloadUrlConfig> HotfixData { get; set; } = [];
|
|
}
|
|
|
|
public class DownloadUrlConfig
|
|
{
|
|
public string AssetBundleUrl { get; set; } = "";
|
|
public string ExAssetBundleUrl { get; set; } = "";
|
|
public string ExResourceUrl { get; set; } = "";
|
|
public string LuaUrl { get; set; } = "";
|
|
public string IfixUrl { get; set; } = "";
|
|
}
|
|
|
|
public static class BaseUrl
|
|
{
|
|
public const string CN = "https://autopatchcn.bhsr.com/";
|
|
public const string OS = "https://autopatchos.starrails.com/";
|
|
} |