2025-03-07 04:53:50 +00:00
|
|
|
using CodeStage.AntiCheat.ObscuredTypes;
|
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
[Serializable]
|
|
|
|
|
public class WorkerListTableData : TableDataBase
|
|
|
|
|
{
|
|
|
|
|
protected ObscuredInt _WorkerID;
|
|
|
|
|
public int n_WorkerID
|
|
|
|
|
{
|
|
|
|
|
get { return _WorkerID; }
|
|
|
|
|
set { _WorkerID = value; _WorkerID.RandomizeCryptoKey(); }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string s_Prefab;
|
|
|
|
|
public float f_Scale;
|
|
|
|
|
public float f_UIScale;
|
|
|
|
|
|
|
|
|
|
protected ObscuredFloat _MoveSpeed;
|
|
|
|
|
public float f_MoveSpeed
|
|
|
|
|
{
|
|
|
|
|
get { return _MoveSpeed; }
|
|
|
|
|
set { _MoveSpeed = value; _MoveSpeed.RandomizeCryptoKey(); }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected ObscuredFloat _SeekTimeDelay;
|
|
|
|
|
public float f_SeekTimeDelay
|
|
|
|
|
{
|
|
|
|
|
get { return _SeekTimeDelay; }
|
|
|
|
|
set { _SeekTimeDelay = value; _SeekTimeDelay.RandomizeCryptoKey(); }
|
|
|
|
|
}
|
|
|
|
|
|
2025-07-17 23:11:32 +00:00
|
|
|
protected ObscuredInt _Price;
|
|
|
|
|
public int n_Price
|
|
|
|
|
{
|
|
|
|
|
get { return _Price; }
|
|
|
|
|
set { _Price = value; _Price.RandomizeCryptoKey(); }
|
|
|
|
|
}
|
2025-03-07 04:53:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class table_worker : table_missionbase
|
|
|
|
|
{
|
|
|
|
|
public static table_worker Ins;
|
|
|
|
|
List<WorkerListTableData> tableDatas;
|
|
|
|
|
Dictionary<int, WorkerListTableData> dic_Data = new Dictionary<int, WorkerListTableData>();
|
|
|
|
|
|
|
|
|
|
protected override void Awake()
|
|
|
|
|
{
|
|
|
|
|
base.Awake();
|
|
|
|
|
Ins = this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected override void Start()
|
|
|
|
|
{
|
|
|
|
|
tableDatas = JsonConvert.DeserializeObject<List<WorkerListTableData>>(json_last);
|
|
|
|
|
for (int i = 0; i < Get_DataList().Count; i++)
|
|
|
|
|
{
|
|
|
|
|
var temp = Get_DataList()[i];
|
|
|
|
|
dic_Data.Add(temp.n_WorkerID, temp);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
base.Start();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public WorkerListTableData Get_Data_orNull(int id) { return dic_Data.ContainsKey(id) ? dic_Data[id] : null; }
|
|
|
|
|
public List<WorkerListTableData> Get_DataList() { return tableDatas; }
|
|
|
|
|
}
|