OneShotOneKill/Assets/Script/Table/Tables/table_EquipmentSetOption.cs

60 lines
4.0 KiB
C#

using CodeStage.AntiCheat.ObscuredTypes;
using Newtonsoft.Json;
using System.Collections.Generic;
public class EquipmentSetOptionTableData : TableDataBase
{
public eStat e_SetStat1, e_SetStat2, e_SetStat3;
public string s_SetStatValue1, s_SetStatValue2, s_SetStatValue3;
public int n_SetName;
ObscuredInt _SetId; public int n_SetId { get { return _SetId; } set { _SetId = value; _SetId.RandomizeCryptoKey(); } }
ObscuredInt _SetCondition1; public int n_SetCondition1 { get { return _SetCondition1; } set { _SetCondition1 = value; _SetCondition1.RandomizeCryptoKey(); } }
ObscuredInt _Set1CardSkill; public int n_Set1CardSkill { get { return _Set1CardSkill; } set { _Set1CardSkill = value; _Set1CardSkill.RandomizeCryptoKey(); } }
ObscuredInt _SetCondition2; public int n_SetCondition2 { get { return _SetCondition2; } set { _SetCondition2 = value; _SetCondition2.RandomizeCryptoKey(); } }
ObscuredInt _Set2CardSkill; public int n_Set2CardSkill { get { return _Set2CardSkill; } set { _Set2CardSkill = value; _Set2CardSkill.RandomizeCryptoKey(); } }
ObscuredInt _SetCondition3; public int n_SetCondition3 { get { return _SetCondition3; } set { _SetCondition3 = value; _SetCondition3.RandomizeCryptoKey(); } }
ObscuredInt _Set3CardSkill; public int n_Set3CardSkill { get { return _Set3CardSkill; } set { _Set3CardSkill = value; _Set3CardSkill.RandomizeCryptoKey(); } }
ObscuredInt _IncreaseMainStatSet2_Mul; public int n_IncreaseMainStatSet2_Mul { get { return _IncreaseMainStatSet2_Mul; } set { _IncreaseMainStatSet2_Mul = value; _IncreaseMainStatSet2_Mul.RandomizeCryptoKey(); } }
ObscuredInt _IncreaseMainStatSet3_Mul; public int n_IncreaseMainStatSet3_Mul { get { return _IncreaseMainStatSet3_Mul; } set { _IncreaseMainStatSet3_Mul = value; _IncreaseMainStatSet3_Mul.RandomizeCryptoKey(); } }
ObscuredInt _IncreaseMainStatSet4_Mul; public int n_IncreaseMainStatSet4_Mul { get { return _IncreaseMainStatSet4_Mul; } set { _IncreaseMainStatSet4_Mul = value; _IncreaseMainStatSet4_Mul.RandomizeCryptoKey(); } }
ObscuredInt _IncreaseMainStatSet5_Mul; public int n_IncreaseMainStatSet5_Mul { get { return _IncreaseMainStatSet5_Mul; } set { _IncreaseMainStatSet5_Mul = value; _IncreaseMainStatSet5_Mul.RandomizeCryptoKey(); } }
ObscuredInt _IncreaseMainStatSet6_Mul; public int n_IncreaseMainStatSet6_Mul { get { return _IncreaseMainStatSet6_Mul; } set { _IncreaseMainStatSet6_Mul = value; _IncreaseMainStatSet6_Mul.RandomizeCryptoKey(); } }
ObscuredFloat _SetStatValue1; public float f_SetStatValue1 { get { return _SetStatValue1; } set { _SetStatValue1 = value; _SetStatValue1.RandomizeCryptoKey(); } }
ObscuredFloat _SubStatValue2; public float f_SetStatValue2 { get { return _SubStatValue2; } set { _SubStatValue2 = value; _SubStatValue2.RandomizeCryptoKey(); } }
ObscuredFloat _SubStatValue3; public float f_SetStatValue3 { get { return _SubStatValue3; } set { _SubStatValue3 = value; _SubStatValue3.RandomizeCryptoKey(); } }
public string Get_SetName() { return table_localtext.Ins.Get_Text(n_SetName); }
}
public class table_EquipmentSetOption : table_base
{
public static table_EquipmentSetOption Ins;
List<EquipmentSetOptionTableData> tableDatas;
Dictionary<int, EquipmentSetOptionTableData> dic_Data = new Dictionary<int, EquipmentSetOptionTableData>();
protected override void Awake()
{
Ins = this;
base.Awake();
}
protected override void Start()
{
tableDatas = JsonConvert.DeserializeObject<List<EquipmentSetOptionTableData>>(json_last);
for (int i = 0; i < tableDatas.Count; i++)
{
var temp = tableDatas[i];
temp.f_SetStatValue1 = Get_Value(temp.s_SetStatValue1);
temp.f_SetStatValue2 = Get_Value(temp.s_SetStatValue2);
temp.f_SetStatValue3 = Get_Value(temp.s_SetStatValue3);
dic_Data.Add(temp.n_SetId, temp);
}
base.Start();
}
public List<EquipmentSetOptionTableData> Get_DataList() { return tableDatas; }
public EquipmentSetOptionTableData Get_Data(int id) { return dic_Data[id]; }
}