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(); while (nextId != 0) { var desc = ChapterBattleDescMgr.Instance.GetConfig(nextId); nextId = desc.nextChapterBattleId; list.Add(desc.chapterBattleId); } kv.Value.battleList = list.ToArray(); } } }