You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
544 lines
28 KiB
544 lines
28 KiB
|
|
//============================================
|
|
//--4>:
|
|
// Exported by ExcelConfigExport
|
|
//
|
|
// 此代码为工具根据配置自动生成, 请不要修改
|
|
//
|
|
//============================================
|
|
|
|
using System;
|
|
using Sog;
|
|
using System.Collections.Generic;
|
|
#if UNITY_2019_1_OR_NEWER
|
|
using GameLogic;
|
|
#endif
|
|
|
|
public partial class RaceChapterDescMgr : IConfigManager
|
|
{
|
|
//Singleton
|
|
private static RaceChapterDescMgr _instance;
|
|
private static readonly object syslock = new object();
|
|
public static RaceChapterDescMgr Instance { get { if (_instance == null) { lock (syslock) { if (_instance == null) { _instance = new RaceChapterDescMgr(); }}} return _instance; }}
|
|
|
|
public class ItemData
|
|
{
|
|
public RaceChapterDesc Item;
|
|
public int Line;
|
|
public bool ReadAlready;
|
|
}
|
|
|
|
protected SortedList<int, ItemData> m_ItemTable = new SortedList<int, ItemData>();
|
|
//for server only, m_readKeyOnly must be false
|
|
protected SortedList<int, RaceChapterDesc> m_ItemDescTable = new SortedList<int, RaceChapterDesc>();
|
|
public SortedList<int, RaceChapterDesc> ItemTable { get {
|
|
if (m_ItemDescTable.Count == 0) { foreach (var item in m_ItemTable) { m_ItemDescTable.Add(item.Key, item.Value.Item); }}
|
|
return m_ItemDescTable; } }
|
|
private TabBinFile m_tbf;
|
|
//private TabTextFile m_tf;
|
|
|
|
private int m_curAsynKey1;
|
|
|
|
public override bool InitBin(string fileName, byte[] fileContent)
|
|
{
|
|
m_ErrorCount = 0;
|
|
m_ItemTable.Clear();
|
|
m_ItemDescTable.Clear();
|
|
m_allRead = false;
|
|
m_curAsynKey1 = 0;
|
|
m_tbf = new TabBinFile(fileName, fileContent);
|
|
while (m_tbf.Next())
|
|
{
|
|
ItemData itemData = new ItemData() { Item = new RaceChapterDesc() };
|
|
var item = itemData.Item;
|
|
if (m_readKeyOnly) {m_tbf.SetCurrentCol(0); }
|
|
if (item.ReadItemBin(m_tbf, m_readKeyOnly) == false)
|
|
{
|
|
TraceLog.Error("Failed to InitBin TabManager:{0}, read line error, line: {1}", this.ToString(), m_tbf.CurrentLine);
|
|
m_ErrorCount++;
|
|
continue;
|
|
}
|
|
if (m_ItemTable.ContainsKey(item.GetKey1()))
|
|
{
|
|
TraceLog.Error("Failed to InitBin TabManager:{0}, multi key:{1}, line: {2}", this.ToString(), item.GetKey1(), m_tbf.CurrentLine);
|
|
m_ErrorCount++;
|
|
continue;
|
|
}
|
|
m_ItemTable.Add(item.GetKey1(), itemData);
|
|
if (m_readKeyOnly)
|
|
{
|
|
itemData.Line = m_tbf.CurrentLine;
|
|
}
|
|
else
|
|
{
|
|
itemData.ReadAlready = true;
|
|
}
|
|
}
|
|
if (!m_readKeyOnly)
|
|
{
|
|
m_tbf = null;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
|
|
#if UNITY_2019_1_OR_NEWER
|
|
public override bool InitBinByIL(string fileName, byte[] fileContent)
|
|
{
|
|
m_ErrorCount = 0;
|
|
m_ItemTable.Clear();
|
|
m_tbf = new TabBinFile(fileName, fileContent);
|
|
while (m_tbf.Next())
|
|
{
|
|
ItemData itemData = new ItemData() { Item = new RaceChapterDesc() };
|
|
int keyCount = 0;
|
|
if(m_readKeyOnly) { keyCount = 1;}
|
|
var item = itemData.Item;
|
|
item = item.ReadItemInIL(m_tbf, keyCount);
|
|
if (item == null)
|
|
{
|
|
TraceLog.Error("Failed to init TabManager:{0}, read line error, line: {1}", this.ToString(), m_tbf.CurrentLine);
|
|
m_ErrorCount++;
|
|
continue;
|
|
}
|
|
if (m_ItemTable.ContainsKey(item.GetKey1()))
|
|
{
|
|
TraceLog.Error("Failed to init TabManager:{0}, multi key:{1}, line: {2}", this.ToString(), item.GetKey1(), m_tbf.CurrentLine);
|
|
m_ErrorCount++;
|
|
continue;
|
|
}
|
|
m_ItemTable.Add(item.GetKey1(), itemData);
|
|
if (m_readKeyOnly)
|
|
{
|
|
itemData.Line = m_tbf.CurrentLine;
|
|
}
|
|
else
|
|
{
|
|
itemData.ReadAlready = true;
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
#endif
|
|
|
|
public RaceChapterDesc GetConfig(int key)
|
|
{
|
|
ItemData itemData;
|
|
if (m_ItemTable.TryGetValue(key, out itemData) == false)
|
|
{
|
|
return null;
|
|
}
|
|
if(itemData.ReadAlready)
|
|
{
|
|
return itemData.Item;
|
|
}
|
|
if (m_tbf == null)
|
|
{
|
|
TraceLog.Error("Cfg1KeyMgrTemplate.GetConfig Failed fs null TabManager:{ 0}, read line error,", this.ToString());
|
|
return null;
|
|
}
|
|
m_tbf.SetCurrentLine(itemData.Line);
|
|
m_tbf.SetCurrentCol(0);
|
|
itemData.ReadAlready = true;
|
|
if (itemData.Item.ReadItemBin(m_tbf, false) == false)
|
|
{
|
|
TraceLog.Error("Cfg1KeyMgrTemplate.GetConfig Failed to init TabManager:{0}, read line error, line: {1}", this.ToString(), m_tbf.CurrentLine);
|
|
return null;
|
|
}
|
|
return itemData.Item;
|
|
}
|
|
|
|
|
|
|
|
public override int AsynReadBin(int maxTimes)
|
|
{
|
|
int times = 0;
|
|
if (m_allRead)
|
|
{
|
|
return times;
|
|
}
|
|
if (m_tbf == null)
|
|
{
|
|
return times;
|
|
}
|
|
for (; m_curAsynKey1 < m_ItemTable.Count && times < maxTimes; m_curAsynKey1++)
|
|
{
|
|
var itemData = m_ItemTable.Values[m_curAsynKey1];
|
|
if (itemData.ReadAlready)
|
|
{
|
|
continue;
|
|
}
|
|
m_tbf.SetCurrentLine(itemData.Line);
|
|
m_tbf.SetCurrentCol(0);
|
|
itemData.ReadAlready = true;
|
|
if (itemData.Item.ReadItemBin(m_tbf, false) == false)
|
|
{
|
|
TraceLog.Error("Cfg1KeyMgrTemplate.AsynReadBin Failed to init TabManager:{ 0}, read line error, line: { 1}", this.ToString(), m_tbf.CurrentLine);
|
|
return times;
|
|
}
|
|
times++;
|
|
}
|
|
if (m_curAsynKey1 >= m_ItemTable.Count)
|
|
{
|
|
m_allRead = true;
|
|
m_tbf = null;
|
|
}
|
|
return times;
|
|
}
|
|
|
|
}
|
|
|
|
public partial class RaceChapterDesc
|
|
{
|
|
|
|
public partial class Task
|
|
{
|
|
public int level{ get; set; } // 0//G1赛区对应日常任务库,对应QuestEXDesc内任务
|
|
public int[] dailyList{ get; set; } // 0//G1赛区对应日常任务库,对应QuestEXDesc内任务
|
|
|
|
}
|
|
|
|
public static readonly string _KEY_chapterId = "chapterId";
|
|
public static readonly string _KEY_firstRaceBattleId = "firstRaceBattleId";
|
|
public static readonly string _KEY_raceBattleNum = "raceBattleNum";
|
|
public static readonly string _KEY_unlockCondition_3_0 = "unlockCondition_3_0";
|
|
public static readonly string _KEY_unlockCondition_3_1 = "unlockCondition_3_1";
|
|
public static readonly string _KEY_unlockCondition_3_2 = "unlockCondition_3_2";
|
|
public static readonly string _KEY_task_0_level = "task_0_level";
|
|
public static readonly string _KEY_task_0_dailyList_30_0 = "task_0_dailyList_30_0";
|
|
public static readonly string _KEY_task_0_dailyList_30_1 = "task_0_dailyList_30_1";
|
|
public static readonly string _KEY_task_0_dailyList_30_2 = "task_0_dailyList_30_2";
|
|
public static readonly string _KEY_task_0_dailyList_30_3 = "task_0_dailyList_30_3";
|
|
public static readonly string _KEY_task_0_dailyList_30_4 = "task_0_dailyList_30_4";
|
|
public static readonly string _KEY_task_0_dailyList_30_5 = "task_0_dailyList_30_5";
|
|
public static readonly string _KEY_task_0_dailyList_30_6 = "task_0_dailyList_30_6";
|
|
public static readonly string _KEY_task_0_dailyList_30_7 = "task_0_dailyList_30_7";
|
|
public static readonly string _KEY_task_0_dailyList_30_8 = "task_0_dailyList_30_8";
|
|
public static readonly string _KEY_task_0_dailyList_30_9 = "task_0_dailyList_30_9";
|
|
public static readonly string _KEY_task_0_dailyList_30_10 = "task_0_dailyList_30_10";
|
|
public static readonly string _KEY_task_0_dailyList_30_11 = "task_0_dailyList_30_11";
|
|
public static readonly string _KEY_task_0_dailyList_30_12 = "task_0_dailyList_30_12";
|
|
public static readonly string _KEY_task_0_dailyList_30_13 = "task_0_dailyList_30_13";
|
|
public static readonly string _KEY_task_0_dailyList_30_14 = "task_0_dailyList_30_14";
|
|
public static readonly string _KEY_task_0_dailyList_30_15 = "task_0_dailyList_30_15";
|
|
public static readonly string _KEY_task_0_dailyList_30_16 = "task_0_dailyList_30_16";
|
|
public static readonly string _KEY_task_0_dailyList_30_17 = "task_0_dailyList_30_17";
|
|
public static readonly string _KEY_task_0_dailyList_30_18 = "task_0_dailyList_30_18";
|
|
public static readonly string _KEY_task_0_dailyList_30_19 = "task_0_dailyList_30_19";
|
|
public static readonly string _KEY_task_0_dailyList_30_20 = "task_0_dailyList_30_20";
|
|
public static readonly string _KEY_task_0_dailyList_30_21 = "task_0_dailyList_30_21";
|
|
public static readonly string _KEY_task_0_dailyList_30_22 = "task_0_dailyList_30_22";
|
|
public static readonly string _KEY_task_0_dailyList_30_23 = "task_0_dailyList_30_23";
|
|
public static readonly string _KEY_task_0_dailyList_30_24 = "task_0_dailyList_30_24";
|
|
public static readonly string _KEY_task_0_dailyList_30_25 = "task_0_dailyList_30_25";
|
|
public static readonly string _KEY_task_0_dailyList_30_26 = "task_0_dailyList_30_26";
|
|
public static readonly string _KEY_task_0_dailyList_30_27 = "task_0_dailyList_30_27";
|
|
public static readonly string _KEY_task_0_dailyList_30_28 = "task_0_dailyList_30_28";
|
|
public static readonly string _KEY_task_0_dailyList_30_29 = "task_0_dailyList_30_29";
|
|
public static readonly string _KEY_task_1_level = "task_1_level";
|
|
public static readonly string _KEY_task_1_dailyList_30_0 = "task_1_dailyList_30_0";
|
|
public static readonly string _KEY_task_1_dailyList_30_1 = "task_1_dailyList_30_1";
|
|
public static readonly string _KEY_task_1_dailyList_30_2 = "task_1_dailyList_30_2";
|
|
public static readonly string _KEY_task_1_dailyList_30_3 = "task_1_dailyList_30_3";
|
|
public static readonly string _KEY_task_1_dailyList_30_4 = "task_1_dailyList_30_4";
|
|
public static readonly string _KEY_task_1_dailyList_30_5 = "task_1_dailyList_30_5";
|
|
public static readonly string _KEY_task_1_dailyList_30_6 = "task_1_dailyList_30_6";
|
|
public static readonly string _KEY_task_1_dailyList_30_7 = "task_1_dailyList_30_7";
|
|
public static readonly string _KEY_task_1_dailyList_30_8 = "task_1_dailyList_30_8";
|
|
public static readonly string _KEY_task_1_dailyList_30_9 = "task_1_dailyList_30_9";
|
|
public static readonly string _KEY_task_1_dailyList_30_10 = "task_1_dailyList_30_10";
|
|
public static readonly string _KEY_task_1_dailyList_30_11 = "task_1_dailyList_30_11";
|
|
public static readonly string _KEY_task_1_dailyList_30_12 = "task_1_dailyList_30_12";
|
|
public static readonly string _KEY_task_1_dailyList_30_13 = "task_1_dailyList_30_13";
|
|
public static readonly string _KEY_task_1_dailyList_30_14 = "task_1_dailyList_30_14";
|
|
public static readonly string _KEY_task_1_dailyList_30_15 = "task_1_dailyList_30_15";
|
|
public static readonly string _KEY_task_1_dailyList_30_16 = "task_1_dailyList_30_16";
|
|
public static readonly string _KEY_task_1_dailyList_30_17 = "task_1_dailyList_30_17";
|
|
public static readonly string _KEY_task_1_dailyList_30_18 = "task_1_dailyList_30_18";
|
|
public static readonly string _KEY_task_1_dailyList_30_19 = "task_1_dailyList_30_19";
|
|
public static readonly string _KEY_task_1_dailyList_30_20 = "task_1_dailyList_30_20";
|
|
public static readonly string _KEY_task_1_dailyList_30_21 = "task_1_dailyList_30_21";
|
|
public static readonly string _KEY_task_1_dailyList_30_22 = "task_1_dailyList_30_22";
|
|
public static readonly string _KEY_task_1_dailyList_30_23 = "task_1_dailyList_30_23";
|
|
public static readonly string _KEY_task_1_dailyList_30_24 = "task_1_dailyList_30_24";
|
|
public static readonly string _KEY_task_1_dailyList_30_25 = "task_1_dailyList_30_25";
|
|
public static readonly string _KEY_task_1_dailyList_30_26 = "task_1_dailyList_30_26";
|
|
public static readonly string _KEY_task_1_dailyList_30_27 = "task_1_dailyList_30_27";
|
|
public static readonly string _KEY_task_1_dailyList_30_28 = "task_1_dailyList_30_28";
|
|
public static readonly string _KEY_task_1_dailyList_30_29 = "task_1_dailyList_30_29";
|
|
public static readonly string _KEY_task_2_level = "task_2_level";
|
|
public static readonly string _KEY_task_2_dailyList_30_0 = "task_2_dailyList_30_0";
|
|
public static readonly string _KEY_task_2_dailyList_30_1 = "task_2_dailyList_30_1";
|
|
public static readonly string _KEY_task_2_dailyList_30_2 = "task_2_dailyList_30_2";
|
|
public static readonly string _KEY_task_2_dailyList_30_3 = "task_2_dailyList_30_3";
|
|
public static readonly string _KEY_task_2_dailyList_30_4 = "task_2_dailyList_30_4";
|
|
public static readonly string _KEY_task_2_dailyList_30_5 = "task_2_dailyList_30_5";
|
|
public static readonly string _KEY_task_2_dailyList_30_6 = "task_2_dailyList_30_6";
|
|
public static readonly string _KEY_task_2_dailyList_30_7 = "task_2_dailyList_30_7";
|
|
public static readonly string _KEY_task_2_dailyList_30_8 = "task_2_dailyList_30_8";
|
|
public static readonly string _KEY_task_2_dailyList_30_9 = "task_2_dailyList_30_9";
|
|
public static readonly string _KEY_task_2_dailyList_30_10 = "task_2_dailyList_30_10";
|
|
public static readonly string _KEY_task_2_dailyList_30_11 = "task_2_dailyList_30_11";
|
|
public static readonly string _KEY_task_2_dailyList_30_12 = "task_2_dailyList_30_12";
|
|
public static readonly string _KEY_task_2_dailyList_30_13 = "task_2_dailyList_30_13";
|
|
public static readonly string _KEY_task_2_dailyList_30_14 = "task_2_dailyList_30_14";
|
|
public static readonly string _KEY_task_2_dailyList_30_15 = "task_2_dailyList_30_15";
|
|
public static readonly string _KEY_task_2_dailyList_30_16 = "task_2_dailyList_30_16";
|
|
public static readonly string _KEY_task_2_dailyList_30_17 = "task_2_dailyList_30_17";
|
|
public static readonly string _KEY_task_2_dailyList_30_18 = "task_2_dailyList_30_18";
|
|
public static readonly string _KEY_task_2_dailyList_30_19 = "task_2_dailyList_30_19";
|
|
public static readonly string _KEY_task_2_dailyList_30_20 = "task_2_dailyList_30_20";
|
|
public static readonly string _KEY_task_2_dailyList_30_21 = "task_2_dailyList_30_21";
|
|
public static readonly string _KEY_task_2_dailyList_30_22 = "task_2_dailyList_30_22";
|
|
public static readonly string _KEY_task_2_dailyList_30_23 = "task_2_dailyList_30_23";
|
|
public static readonly string _KEY_task_2_dailyList_30_24 = "task_2_dailyList_30_24";
|
|
public static readonly string _KEY_task_2_dailyList_30_25 = "task_2_dailyList_30_25";
|
|
public static readonly string _KEY_task_2_dailyList_30_26 = "task_2_dailyList_30_26";
|
|
public static readonly string _KEY_task_2_dailyList_30_27 = "task_2_dailyList_30_27";
|
|
public static readonly string _KEY_task_2_dailyList_30_28 = "task_2_dailyList_30_28";
|
|
public static readonly string _KEY_task_2_dailyList_30_29 = "task_2_dailyList_30_29";
|
|
|
|
public int chapterId { get; set; } // //主键
|
|
public int firstRaceBattleId { get; set; } // //首个比赛id对应RaceChapterDetail主键
|
|
public int raceBattleNum { get; set; } // //比赛总数量
|
|
public int[] unlockCondition { get; set; } // //解锁条件,a=赛区id,b=比赛级别id
|
|
public Task[] task { get; set; }
|
|
|
|
public Dictionary<string, Type> listDic = new Dictionary<string, Type>();
|
|
public RaceChapterDesc()
|
|
{
|
|
unlockCondition = new int[3];
|
|
listDic.Add("unlockCondition", typeof(int));
|
|
task = new Task[3];
|
|
task[0] = new Task();
|
|
task[1] = new Task();
|
|
task[2] = new Task();
|
|
listDic.Add("task", typeof(Task));
|
|
task[0].dailyList = new int[30];
|
|
task[1].dailyList = new int[30];
|
|
task[2].dailyList = new int[30];
|
|
}
|
|
|
|
public int GetKey1() { return chapterId; }
|
|
|
|
public bool ReadItem(TabTextFile txf, bool readKeyOnly)
|
|
{
|
|
chapterId = txf.Get<int>(_KEY_chapterId);
|
|
if(readKeyOnly) { return true; }
|
|
firstRaceBattleId = txf.Get<int>(_KEY_firstRaceBattleId);
|
|
raceBattleNum = txf.Get<int>(_KEY_raceBattleNum);
|
|
unlockCondition[0] = txf.Get<int>(_KEY_unlockCondition_3_0);
|
|
unlockCondition[1] = txf.Get<int>(_KEY_unlockCondition_3_1);
|
|
unlockCondition[2] = txf.Get<int>(_KEY_unlockCondition_3_2);
|
|
task[0].level = txf.Get<int>(_KEY_task_0_level);
|
|
task[0].dailyList[0] = txf.Get<int>(_KEY_task_0_dailyList_30_0);
|
|
task[0].dailyList[1] = txf.Get<int>(_KEY_task_0_dailyList_30_1);
|
|
task[0].dailyList[2] = txf.Get<int>(_KEY_task_0_dailyList_30_2);
|
|
task[0].dailyList[3] = txf.Get<int>(_KEY_task_0_dailyList_30_3);
|
|
task[0].dailyList[4] = txf.Get<int>(_KEY_task_0_dailyList_30_4);
|
|
task[0].dailyList[5] = txf.Get<int>(_KEY_task_0_dailyList_30_5);
|
|
task[0].dailyList[6] = txf.Get<int>(_KEY_task_0_dailyList_30_6);
|
|
task[0].dailyList[7] = txf.Get<int>(_KEY_task_0_dailyList_30_7);
|
|
task[0].dailyList[8] = txf.Get<int>(_KEY_task_0_dailyList_30_8);
|
|
task[0].dailyList[9] = txf.Get<int>(_KEY_task_0_dailyList_30_9);
|
|
task[0].dailyList[10] = txf.Get<int>(_KEY_task_0_dailyList_30_10);
|
|
task[0].dailyList[11] = txf.Get<int>(_KEY_task_0_dailyList_30_11);
|
|
task[0].dailyList[12] = txf.Get<int>(_KEY_task_0_dailyList_30_12);
|
|
task[0].dailyList[13] = txf.Get<int>(_KEY_task_0_dailyList_30_13);
|
|
task[0].dailyList[14] = txf.Get<int>(_KEY_task_0_dailyList_30_14);
|
|
task[0].dailyList[15] = txf.Get<int>(_KEY_task_0_dailyList_30_15);
|
|
task[0].dailyList[16] = txf.Get<int>(_KEY_task_0_dailyList_30_16);
|
|
task[0].dailyList[17] = txf.Get<int>(_KEY_task_0_dailyList_30_17);
|
|
task[0].dailyList[18] = txf.Get<int>(_KEY_task_0_dailyList_30_18);
|
|
task[0].dailyList[19] = txf.Get<int>(_KEY_task_0_dailyList_30_19);
|
|
task[0].dailyList[20] = txf.Get<int>(_KEY_task_0_dailyList_30_20);
|
|
task[0].dailyList[21] = txf.Get<int>(_KEY_task_0_dailyList_30_21);
|
|
task[0].dailyList[22] = txf.Get<int>(_KEY_task_0_dailyList_30_22);
|
|
task[0].dailyList[23] = txf.Get<int>(_KEY_task_0_dailyList_30_23);
|
|
task[0].dailyList[24] = txf.Get<int>(_KEY_task_0_dailyList_30_24);
|
|
task[0].dailyList[25] = txf.Get<int>(_KEY_task_0_dailyList_30_25);
|
|
task[0].dailyList[26] = txf.Get<int>(_KEY_task_0_dailyList_30_26);
|
|
task[0].dailyList[27] = txf.Get<int>(_KEY_task_0_dailyList_30_27);
|
|
task[0].dailyList[28] = txf.Get<int>(_KEY_task_0_dailyList_30_28);
|
|
task[0].dailyList[29] = txf.Get<int>(_KEY_task_0_dailyList_30_29);
|
|
task[1].level = txf.Get<int>(_KEY_task_1_level);
|
|
task[1].dailyList[0] = txf.Get<int>(_KEY_task_1_dailyList_30_0);
|
|
task[1].dailyList[1] = txf.Get<int>(_KEY_task_1_dailyList_30_1);
|
|
task[1].dailyList[2] = txf.Get<int>(_KEY_task_1_dailyList_30_2);
|
|
task[1].dailyList[3] = txf.Get<int>(_KEY_task_1_dailyList_30_3);
|
|
task[1].dailyList[4] = txf.Get<int>(_KEY_task_1_dailyList_30_4);
|
|
task[1].dailyList[5] = txf.Get<int>(_KEY_task_1_dailyList_30_5);
|
|
task[1].dailyList[6] = txf.Get<int>(_KEY_task_1_dailyList_30_6);
|
|
task[1].dailyList[7] = txf.Get<int>(_KEY_task_1_dailyList_30_7);
|
|
task[1].dailyList[8] = txf.Get<int>(_KEY_task_1_dailyList_30_8);
|
|
task[1].dailyList[9] = txf.Get<int>(_KEY_task_1_dailyList_30_9);
|
|
task[1].dailyList[10] = txf.Get<int>(_KEY_task_1_dailyList_30_10);
|
|
task[1].dailyList[11] = txf.Get<int>(_KEY_task_1_dailyList_30_11);
|
|
task[1].dailyList[12] = txf.Get<int>(_KEY_task_1_dailyList_30_12);
|
|
task[1].dailyList[13] = txf.Get<int>(_KEY_task_1_dailyList_30_13);
|
|
task[1].dailyList[14] = txf.Get<int>(_KEY_task_1_dailyList_30_14);
|
|
task[1].dailyList[15] = txf.Get<int>(_KEY_task_1_dailyList_30_15);
|
|
task[1].dailyList[16] = txf.Get<int>(_KEY_task_1_dailyList_30_16);
|
|
task[1].dailyList[17] = txf.Get<int>(_KEY_task_1_dailyList_30_17);
|
|
task[1].dailyList[18] = txf.Get<int>(_KEY_task_1_dailyList_30_18);
|
|
task[1].dailyList[19] = txf.Get<int>(_KEY_task_1_dailyList_30_19);
|
|
task[1].dailyList[20] = txf.Get<int>(_KEY_task_1_dailyList_30_20);
|
|
task[1].dailyList[21] = txf.Get<int>(_KEY_task_1_dailyList_30_21);
|
|
task[1].dailyList[22] = txf.Get<int>(_KEY_task_1_dailyList_30_22);
|
|
task[1].dailyList[23] = txf.Get<int>(_KEY_task_1_dailyList_30_23);
|
|
task[1].dailyList[24] = txf.Get<int>(_KEY_task_1_dailyList_30_24);
|
|
task[1].dailyList[25] = txf.Get<int>(_KEY_task_1_dailyList_30_25);
|
|
task[1].dailyList[26] = txf.Get<int>(_KEY_task_1_dailyList_30_26);
|
|
task[1].dailyList[27] = txf.Get<int>(_KEY_task_1_dailyList_30_27);
|
|
task[1].dailyList[28] = txf.Get<int>(_KEY_task_1_dailyList_30_28);
|
|
task[1].dailyList[29] = txf.Get<int>(_KEY_task_1_dailyList_30_29);
|
|
task[2].level = txf.Get<int>(_KEY_task_2_level);
|
|
task[2].dailyList[0] = txf.Get<int>(_KEY_task_2_dailyList_30_0);
|
|
task[2].dailyList[1] = txf.Get<int>(_KEY_task_2_dailyList_30_1);
|
|
task[2].dailyList[2] = txf.Get<int>(_KEY_task_2_dailyList_30_2);
|
|
task[2].dailyList[3] = txf.Get<int>(_KEY_task_2_dailyList_30_3);
|
|
task[2].dailyList[4] = txf.Get<int>(_KEY_task_2_dailyList_30_4);
|
|
task[2].dailyList[5] = txf.Get<int>(_KEY_task_2_dailyList_30_5);
|
|
task[2].dailyList[6] = txf.Get<int>(_KEY_task_2_dailyList_30_6);
|
|
task[2].dailyList[7] = txf.Get<int>(_KEY_task_2_dailyList_30_7);
|
|
task[2].dailyList[8] = txf.Get<int>(_KEY_task_2_dailyList_30_8);
|
|
task[2].dailyList[9] = txf.Get<int>(_KEY_task_2_dailyList_30_9);
|
|
task[2].dailyList[10] = txf.Get<int>(_KEY_task_2_dailyList_30_10);
|
|
task[2].dailyList[11] = txf.Get<int>(_KEY_task_2_dailyList_30_11);
|
|
task[2].dailyList[12] = txf.Get<int>(_KEY_task_2_dailyList_30_12);
|
|
task[2].dailyList[13] = txf.Get<int>(_KEY_task_2_dailyList_30_13);
|
|
task[2].dailyList[14] = txf.Get<int>(_KEY_task_2_dailyList_30_14);
|
|
task[2].dailyList[15] = txf.Get<int>(_KEY_task_2_dailyList_30_15);
|
|
task[2].dailyList[16] = txf.Get<int>(_KEY_task_2_dailyList_30_16);
|
|
task[2].dailyList[17] = txf.Get<int>(_KEY_task_2_dailyList_30_17);
|
|
task[2].dailyList[18] = txf.Get<int>(_KEY_task_2_dailyList_30_18);
|
|
task[2].dailyList[19] = txf.Get<int>(_KEY_task_2_dailyList_30_19);
|
|
task[2].dailyList[20] = txf.Get<int>(_KEY_task_2_dailyList_30_20);
|
|
task[2].dailyList[21] = txf.Get<int>(_KEY_task_2_dailyList_30_21);
|
|
task[2].dailyList[22] = txf.Get<int>(_KEY_task_2_dailyList_30_22);
|
|
task[2].dailyList[23] = txf.Get<int>(_KEY_task_2_dailyList_30_23);
|
|
task[2].dailyList[24] = txf.Get<int>(_KEY_task_2_dailyList_30_24);
|
|
task[2].dailyList[25] = txf.Get<int>(_KEY_task_2_dailyList_30_25);
|
|
task[2].dailyList[26] = txf.Get<int>(_KEY_task_2_dailyList_30_26);
|
|
task[2].dailyList[27] = txf.Get<int>(_KEY_task_2_dailyList_30_27);
|
|
task[2].dailyList[28] = txf.Get<int>(_KEY_task_2_dailyList_30_28);
|
|
task[2].dailyList[29] = txf.Get<int>(_KEY_task_2_dailyList_30_29);
|
|
return true;
|
|
}
|
|
public bool ReadItemBin(TabBinFile txf, bool readKeyOnly)
|
|
{
|
|
chapterId = txf.GetintByIndex(_KEY_chapterId);
|
|
if(readKeyOnly) { return true; }
|
|
firstRaceBattleId = txf.GetintByIndex(_KEY_firstRaceBattleId);
|
|
raceBattleNum = txf.GetintByIndex(_KEY_raceBattleNum);
|
|
unlockCondition[0] = txf.GetintByIndex(_KEY_unlockCondition_3_0);
|
|
unlockCondition[1] = txf.GetintByIndex(_KEY_unlockCondition_3_1);
|
|
unlockCondition[2] = txf.GetintByIndex(_KEY_unlockCondition_3_2);
|
|
task[0].level = txf.GetintByIndex(_KEY_task_0_level);
|
|
task[0].dailyList[0] = txf.GetintByIndex(_KEY_task_0_dailyList_30_0);
|
|
task[0].dailyList[1] = txf.GetintByIndex(_KEY_task_0_dailyList_30_1);
|
|
task[0].dailyList[2] = txf.GetintByIndex(_KEY_task_0_dailyList_30_2);
|
|
task[0].dailyList[3] = txf.GetintByIndex(_KEY_task_0_dailyList_30_3);
|
|
task[0].dailyList[4] = txf.GetintByIndex(_KEY_task_0_dailyList_30_4);
|
|
task[0].dailyList[5] = txf.GetintByIndex(_KEY_task_0_dailyList_30_5);
|
|
task[0].dailyList[6] = txf.GetintByIndex(_KEY_task_0_dailyList_30_6);
|
|
task[0].dailyList[7] = txf.GetintByIndex(_KEY_task_0_dailyList_30_7);
|
|
task[0].dailyList[8] = txf.GetintByIndex(_KEY_task_0_dailyList_30_8);
|
|
task[0].dailyList[9] = txf.GetintByIndex(_KEY_task_0_dailyList_30_9);
|
|
task[0].dailyList[10] = txf.GetintByIndex(_KEY_task_0_dailyList_30_10);
|
|
task[0].dailyList[11] = txf.GetintByIndex(_KEY_task_0_dailyList_30_11);
|
|
task[0].dailyList[12] = txf.GetintByIndex(_KEY_task_0_dailyList_30_12);
|
|
task[0].dailyList[13] = txf.GetintByIndex(_KEY_task_0_dailyList_30_13);
|
|
task[0].dailyList[14] = txf.GetintByIndex(_KEY_task_0_dailyList_30_14);
|
|
task[0].dailyList[15] = txf.GetintByIndex(_KEY_task_0_dailyList_30_15);
|
|
task[0].dailyList[16] = txf.GetintByIndex(_KEY_task_0_dailyList_30_16);
|
|
task[0].dailyList[17] = txf.GetintByIndex(_KEY_task_0_dailyList_30_17);
|
|
task[0].dailyList[18] = txf.GetintByIndex(_KEY_task_0_dailyList_30_18);
|
|
task[0].dailyList[19] = txf.GetintByIndex(_KEY_task_0_dailyList_30_19);
|
|
task[0].dailyList[20] = txf.GetintByIndex(_KEY_task_0_dailyList_30_20);
|
|
task[0].dailyList[21] = txf.GetintByIndex(_KEY_task_0_dailyList_30_21);
|
|
task[0].dailyList[22] = txf.GetintByIndex(_KEY_task_0_dailyList_30_22);
|
|
task[0].dailyList[23] = txf.GetintByIndex(_KEY_task_0_dailyList_30_23);
|
|
task[0].dailyList[24] = txf.GetintByIndex(_KEY_task_0_dailyList_30_24);
|
|
task[0].dailyList[25] = txf.GetintByIndex(_KEY_task_0_dailyList_30_25);
|
|
task[0].dailyList[26] = txf.GetintByIndex(_KEY_task_0_dailyList_30_26);
|
|
task[0].dailyList[27] = txf.GetintByIndex(_KEY_task_0_dailyList_30_27);
|
|
task[0].dailyList[28] = txf.GetintByIndex(_KEY_task_0_dailyList_30_28);
|
|
task[0].dailyList[29] = txf.GetintByIndex(_KEY_task_0_dailyList_30_29);
|
|
task[1].level = txf.GetintByIndex(_KEY_task_1_level);
|
|
task[1].dailyList[0] = txf.GetintByIndex(_KEY_task_1_dailyList_30_0);
|
|
task[1].dailyList[1] = txf.GetintByIndex(_KEY_task_1_dailyList_30_1);
|
|
task[1].dailyList[2] = txf.GetintByIndex(_KEY_task_1_dailyList_30_2);
|
|
task[1].dailyList[3] = txf.GetintByIndex(_KEY_task_1_dailyList_30_3);
|
|
task[1].dailyList[4] = txf.GetintByIndex(_KEY_task_1_dailyList_30_4);
|
|
task[1].dailyList[5] = txf.GetintByIndex(_KEY_task_1_dailyList_30_5);
|
|
task[1].dailyList[6] = txf.GetintByIndex(_KEY_task_1_dailyList_30_6);
|
|
task[1].dailyList[7] = txf.GetintByIndex(_KEY_task_1_dailyList_30_7);
|
|
task[1].dailyList[8] = txf.GetintByIndex(_KEY_task_1_dailyList_30_8);
|
|
task[1].dailyList[9] = txf.GetintByIndex(_KEY_task_1_dailyList_30_9);
|
|
task[1].dailyList[10] = txf.GetintByIndex(_KEY_task_1_dailyList_30_10);
|
|
task[1].dailyList[11] = txf.GetintByIndex(_KEY_task_1_dailyList_30_11);
|
|
task[1].dailyList[12] = txf.GetintByIndex(_KEY_task_1_dailyList_30_12);
|
|
task[1].dailyList[13] = txf.GetintByIndex(_KEY_task_1_dailyList_30_13);
|
|
task[1].dailyList[14] = txf.GetintByIndex(_KEY_task_1_dailyList_30_14);
|
|
task[1].dailyList[15] = txf.GetintByIndex(_KEY_task_1_dailyList_30_15);
|
|
task[1].dailyList[16] = txf.GetintByIndex(_KEY_task_1_dailyList_30_16);
|
|
task[1].dailyList[17] = txf.GetintByIndex(_KEY_task_1_dailyList_30_17);
|
|
task[1].dailyList[18] = txf.GetintByIndex(_KEY_task_1_dailyList_30_18);
|
|
task[1].dailyList[19] = txf.GetintByIndex(_KEY_task_1_dailyList_30_19);
|
|
task[1].dailyList[20] = txf.GetintByIndex(_KEY_task_1_dailyList_30_20);
|
|
task[1].dailyList[21] = txf.GetintByIndex(_KEY_task_1_dailyList_30_21);
|
|
task[1].dailyList[22] = txf.GetintByIndex(_KEY_task_1_dailyList_30_22);
|
|
task[1].dailyList[23] = txf.GetintByIndex(_KEY_task_1_dailyList_30_23);
|
|
task[1].dailyList[24] = txf.GetintByIndex(_KEY_task_1_dailyList_30_24);
|
|
task[1].dailyList[25] = txf.GetintByIndex(_KEY_task_1_dailyList_30_25);
|
|
task[1].dailyList[26] = txf.GetintByIndex(_KEY_task_1_dailyList_30_26);
|
|
task[1].dailyList[27] = txf.GetintByIndex(_KEY_task_1_dailyList_30_27);
|
|
task[1].dailyList[28] = txf.GetintByIndex(_KEY_task_1_dailyList_30_28);
|
|
task[1].dailyList[29] = txf.GetintByIndex(_KEY_task_1_dailyList_30_29);
|
|
task[2].level = txf.GetintByIndex(_KEY_task_2_level);
|
|
task[2].dailyList[0] = txf.GetintByIndex(_KEY_task_2_dailyList_30_0);
|
|
task[2].dailyList[1] = txf.GetintByIndex(_KEY_task_2_dailyList_30_1);
|
|
task[2].dailyList[2] = txf.GetintByIndex(_KEY_task_2_dailyList_30_2);
|
|
task[2].dailyList[3] = txf.GetintByIndex(_KEY_task_2_dailyList_30_3);
|
|
task[2].dailyList[4] = txf.GetintByIndex(_KEY_task_2_dailyList_30_4);
|
|
task[2].dailyList[5] = txf.GetintByIndex(_KEY_task_2_dailyList_30_5);
|
|
task[2].dailyList[6] = txf.GetintByIndex(_KEY_task_2_dailyList_30_6);
|
|
task[2].dailyList[7] = txf.GetintByIndex(_KEY_task_2_dailyList_30_7);
|
|
task[2].dailyList[8] = txf.GetintByIndex(_KEY_task_2_dailyList_30_8);
|
|
task[2].dailyList[9] = txf.GetintByIndex(_KEY_task_2_dailyList_30_9);
|
|
task[2].dailyList[10] = txf.GetintByIndex(_KEY_task_2_dailyList_30_10);
|
|
task[2].dailyList[11] = txf.GetintByIndex(_KEY_task_2_dailyList_30_11);
|
|
task[2].dailyList[12] = txf.GetintByIndex(_KEY_task_2_dailyList_30_12);
|
|
task[2].dailyList[13] = txf.GetintByIndex(_KEY_task_2_dailyList_30_13);
|
|
task[2].dailyList[14] = txf.GetintByIndex(_KEY_task_2_dailyList_30_14);
|
|
task[2].dailyList[15] = txf.GetintByIndex(_KEY_task_2_dailyList_30_15);
|
|
task[2].dailyList[16] = txf.GetintByIndex(_KEY_task_2_dailyList_30_16);
|
|
task[2].dailyList[17] = txf.GetintByIndex(_KEY_task_2_dailyList_30_17);
|
|
task[2].dailyList[18] = txf.GetintByIndex(_KEY_task_2_dailyList_30_18);
|
|
task[2].dailyList[19] = txf.GetintByIndex(_KEY_task_2_dailyList_30_19);
|
|
task[2].dailyList[20] = txf.GetintByIndex(_KEY_task_2_dailyList_30_20);
|
|
task[2].dailyList[21] = txf.GetintByIndex(_KEY_task_2_dailyList_30_21);
|
|
task[2].dailyList[22] = txf.GetintByIndex(_KEY_task_2_dailyList_30_22);
|
|
task[2].dailyList[23] = txf.GetintByIndex(_KEY_task_2_dailyList_30_23);
|
|
task[2].dailyList[24] = txf.GetintByIndex(_KEY_task_2_dailyList_30_24);
|
|
task[2].dailyList[25] = txf.GetintByIndex(_KEY_task_2_dailyList_30_25);
|
|
task[2].dailyList[26] = txf.GetintByIndex(_KEY_task_2_dailyList_30_26);
|
|
task[2].dailyList[27] = txf.GetintByIndex(_KEY_task_2_dailyList_30_27);
|
|
task[2].dailyList[28] = txf.GetintByIndex(_KEY_task_2_dailyList_30_28);
|
|
task[2].dailyList[29] = txf.GetintByIndex(_KEY_task_2_dailyList_30_29);
|
|
return true;
|
|
}
|
|
#if UNITY_2019_1_OR_NEWER
|
|
public RaceChapterDesc ReadItemInIL(TabBinFile txf ,int keyCount = 0)
|
|
{
|
|
byte[] ret = txf.GetLength();
|
|
if (ret.Length == 0)
|
|
{
|
|
return null;
|
|
}
|
|
return SerializeObj.ConfigDeSerialize<RaceChapterDesc>(this, ret, txf.ColPosList, txf.listPosList, this.listDic, txf.m_stringBlock, keyCount);
|
|
}
|
|
#endif
|
|
}
|
|
|
|
|