26 lines
839 B
Dart
Raw Permalink Normal View History

2025-11-14 18:03:50 +09:00
// lib/models/game_level.dart
// 11단계 레벨의 모든 속성을 정의하는 클래스
class GameLevel {
final int levelIndex; // 1-11
final String name; // "입문 (4x4)"
final int blockSize; // 2, 3, 4
final int generatorLevel; // 서버에 요청할 생성기 난이도 (1~5)
final String contextId; // 랭킹 ID "SUDOKU_4x4_L1"
// 🔽 [신규] 테마 정책
final bool isSequentialNumbers; // L1, L4, L9 (숫자 고정)
final bool isSequentialLetters; // L2, L5, L10 (문자 고정)
// (둘 다 false이면 HomeScreen에서 선택한 랜덤 테마 사용)
const GameLevel({
required this.levelIndex,
required this.name,
required this.blockSize,
required this.generatorLevel,
required this.contextId,
this.isSequentialNumbers = false,
this.isSequentialLetters = false,
});
}