public int GetPrevChapter(int chapter) { if (ReadCfgWorld.ContainsKey(chapter - 1)) { return(chapter - 1); } return(chapter); }
public int GetNextChapter(int chapter) { if (ReadCfgWorld.ContainsKey(chapter + 1)) { return(chapter + 1); } return(chapter); }