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.
629 lines
29 KiB
629 lines
29 KiB
1 month ago
|
|
||
|
//============================================
|
||
|
//--4>:
|
||
|
// Exported by ExcelConfigExport
|
||
|
//
|
||
|
// 此代码为工具根据配置自动生成, 请不要修改
|
||
|
//
|
||
|
//============================================
|
||
|
|
||
|
using System;
|
||
|
using Sog;
|
||
|
using System.Collections.Generic;
|
||
|
#if UNITY_2019_1_OR_NEWER
|
||
|
using GameLogic;
|
||
|
#endif
|
||
|
|
||
|
public partial class FishSceneDescMgr : IConfigManager
|
||
|
{
|
||
|
//Singleton
|
||
|
private static FishSceneDescMgr _instance;
|
||
|
private static readonly object syslock = new object();
|
||
|
public static FishSceneDescMgr Instance { get { if (_instance == null) { lock (syslock) { if (_instance == null) { _instance = new FishSceneDescMgr(); }}} return _instance; }}
|
||
|
|
||
|
public class ItemData
|
||
|
{
|
||
|
public FishSceneDesc 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, FishSceneDesc> m_ItemDescTable = new SortedList<int, FishSceneDesc>();
|
||
|
public SortedList<int, FishSceneDesc> 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 FishSceneDesc() };
|
||
|
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 FishSceneDesc() };
|
||
|
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 FishSceneDesc 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 FishSceneDesc
|
||
|
{
|
||
|
|
||
|
|
||
|
public static readonly string _KEY_id = "id";
|
||
|
public static readonly string _KEY_unlockTaskGroup_3_0 = "unlockTaskGroup_3_0";
|
||
|
public static readonly string _KEY_unlockTaskGroup_3_1 = "unlockTaskGroup_3_1";
|
||
|
public static readonly string _KEY_unlockTaskGroup_3_2 = "unlockTaskGroup_3_2";
|
||
|
public static readonly string _KEY_inOpen = "inOpen";
|
||
|
public static readonly string _KEY_missRate = "missRate";
|
||
|
public static readonly string _KEY_fishes_60_0 = "fishes_60_0";
|
||
|
public static readonly string _KEY_fishes_60_1 = "fishes_60_1";
|
||
|
public static readonly string _KEY_fishes_60_2 = "fishes_60_2";
|
||
|
public static readonly string _KEY_fishes_60_3 = "fishes_60_3";
|
||
|
public static readonly string _KEY_fishes_60_4 = "fishes_60_4";
|
||
|
public static readonly string _KEY_fishes_60_5 = "fishes_60_5";
|
||
|
public static readonly string _KEY_fishes_60_6 = "fishes_60_6";
|
||
|
public static readonly string _KEY_fishes_60_7 = "fishes_60_7";
|
||
|
public static readonly string _KEY_fishes_60_8 = "fishes_60_8";
|
||
|
public static readonly string _KEY_fishes_60_9 = "fishes_60_9";
|
||
|
public static readonly string _KEY_fishes_60_10 = "fishes_60_10";
|
||
|
public static readonly string _KEY_fishes_60_11 = "fishes_60_11";
|
||
|
public static readonly string _KEY_fishes_60_12 = "fishes_60_12";
|
||
|
public static readonly string _KEY_fishes_60_13 = "fishes_60_13";
|
||
|
public static readonly string _KEY_fishes_60_14 = "fishes_60_14";
|
||
|
public static readonly string _KEY_fishes_60_15 = "fishes_60_15";
|
||
|
public static readonly string _KEY_fishes_60_16 = "fishes_60_16";
|
||
|
public static readonly string _KEY_fishes_60_17 = "fishes_60_17";
|
||
|
public static readonly string _KEY_fishes_60_18 = "fishes_60_18";
|
||
|
public static readonly string _KEY_fishes_60_19 = "fishes_60_19";
|
||
|
public static readonly string _KEY_fishes_60_20 = "fishes_60_20";
|
||
|
public static readonly string _KEY_fishes_60_21 = "fishes_60_21";
|
||
|
public static readonly string _KEY_fishes_60_22 = "fishes_60_22";
|
||
|
public static readonly string _KEY_fishes_60_23 = "fishes_60_23";
|
||
|
public static readonly string _KEY_fishes_60_24 = "fishes_60_24";
|
||
|
public static readonly string _KEY_fishes_60_25 = "fishes_60_25";
|
||
|
public static readonly string _KEY_fishes_60_26 = "fishes_60_26";
|
||
|
public static readonly string _KEY_fishes_60_27 = "fishes_60_27";
|
||
|
public static readonly string _KEY_fishes_60_28 = "fishes_60_28";
|
||
|
public static readonly string _KEY_fishes_60_29 = "fishes_60_29";
|
||
|
public static readonly string _KEY_fishes_60_30 = "fishes_60_30";
|
||
|
public static readonly string _KEY_fishes_60_31 = "fishes_60_31";
|
||
|
public static readonly string _KEY_fishes_60_32 = "fishes_60_32";
|
||
|
public static readonly string _KEY_fishes_60_33 = "fishes_60_33";
|
||
|
public static readonly string _KEY_fishes_60_34 = "fishes_60_34";
|
||
|
public static readonly string _KEY_fishes_60_35 = "fishes_60_35";
|
||
|
public static readonly string _KEY_fishes_60_36 = "fishes_60_36";
|
||
|
public static readonly string _KEY_fishes_60_37 = "fishes_60_37";
|
||
|
public static readonly string _KEY_fishes_60_38 = "fishes_60_38";
|
||
|
public static readonly string _KEY_fishes_60_39 = "fishes_60_39";
|
||
|
public static readonly string _KEY_fishes_60_40 = "fishes_60_40";
|
||
|
public static readonly string _KEY_fishes_60_41 = "fishes_60_41";
|
||
|
public static readonly string _KEY_fishes_60_42 = "fishes_60_42";
|
||
|
public static readonly string _KEY_fishes_60_43 = "fishes_60_43";
|
||
|
public static readonly string _KEY_fishes_60_44 = "fishes_60_44";
|
||
|
public static readonly string _KEY_fishes_60_45 = "fishes_60_45";
|
||
|
public static readonly string _KEY_fishes_60_46 = "fishes_60_46";
|
||
|
public static readonly string _KEY_fishes_60_47 = "fishes_60_47";
|
||
|
public static readonly string _KEY_fishes_60_48 = "fishes_60_48";
|
||
|
public static readonly string _KEY_fishes_60_49 = "fishes_60_49";
|
||
|
public static readonly string _KEY_fishes_60_50 = "fishes_60_50";
|
||
|
public static readonly string _KEY_fishes_60_51 = "fishes_60_51";
|
||
|
public static readonly string _KEY_fishes_60_52 = "fishes_60_52";
|
||
|
public static readonly string _KEY_fishes_60_53 = "fishes_60_53";
|
||
|
public static readonly string _KEY_fishes_60_54 = "fishes_60_54";
|
||
|
public static readonly string _KEY_fishes_60_55 = "fishes_60_55";
|
||
|
public static readonly string _KEY_fishes_60_56 = "fishes_60_56";
|
||
|
public static readonly string _KEY_fishes_60_57 = "fishes_60_57";
|
||
|
public static readonly string _KEY_fishes_60_58 = "fishes_60_58";
|
||
|
public static readonly string _KEY_fishes_60_59 = "fishes_60_59";
|
||
|
public static readonly string _KEY_fishWeight_60_0 = "fishWeight_60_0";
|
||
|
public static readonly string _KEY_fishWeight_60_1 = "fishWeight_60_1";
|
||
|
public static readonly string _KEY_fishWeight_60_2 = "fishWeight_60_2";
|
||
|
public static readonly string _KEY_fishWeight_60_3 = "fishWeight_60_3";
|
||
|
public static readonly string _KEY_fishWeight_60_4 = "fishWeight_60_4";
|
||
|
public static readonly string _KEY_fishWeight_60_5 = "fishWeight_60_5";
|
||
|
public static readonly string _KEY_fishWeight_60_6 = "fishWeight_60_6";
|
||
|
public static readonly string _KEY_fishWeight_60_7 = "fishWeight_60_7";
|
||
|
public static readonly string _KEY_fishWeight_60_8 = "fishWeight_60_8";
|
||
|
public static readonly string _KEY_fishWeight_60_9 = "fishWeight_60_9";
|
||
|
public static readonly string _KEY_fishWeight_60_10 = "fishWeight_60_10";
|
||
|
public static readonly string _KEY_fishWeight_60_11 = "fishWeight_60_11";
|
||
|
public static readonly string _KEY_fishWeight_60_12 = "fishWeight_60_12";
|
||
|
public static readonly string _KEY_fishWeight_60_13 = "fishWeight_60_13";
|
||
|
public static readonly string _KEY_fishWeight_60_14 = "fishWeight_60_14";
|
||
|
public static readonly string _KEY_fishWeight_60_15 = "fishWeight_60_15";
|
||
|
public static readonly string _KEY_fishWeight_60_16 = "fishWeight_60_16";
|
||
|
public static readonly string _KEY_fishWeight_60_17 = "fishWeight_60_17";
|
||
|
public static readonly string _KEY_fishWeight_60_18 = "fishWeight_60_18";
|
||
|
public static readonly string _KEY_fishWeight_60_19 = "fishWeight_60_19";
|
||
|
public static readonly string _KEY_fishWeight_60_20 = "fishWeight_60_20";
|
||
|
public static readonly string _KEY_fishWeight_60_21 = "fishWeight_60_21";
|
||
|
public static readonly string _KEY_fishWeight_60_22 = "fishWeight_60_22";
|
||
|
public static readonly string _KEY_fishWeight_60_23 = "fishWeight_60_23";
|
||
|
public static readonly string _KEY_fishWeight_60_24 = "fishWeight_60_24";
|
||
|
public static readonly string _KEY_fishWeight_60_25 = "fishWeight_60_25";
|
||
|
public static readonly string _KEY_fishWeight_60_26 = "fishWeight_60_26";
|
||
|
public static readonly string _KEY_fishWeight_60_27 = "fishWeight_60_27";
|
||
|
public static readonly string _KEY_fishWeight_60_28 = "fishWeight_60_28";
|
||
|
public static readonly string _KEY_fishWeight_60_29 = "fishWeight_60_29";
|
||
|
public static readonly string _KEY_fishWeight_60_30 = "fishWeight_60_30";
|
||
|
public static readonly string _KEY_fishWeight_60_31 = "fishWeight_60_31";
|
||
|
public static readonly string _KEY_fishWeight_60_32 = "fishWeight_60_32";
|
||
|
public static readonly string _KEY_fishWeight_60_33 = "fishWeight_60_33";
|
||
|
public static readonly string _KEY_fishWeight_60_34 = "fishWeight_60_34";
|
||
|
public static readonly string _KEY_fishWeight_60_35 = "fishWeight_60_35";
|
||
|
public static readonly string _KEY_fishWeight_60_36 = "fishWeight_60_36";
|
||
|
public static readonly string _KEY_fishWeight_60_37 = "fishWeight_60_37";
|
||
|
public static readonly string _KEY_fishWeight_60_38 = "fishWeight_60_38";
|
||
|
public static readonly string _KEY_fishWeight_60_39 = "fishWeight_60_39";
|
||
|
public static readonly string _KEY_fishWeight_60_40 = "fishWeight_60_40";
|
||
|
public static readonly string _KEY_fishWeight_60_41 = "fishWeight_60_41";
|
||
|
public static readonly string _KEY_fishWeight_60_42 = "fishWeight_60_42";
|
||
|
public static readonly string _KEY_fishWeight_60_43 = "fishWeight_60_43";
|
||
|
public static readonly string _KEY_fishWeight_60_44 = "fishWeight_60_44";
|
||
|
public static readonly string _KEY_fishWeight_60_45 = "fishWeight_60_45";
|
||
|
public static readonly string _KEY_fishWeight_60_46 = "fishWeight_60_46";
|
||
|
public static readonly string _KEY_fishWeight_60_47 = "fishWeight_60_47";
|
||
|
public static readonly string _KEY_fishWeight_60_48 = "fishWeight_60_48";
|
||
|
public static readonly string _KEY_fishWeight_60_49 = "fishWeight_60_49";
|
||
|
public static readonly string _KEY_fishWeight_60_50 = "fishWeight_60_50";
|
||
|
public static readonly string _KEY_fishWeight_60_51 = "fishWeight_60_51";
|
||
|
public static readonly string _KEY_fishWeight_60_52 = "fishWeight_60_52";
|
||
|
public static readonly string _KEY_fishWeight_60_53 = "fishWeight_60_53";
|
||
|
public static readonly string _KEY_fishWeight_60_54 = "fishWeight_60_54";
|
||
|
public static readonly string _KEY_fishWeight_60_55 = "fishWeight_60_55";
|
||
|
public static readonly string _KEY_fishWeight_60_56 = "fishWeight_60_56";
|
||
|
public static readonly string _KEY_fishWeight_60_57 = "fishWeight_60_57";
|
||
|
public static readonly string _KEY_fishWeight_60_58 = "fishWeight_60_58";
|
||
|
public static readonly string _KEY_fishWeight_60_59 = "fishWeight_60_59";
|
||
|
public static readonly string _KEY_collections_3_0 = "collections_3_0";
|
||
|
public static readonly string _KEY_collections_3_1 = "collections_3_1";
|
||
|
public static readonly string _KEY_collections_3_2 = "collections_3_2";
|
||
|
|
||
|
public int id { get; set; } // //渔场id
|
||
|
public int[] unlockTaskGroup { get; set; } // //任务id
|
||
|
public int inOpen { get; set; } // //开关
|
||
|
public int missRate { get; set; } // //鱼逃跑概率
|
||
|
public int[] fishes { get; set; } // //包含鱼id
|
||
|
public int[] fishWeight { get; set; } // //鱼对应钓取权重
|
||
|
public int[] collections { get; set; } // //独有收藏品1
|
||
|
|
||
|
public Dictionary<string, Type> listDic = new Dictionary<string, Type>();
|
||
|
public FishSceneDesc()
|
||
|
{
|
||
|
unlockTaskGroup = new int[3];
|
||
|
listDic.Add("unlockTaskGroup", typeof(int));
|
||
|
fishes = new int[60];
|
||
|
listDic.Add("fishes", typeof(int));
|
||
|
fishWeight = new int[60];
|
||
|
listDic.Add("fishWeight", typeof(int));
|
||
|
collections = new int[3];
|
||
|
listDic.Add("collections", typeof(int));
|
||
|
}
|
||
|
|
||
|
public int GetKey1() { return id; }
|
||
|
|
||
|
public bool ReadItem(TabTextFile txf, bool readKeyOnly)
|
||
|
{
|
||
|
id = txf.Get<int>(_KEY_id);
|
||
|
if(readKeyOnly) { return true; }
|
||
|
unlockTaskGroup[0] = txf.Get<int>(_KEY_unlockTaskGroup_3_0);
|
||
|
unlockTaskGroup[1] = txf.Get<int>(_KEY_unlockTaskGroup_3_1);
|
||
|
unlockTaskGroup[2] = txf.Get<int>(_KEY_unlockTaskGroup_3_2);
|
||
|
inOpen = txf.Get<int>(_KEY_inOpen);
|
||
|
missRate = txf.Get<int>(_KEY_missRate);
|
||
|
fishes[0] = txf.Get<int>(_KEY_fishes_60_0);
|
||
|
fishes[1] = txf.Get<int>(_KEY_fishes_60_1);
|
||
|
fishes[2] = txf.Get<int>(_KEY_fishes_60_2);
|
||
|
fishes[3] = txf.Get<int>(_KEY_fishes_60_3);
|
||
|
fishes[4] = txf.Get<int>(_KEY_fishes_60_4);
|
||
|
fishes[5] = txf.Get<int>(_KEY_fishes_60_5);
|
||
|
fishes[6] = txf.Get<int>(_KEY_fishes_60_6);
|
||
|
fishes[7] = txf.Get<int>(_KEY_fishes_60_7);
|
||
|
fishes[8] = txf.Get<int>(_KEY_fishes_60_8);
|
||
|
fishes[9] = txf.Get<int>(_KEY_fishes_60_9);
|
||
|
fishes[10] = txf.Get<int>(_KEY_fishes_60_10);
|
||
|
fishes[11] = txf.Get<int>(_KEY_fishes_60_11);
|
||
|
fishes[12] = txf.Get<int>(_KEY_fishes_60_12);
|
||
|
fishes[13] = txf.Get<int>(_KEY_fishes_60_13);
|
||
|
fishes[14] = txf.Get<int>(_KEY_fishes_60_14);
|
||
|
fishes[15] = txf.Get<int>(_KEY_fishes_60_15);
|
||
|
fishes[16] = txf.Get<int>(_KEY_fishes_60_16);
|
||
|
fishes[17] = txf.Get<int>(_KEY_fishes_60_17);
|
||
|
fishes[18] = txf.Get<int>(_KEY_fishes_60_18);
|
||
|
fishes[19] = txf.Get<int>(_KEY_fishes_60_19);
|
||
|
fishes[20] = txf.Get<int>(_KEY_fishes_60_20);
|
||
|
fishes[21] = txf.Get<int>(_KEY_fishes_60_21);
|
||
|
fishes[22] = txf.Get<int>(_KEY_fishes_60_22);
|
||
|
fishes[23] = txf.Get<int>(_KEY_fishes_60_23);
|
||
|
fishes[24] = txf.Get<int>(_KEY_fishes_60_24);
|
||
|
fishes[25] = txf.Get<int>(_KEY_fishes_60_25);
|
||
|
fishes[26] = txf.Get<int>(_KEY_fishes_60_26);
|
||
|
fishes[27] = txf.Get<int>(_KEY_fishes_60_27);
|
||
|
fishes[28] = txf.Get<int>(_KEY_fishes_60_28);
|
||
|
fishes[29] = txf.Get<int>(_KEY_fishes_60_29);
|
||
|
fishes[30] = txf.Get<int>(_KEY_fishes_60_30);
|
||
|
fishes[31] = txf.Get<int>(_KEY_fishes_60_31);
|
||
|
fishes[32] = txf.Get<int>(_KEY_fishes_60_32);
|
||
|
fishes[33] = txf.Get<int>(_KEY_fishes_60_33);
|
||
|
fishes[34] = txf.Get<int>(_KEY_fishes_60_34);
|
||
|
fishes[35] = txf.Get<int>(_KEY_fishes_60_35);
|
||
|
fishes[36] = txf.Get<int>(_KEY_fishes_60_36);
|
||
|
fishes[37] = txf.Get<int>(_KEY_fishes_60_37);
|
||
|
fishes[38] = txf.Get<int>(_KEY_fishes_60_38);
|
||
|
fishes[39] = txf.Get<int>(_KEY_fishes_60_39);
|
||
|
fishes[40] = txf.Get<int>(_KEY_fishes_60_40);
|
||
|
fishes[41] = txf.Get<int>(_KEY_fishes_60_41);
|
||
|
fishes[42] = txf.Get<int>(_KEY_fishes_60_42);
|
||
|
fishes[43] = txf.Get<int>(_KEY_fishes_60_43);
|
||
|
fishes[44] = txf.Get<int>(_KEY_fishes_60_44);
|
||
|
fishes[45] = txf.Get<int>(_KEY_fishes_60_45);
|
||
|
fishes[46] = txf.Get<int>(_KEY_fishes_60_46);
|
||
|
fishes[47] = txf.Get<int>(_KEY_fishes_60_47);
|
||
|
fishes[48] = txf.Get<int>(_KEY_fishes_60_48);
|
||
|
fishes[49] = txf.Get<int>(_KEY_fishes_60_49);
|
||
|
fishes[50] = txf.Get<int>(_KEY_fishes_60_50);
|
||
|
fishes[51] = txf.Get<int>(_KEY_fishes_60_51);
|
||
|
fishes[52] = txf.Get<int>(_KEY_fishes_60_52);
|
||
|
fishes[53] = txf.Get<int>(_KEY_fishes_60_53);
|
||
|
fishes[54] = txf.Get<int>(_KEY_fishes_60_54);
|
||
|
fishes[55] = txf.Get<int>(_KEY_fishes_60_55);
|
||
|
fishes[56] = txf.Get<int>(_KEY_fishes_60_56);
|
||
|
fishes[57] = txf.Get<int>(_KEY_fishes_60_57);
|
||
|
fishes[58] = txf.Get<int>(_KEY_fishes_60_58);
|
||
|
fishes[59] = txf.Get<int>(_KEY_fishes_60_59);
|
||
|
fishWeight[0] = txf.Get<int>(_KEY_fishWeight_60_0);
|
||
|
fishWeight[1] = txf.Get<int>(_KEY_fishWeight_60_1);
|
||
|
fishWeight[2] = txf.Get<int>(_KEY_fishWeight_60_2);
|
||
|
fishWeight[3] = txf.Get<int>(_KEY_fishWeight_60_3);
|
||
|
fishWeight[4] = txf.Get<int>(_KEY_fishWeight_60_4);
|
||
|
fishWeight[5] = txf.Get<int>(_KEY_fishWeight_60_5);
|
||
|
fishWeight[6] = txf.Get<int>(_KEY_fishWeight_60_6);
|
||
|
fishWeight[7] = txf.Get<int>(_KEY_fishWeight_60_7);
|
||
|
fishWeight[8] = txf.Get<int>(_KEY_fishWeight_60_8);
|
||
|
fishWeight[9] = txf.Get<int>(_KEY_fishWeight_60_9);
|
||
|
fishWeight[10] = txf.Get<int>(_KEY_fishWeight_60_10);
|
||
|
fishWeight[11] = txf.Get<int>(_KEY_fishWeight_60_11);
|
||
|
fishWeight[12] = txf.Get<int>(_KEY_fishWeight_60_12);
|
||
|
fishWeight[13] = txf.Get<int>(_KEY_fishWeight_60_13);
|
||
|
fishWeight[14] = txf.Get<int>(_KEY_fishWeight_60_14);
|
||
|
fishWeight[15] = txf.Get<int>(_KEY_fishWeight_60_15);
|
||
|
fishWeight[16] = txf.Get<int>(_KEY_fishWeight_60_16);
|
||
|
fishWeight[17] = txf.Get<int>(_KEY_fishWeight_60_17);
|
||
|
fishWeight[18] = txf.Get<int>(_KEY_fishWeight_60_18);
|
||
|
fishWeight[19] = txf.Get<int>(_KEY_fishWeight_60_19);
|
||
|
fishWeight[20] = txf.Get<int>(_KEY_fishWeight_60_20);
|
||
|
fishWeight[21] = txf.Get<int>(_KEY_fishWeight_60_21);
|
||
|
fishWeight[22] = txf.Get<int>(_KEY_fishWeight_60_22);
|
||
|
fishWeight[23] = txf.Get<int>(_KEY_fishWeight_60_23);
|
||
|
fishWeight[24] = txf.Get<int>(_KEY_fishWeight_60_24);
|
||
|
fishWeight[25] = txf.Get<int>(_KEY_fishWeight_60_25);
|
||
|
fishWeight[26] = txf.Get<int>(_KEY_fishWeight_60_26);
|
||
|
fishWeight[27] = txf.Get<int>(_KEY_fishWeight_60_27);
|
||
|
fishWeight[28] = txf.Get<int>(_KEY_fishWeight_60_28);
|
||
|
fishWeight[29] = txf.Get<int>(_KEY_fishWeight_60_29);
|
||
|
fishWeight[30] = txf.Get<int>(_KEY_fishWeight_60_30);
|
||
|
fishWeight[31] = txf.Get<int>(_KEY_fishWeight_60_31);
|
||
|
fishWeight[32] = txf.Get<int>(_KEY_fishWeight_60_32);
|
||
|
fishWeight[33] = txf.Get<int>(_KEY_fishWeight_60_33);
|
||
|
fishWeight[34] = txf.Get<int>(_KEY_fishWeight_60_34);
|
||
|
fishWeight[35] = txf.Get<int>(_KEY_fishWeight_60_35);
|
||
|
fishWeight[36] = txf.Get<int>(_KEY_fishWeight_60_36);
|
||
|
fishWeight[37] = txf.Get<int>(_KEY_fishWeight_60_37);
|
||
|
fishWeight[38] = txf.Get<int>(_KEY_fishWeight_60_38);
|
||
|
fishWeight[39] = txf.Get<int>(_KEY_fishWeight_60_39);
|
||
|
fishWeight[40] = txf.Get<int>(_KEY_fishWeight_60_40);
|
||
|
fishWeight[41] = txf.Get<int>(_KEY_fishWeight_60_41);
|
||
|
fishWeight[42] = txf.Get<int>(_KEY_fishWeight_60_42);
|
||
|
fishWeight[43] = txf.Get<int>(_KEY_fishWeight_60_43);
|
||
|
fishWeight[44] = txf.Get<int>(_KEY_fishWeight_60_44);
|
||
|
fishWeight[45] = txf.Get<int>(_KEY_fishWeight_60_45);
|
||
|
fishWeight[46] = txf.Get<int>(_KEY_fishWeight_60_46);
|
||
|
fishWeight[47] = txf.Get<int>(_KEY_fishWeight_60_47);
|
||
|
fishWeight[48] = txf.Get<int>(_KEY_fishWeight_60_48);
|
||
|
fishWeight[49] = txf.Get<int>(_KEY_fishWeight_60_49);
|
||
|
fishWeight[50] = txf.Get<int>(_KEY_fishWeight_60_50);
|
||
|
fishWeight[51] = txf.Get<int>(_KEY_fishWeight_60_51);
|
||
|
fishWeight[52] = txf.Get<int>(_KEY_fishWeight_60_52);
|
||
|
fishWeight[53] = txf.Get<int>(_KEY_fishWeight_60_53);
|
||
|
fishWeight[54] = txf.Get<int>(_KEY_fishWeight_60_54);
|
||
|
fishWeight[55] = txf.Get<int>(_KEY_fishWeight_60_55);
|
||
|
fishWeight[56] = txf.Get<int>(_KEY_fishWeight_60_56);
|
||
|
fishWeight[57] = txf.Get<int>(_KEY_fishWeight_60_57);
|
||
|
fishWeight[58] = txf.Get<int>(_KEY_fishWeight_60_58);
|
||
|
fishWeight[59] = txf.Get<int>(_KEY_fishWeight_60_59);
|
||
|
collections[0] = txf.Get<int>(_KEY_collections_3_0);
|
||
|
collections[1] = txf.Get<int>(_KEY_collections_3_1);
|
||
|
collections[2] = txf.Get<int>(_KEY_collections_3_2);
|
||
|
return true;
|
||
|
}
|
||
|
public bool ReadItemBin(TabBinFile txf, bool readKeyOnly)
|
||
|
{
|
||
|
id = txf.GetintByIndex(_KEY_id);
|
||
|
if(readKeyOnly) { return true; }
|
||
|
unlockTaskGroup[0] = txf.GetintByIndex(_KEY_unlockTaskGroup_3_0);
|
||
|
unlockTaskGroup[1] = txf.GetintByIndex(_KEY_unlockTaskGroup_3_1);
|
||
|
unlockTaskGroup[2] = txf.GetintByIndex(_KEY_unlockTaskGroup_3_2);
|
||
|
inOpen = txf.GetintByIndex(_KEY_inOpen);
|
||
|
missRate = txf.GetintByIndex(_KEY_missRate);
|
||
|
fishes[0] = txf.GetintByIndex(_KEY_fishes_60_0);
|
||
|
fishes[1] = txf.GetintByIndex(_KEY_fishes_60_1);
|
||
|
fishes[2] = txf.GetintByIndex(_KEY_fishes_60_2);
|
||
|
fishes[3] = txf.GetintByIndex(_KEY_fishes_60_3);
|
||
|
fishes[4] = txf.GetintByIndex(_KEY_fishes_60_4);
|
||
|
fishes[5] = txf.GetintByIndex(_KEY_fishes_60_5);
|
||
|
fishes[6] = txf.GetintByIndex(_KEY_fishes_60_6);
|
||
|
fishes[7] = txf.GetintByIndex(_KEY_fishes_60_7);
|
||
|
fishes[8] = txf.GetintByIndex(_KEY_fishes_60_8);
|
||
|
fishes[9] = txf.GetintByIndex(_KEY_fishes_60_9);
|
||
|
fishes[10] = txf.GetintByIndex(_KEY_fishes_60_10);
|
||
|
fishes[11] = txf.GetintByIndex(_KEY_fishes_60_11);
|
||
|
fishes[12] = txf.GetintByIndex(_KEY_fishes_60_12);
|
||
|
fishes[13] = txf.GetintByIndex(_KEY_fishes_60_13);
|
||
|
fishes[14] = txf.GetintByIndex(_KEY_fishes_60_14);
|
||
|
fishes[15] = txf.GetintByIndex(_KEY_fishes_60_15);
|
||
|
fishes[16] = txf.GetintByIndex(_KEY_fishes_60_16);
|
||
|
fishes[17] = txf.GetintByIndex(_KEY_fishes_60_17);
|
||
|
fishes[18] = txf.GetintByIndex(_KEY_fishes_60_18);
|
||
|
fishes[19] = txf.GetintByIndex(_KEY_fishes_60_19);
|
||
|
fishes[20] = txf.GetintByIndex(_KEY_fishes_60_20);
|
||
|
fishes[21] = txf.GetintByIndex(_KEY_fishes_60_21);
|
||
|
fishes[22] = txf.GetintByIndex(_KEY_fishes_60_22);
|
||
|
fishes[23] = txf.GetintByIndex(_KEY_fishes_60_23);
|
||
|
fishes[24] = txf.GetintByIndex(_KEY_fishes_60_24);
|
||
|
fishes[25] = txf.GetintByIndex(_KEY_fishes_60_25);
|
||
|
fishes[26] = txf.GetintByIndex(_KEY_fishes_60_26);
|
||
|
fishes[27] = txf.GetintByIndex(_KEY_fishes_60_27);
|
||
|
fishes[28] = txf.GetintByIndex(_KEY_fishes_60_28);
|
||
|
fishes[29] = txf.GetintByIndex(_KEY_fishes_60_29);
|
||
|
fishes[30] = txf.GetintByIndex(_KEY_fishes_60_30);
|
||
|
fishes[31] = txf.GetintByIndex(_KEY_fishes_60_31);
|
||
|
fishes[32] = txf.GetintByIndex(_KEY_fishes_60_32);
|
||
|
fishes[33] = txf.GetintByIndex(_KEY_fishes_60_33);
|
||
|
fishes[34] = txf.GetintByIndex(_KEY_fishes_60_34);
|
||
|
fishes[35] = txf.GetintByIndex(_KEY_fishes_60_35);
|
||
|
fishes[36] = txf.GetintByIndex(_KEY_fishes_60_36);
|
||
|
fishes[37] = txf.GetintByIndex(_KEY_fishes_60_37);
|
||
|
fishes[38] = txf.GetintByIndex(_KEY_fishes_60_38);
|
||
|
fishes[39] = txf.GetintByIndex(_KEY_fishes_60_39);
|
||
|
fishes[40] = txf.GetintByIndex(_KEY_fishes_60_40);
|
||
|
fishes[41] = txf.GetintByIndex(_KEY_fishes_60_41);
|
||
|
fishes[42] = txf.GetintByIndex(_KEY_fishes_60_42);
|
||
|
fishes[43] = txf.GetintByIndex(_KEY_fishes_60_43);
|
||
|
fishes[44] = txf.GetintByIndex(_KEY_fishes_60_44);
|
||
|
fishes[45] = txf.GetintByIndex(_KEY_fishes_60_45);
|
||
|
fishes[46] = txf.GetintByIndex(_KEY_fishes_60_46);
|
||
|
fishes[47] = txf.GetintByIndex(_KEY_fishes_60_47);
|
||
|
fishes[48] = txf.GetintByIndex(_KEY_fishes_60_48);
|
||
|
fishes[49] = txf.GetintByIndex(_KEY_fishes_60_49);
|
||
|
fishes[50] = txf.GetintByIndex(_KEY_fishes_60_50);
|
||
|
fishes[51] = txf.GetintByIndex(_KEY_fishes_60_51);
|
||
|
fishes[52] = txf.GetintByIndex(_KEY_fishes_60_52);
|
||
|
fishes[53] = txf.GetintByIndex(_KEY_fishes_60_53);
|
||
|
fishes[54] = txf.GetintByIndex(_KEY_fishes_60_54);
|
||
|
fishes[55] = txf.GetintByIndex(_KEY_fishes_60_55);
|
||
|
fishes[56] = txf.GetintByIndex(_KEY_fishes_60_56);
|
||
|
fishes[57] = txf.GetintByIndex(_KEY_fishes_60_57);
|
||
|
fishes[58] = txf.GetintByIndex(_KEY_fishes_60_58);
|
||
|
fishes[59] = txf.GetintByIndex(_KEY_fishes_60_59);
|
||
|
fishWeight[0] = txf.GetintByIndex(_KEY_fishWeight_60_0);
|
||
|
fishWeight[1] = txf.GetintByIndex(_KEY_fishWeight_60_1);
|
||
|
fishWeight[2] = txf.GetintByIndex(_KEY_fishWeight_60_2);
|
||
|
fishWeight[3] = txf.GetintByIndex(_KEY_fishWeight_60_3);
|
||
|
fishWeight[4] = txf.GetintByIndex(_KEY_fishWeight_60_4);
|
||
|
fishWeight[5] = txf.GetintByIndex(_KEY_fishWeight_60_5);
|
||
|
fishWeight[6] = txf.GetintByIndex(_KEY_fishWeight_60_6);
|
||
|
fishWeight[7] = txf.GetintByIndex(_KEY_fishWeight_60_7);
|
||
|
fishWeight[8] = txf.GetintByIndex(_KEY_fishWeight_60_8);
|
||
|
fishWeight[9] = txf.GetintByIndex(_KEY_fishWeight_60_9);
|
||
|
fishWeight[10] = txf.GetintByIndex(_KEY_fishWeight_60_10);
|
||
|
fishWeight[11] = txf.GetintByIndex(_KEY_fishWeight_60_11);
|
||
|
fishWeight[12] = txf.GetintByIndex(_KEY_fishWeight_60_12);
|
||
|
fishWeight[13] = txf.GetintByIndex(_KEY_fishWeight_60_13);
|
||
|
fishWeight[14] = txf.GetintByIndex(_KEY_fishWeight_60_14);
|
||
|
fishWeight[15] = txf.GetintByIndex(_KEY_fishWeight_60_15);
|
||
|
fishWeight[16] = txf.GetintByIndex(_KEY_fishWeight_60_16);
|
||
|
fishWeight[17] = txf.GetintByIndex(_KEY_fishWeight_60_17);
|
||
|
fishWeight[18] = txf.GetintByIndex(_KEY_fishWeight_60_18);
|
||
|
fishWeight[19] = txf.GetintByIndex(_KEY_fishWeight_60_19);
|
||
|
fishWeight[20] = txf.GetintByIndex(_KEY_fishWeight_60_20);
|
||
|
fishWeight[21] = txf.GetintByIndex(_KEY_fishWeight_60_21);
|
||
|
fishWeight[22] = txf.GetintByIndex(_KEY_fishWeight_60_22);
|
||
|
fishWeight[23] = txf.GetintByIndex(_KEY_fishWeight_60_23);
|
||
|
fishWeight[24] = txf.GetintByIndex(_KEY_fishWeight_60_24);
|
||
|
fishWeight[25] = txf.GetintByIndex(_KEY_fishWeight_60_25);
|
||
|
fishWeight[26] = txf.GetintByIndex(_KEY_fishWeight_60_26);
|
||
|
fishWeight[27] = txf.GetintByIndex(_KEY_fishWeight_60_27);
|
||
|
fishWeight[28] = txf.GetintByIndex(_KEY_fishWeight_60_28);
|
||
|
fishWeight[29] = txf.GetintByIndex(_KEY_fishWeight_60_29);
|
||
|
fishWeight[30] = txf.GetintByIndex(_KEY_fishWeight_60_30);
|
||
|
fishWeight[31] = txf.GetintByIndex(_KEY_fishWeight_60_31);
|
||
|
fishWeight[32] = txf.GetintByIndex(_KEY_fishWeight_60_32);
|
||
|
fishWeight[33] = txf.GetintByIndex(_KEY_fishWeight_60_33);
|
||
|
fishWeight[34] = txf.GetintByIndex(_KEY_fishWeight_60_34);
|
||
|
fishWeight[35] = txf.GetintByIndex(_KEY_fishWeight_60_35);
|
||
|
fishWeight[36] = txf.GetintByIndex(_KEY_fishWeight_60_36);
|
||
|
fishWeight[37] = txf.GetintByIndex(_KEY_fishWeight_60_37);
|
||
|
fishWeight[38] = txf.GetintByIndex(_KEY_fishWeight_60_38);
|
||
|
fishWeight[39] = txf.GetintByIndex(_KEY_fishWeight_60_39);
|
||
|
fishWeight[40] = txf.GetintByIndex(_KEY_fishWeight_60_40);
|
||
|
fishWeight[41] = txf.GetintByIndex(_KEY_fishWeight_60_41);
|
||
|
fishWeight[42] = txf.GetintByIndex(_KEY_fishWeight_60_42);
|
||
|
fishWeight[43] = txf.GetintByIndex(_KEY_fishWeight_60_43);
|
||
|
fishWeight[44] = txf.GetintByIndex(_KEY_fishWeight_60_44);
|
||
|
fishWeight[45] = txf.GetintByIndex(_KEY_fishWeight_60_45);
|
||
|
fishWeight[46] = txf.GetintByIndex(_KEY_fishWeight_60_46);
|
||
|
fishWeight[47] = txf.GetintByIndex(_KEY_fishWeight_60_47);
|
||
|
fishWeight[48] = txf.GetintByIndex(_KEY_fishWeight_60_48);
|
||
|
fishWeight[49] = txf.GetintByIndex(_KEY_fishWeight_60_49);
|
||
|
fishWeight[50] = txf.GetintByIndex(_KEY_fishWeight_60_50);
|
||
|
fishWeight[51] = txf.GetintByIndex(_KEY_fishWeight_60_51);
|
||
|
fishWeight[52] = txf.GetintByIndex(_KEY_fishWeight_60_52);
|
||
|
fishWeight[53] = txf.GetintByIndex(_KEY_fishWeight_60_53);
|
||
|
fishWeight[54] = txf.GetintByIndex(_KEY_fishWeight_60_54);
|
||
|
fishWeight[55] = txf.GetintByIndex(_KEY_fishWeight_60_55);
|
||
|
fishWeight[56] = txf.GetintByIndex(_KEY_fishWeight_60_56);
|
||
|
fishWeight[57] = txf.GetintByIndex(_KEY_fishWeight_60_57);
|
||
|
fishWeight[58] = txf.GetintByIndex(_KEY_fishWeight_60_58);
|
||
|
fishWeight[59] = txf.GetintByIndex(_KEY_fishWeight_60_59);
|
||
|
collections[0] = txf.GetintByIndex(_KEY_collections_3_0);
|
||
|
collections[1] = txf.GetintByIndex(_KEY_collections_3_1);
|
||
|
collections[2] = txf.GetintByIndex(_KEY_collections_3_2);
|
||
|
return true;
|
||
|
}
|
||
|
#if UNITY_2019_1_OR_NEWER
|
||
|
public FishSceneDesc ReadItemInIL(TabBinFile txf ,int keyCount = 0)
|
||
|
{
|
||
|
byte[] ret = txf.GetLength();
|
||
|
if (ret.Length == 0)
|
||
|
{
|
||
|
return null;
|
||
|
}
|
||
|
return SerializeObj.ConfigDeSerialize<FishSceneDesc>(this, ret, txf.ColPosList, txf.listPosList, this.listDic, txf.m_stringBlock, keyCount);
|
||
|
}
|
||
|
#endif
|
||
|
}
|
||
|
|