package data // 获取第一章配置 func (p *chapterConfig) GetFirstChapter() (*ChapterRow, bool) { if len(p.list) <= 0 { return nil, false } return p.list[0], true } // 验证关卡是否正确 func (p *ChapterRow) VaildateLevel(levelID int32) bool { return p.StartID <= levelID && levelID <= p.EndID }