Files
cocos/assets/scripts/level/LevelIds.ts
刘宇飞 d393302388 Complete Cocos Creator port with level bundles, themes, and tooling.
Adds level prefabs, theme assets, audio, extensions, and deployment scripts for the Unity WebGL migration.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-16 15:30:58 +08:00

8 lines
309 B
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/** 与 Unity / 主站 config.js BEGINNING_REAL_LVID 一致;首关 91601 */
export const LEVEL_ID_BASE = 91601;
/** 主站合法关卡 ID从 BEGINNING_REAL_LVID91601起 */
export function isGameLevelId(levelID: number): boolean {
return Number.isFinite(levelID) && levelID >= LEVEL_ID_BASE;
}