2025-09-13 20:10:24 +00:00
|
|
|
using GUPS.AntiCheat.Protected;
|
2025-09-11 20:15:44 +00:00
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
2025-09-12 03:38:36 +00:00
|
|
|
public class albumtabledata : ShowAlbumBase
|
2025-09-11 20:15:44 +00:00
|
|
|
{
|
2025-09-13 20:10:24 +00:00
|
|
|
public int n_Index;
|
|
|
|
|
ProtectedInt32 _GirlID; public int n_GirlID { get { return _GirlID; } set { _GirlID = value; _GirlID.Obfuscate(); } }
|
2025-09-19 04:31:12 +00:00
|
|
|
ProtectedInt32 _Price; public int n_Price { get { return _Price; } set { _Price = value; _Price.Obfuscate(); } }
|
2025-09-11 20:15:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class table_album : table_base
|
|
|
|
|
{
|
|
|
|
|
public static table_album Ins;
|
|
|
|
|
|
|
|
|
|
List<albumtabledata> tableDatas;
|
|
|
|
|
Dictionary<int, List<albumtabledata>> dic_datas = new Dictionary<int, List<albumtabledata>>();
|
|
|
|
|
|
|
|
|
|
protected override void Awake()
|
|
|
|
|
{
|
|
|
|
|
Ins = this;
|
|
|
|
|
base.Awake();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected override void Start()
|
|
|
|
|
{
|
|
|
|
|
tableDatas = JsonConvert.DeserializeObject<List<albumtabledata>>(json_last);
|
|
|
|
|
for (int i = 0; i < tableDatas.Count; i++)
|
|
|
|
|
{
|
|
|
|
|
var temp = tableDatas[i];
|
|
|
|
|
if (!dic_datas.ContainsKey(temp.n_GirlID))
|
|
|
|
|
dic_datas.Add(temp.n_GirlID, new List<albumtabledata>());
|
|
|
|
|
dic_datas[temp.n_GirlID].Add(temp);
|
|
|
|
|
}
|
|
|
|
|
base.Start();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public List<albumtabledata> Get_DataList() { return tableDatas; }
|
|
|
|
|
public List<albumtabledata> Get_DataList(int girl) { return dic_datas[girl]; }
|
|
|
|
|
}
|