31 lines
939 B
C#
31 lines
939 B
C#
|
|
using GUPS.AntiCheat.Protected;
|
||
|
|
using Newtonsoft.Json;
|
||
|
|
using System.Collections.Generic;
|
||
|
|
|
||
|
|
public class attandancetabledata
|
||
|
|
{
|
||
|
|
ProtectedInt32 _Day; public int n_Day { get { return _Day; } set { _Day = value; _Day.Obfuscate(); } }
|
||
|
|
ProtectedInt32 _GachaAmount; public int n_GachaAmount { get { return _GachaAmount; } set { _GachaAmount = value; _GachaAmount.Obfuscate(); } }
|
||
|
|
}
|
||
|
|
|
||
|
|
public class table_attandance : table_base
|
||
|
|
{
|
||
|
|
public static table_attandance Ins;
|
||
|
|
|
||
|
|
List<attandancetabledata> tableDatas;
|
||
|
|
|
||
|
|
protected override void Awake()
|
||
|
|
{
|
||
|
|
Ins = this;
|
||
|
|
base.Awake();
|
||
|
|
}
|
||
|
|
|
||
|
|
protected override void Start()
|
||
|
|
{
|
||
|
|
tableDatas = JsonConvert.DeserializeObject<List<attandancetabledata>>(json_last);
|
||
|
|
base.Start();
|
||
|
|
}
|
||
|
|
|
||
|
|
public List<attandancetabledata> Get_DataList() { return tableDatas; }
|
||
|
|
public attandancetabledata Get_Data(int day) { return Get_DataList().Find(f=>f.n_Day == day); }
|
||
|
|
}
|