34 lines
877 B
C#
34 lines
877 B
C#
using Newtonsoft.Json;
|
|
using System.Collections.Generic;
|
|
|
|
public class WorldMapConfigTableData : TableDataBase
|
|
{
|
|
public int n_StageID;
|
|
public int n_StageName;
|
|
public string s_StageDiorama;
|
|
public string s_StageBg;
|
|
public string s_StageBGM;
|
|
public int n_ExtraRandombag;
|
|
}
|
|
|
|
public class table_WorldMapConfig : table_base
|
|
{
|
|
public static table_WorldMapConfig Ins;
|
|
|
|
List<WorldMapConfigTableData> tableDatas;
|
|
|
|
protected override void Awake()
|
|
{
|
|
Ins = this;
|
|
base.Awake();
|
|
}
|
|
|
|
protected override void Start()
|
|
{
|
|
tableDatas = JsonConvert.DeserializeObject<List<WorldMapConfigTableData>>(json_last);
|
|
base.Start();
|
|
}
|
|
|
|
public List<WorldMapConfigTableData> Get_DataList() { return tableDatas; }
|
|
public WorldMapConfigTableData Get_Data(int id) { return tableDatas.Find(f => f.n_StageID == id); }
|
|
} |