mirror of
https://github.com/tym1116/BH3.git
synced 2025-12-16 16:34:41 +01:00
31 lines
551 B
C#
31 lines
551 B
C#
using System.Collections.Generic;
|
|
using SimpleJSON;
|
|
|
|
namespace MoleMole
|
|
{
|
|
public class GlobalDispatchDataItem
|
|
{
|
|
public class RegionDataItem
|
|
{
|
|
public string dispatchUrl;
|
|
|
|
public string name;
|
|
}
|
|
|
|
public readonly List<RegionDataItem> regionList;
|
|
|
|
public GlobalDispatchDataItem(JSONNode json)
|
|
{
|
|
regionList = new List<RegionDataItem>();
|
|
foreach (JSONNode child in json["region_list"].Childs)
|
|
{
|
|
regionList.Add(new RegionDataItem
|
|
{
|
|
dispatchUrl = child["dispatch_url"],
|
|
name = child["name"]
|
|
});
|
|
}
|
|
}
|
|
}
|
|
}
|