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.
 
 
 
 
 
 

26 lines
625 B

using System.Collections.Generic;
partial class ChapterDesc
{
public int[] battleList;
}
partial class ChapterDescMgr
{
public override void ReadAllComplete()
{
foreach (var kv in ItemTable)
{
var nextId = kv.Value.firstChapterBattleId;
var list = new List<int>();
while (nextId != 0)
{
var desc = ChapterBattleDescMgr.Instance.GetConfig(nextId);
nextId = desc.nextChapterBattleId;
list.Add(desc.chapterBattleId);
}
kv.Value.battleList = list.ToArray();
}
}
}