Example #1
0
 public ChapterDataItem(int chapterId)
 {
     this.chapterId         = chapterId;
     this._metaData         = ChapterMetaDataReader.GetChapterMetaDataByKey(chapterId);
     this.Unlocked          = false;
     this._chapterLevelDict = new Dictionary <LevelDiffculty, List <LevelDataItem> >();
 }
Example #2
0
 private void AddAllChaptersFromMetaData()
 {
     this.AllChapterList.Clear();
     this._allChapterDict.Clear();
     foreach (ChapterMetaData data in ChapterMetaDataReader.GetItemList())
     {
         ChapterDataItem item = new ChapterDataItem(data.chapterId);
         this.AllChapterList.Add(item);
         this._allChapterDict.Add(data.chapterId, item);
     }
 }