48 lines
1.4 KiB
C#
48 lines
1.4 KiB
C#
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using Newtonsoft.Json;
|
|
using SGModule.ConfigLoader;
|
|
|
|
namespace RedHotRoast
|
|
{
|
|
public class GameUrlsModel
|
|
{
|
|
public static GameUrls GetData(int id) {
|
|
return ConfigSystem.GetConfig<GameUrls>().FirstOrDefault(makeup => makeup.id == id);
|
|
}
|
|
}
|
|
|
|
[ConfigKey("GameUrls")]
|
|
public class GameUrls
|
|
{
|
|
[JsonProperty("id")]
|
|
public int id;
|
|
[JsonProperty("webLink")]
|
|
public string webLink;
|
|
[JsonProperty("webType")]
|
|
public int webType;
|
|
[JsonProperty("probability")]
|
|
public int probability;
|
|
[JsonProperty("refreshMax")]
|
|
public int refreshMax;
|
|
[JsonProperty("darkWebTimesCT")]
|
|
public int darkWebTimesCT;
|
|
[JsonProperty("wvType")]
|
|
public int wvType;
|
|
[JsonProperty("wvthrough")]
|
|
public int wvthrough;
|
|
[JsonProperty("isMagic")]
|
|
public int isMagic;
|
|
[JsonProperty("darkWebTimesCT2")]
|
|
public int darkWebTimesCT2;
|
|
[JsonProperty("darkWVRefreshtime")]
|
|
public int[] darkWVRefreshtime;
|
|
[JsonProperty("darkWVDailyrefreshtimes")]
|
|
public int darkWVDailyrefreshtimes;
|
|
[JsonProperty("WVClickAddTime")]
|
|
public int WVClickAddTime;
|
|
[JsonProperty("WVOffset")]
|
|
public int WVOffset;
|
|
|
|
}
|
|
} |