refactor(model): 모델 및 스토리지 정리

- GameState, GameStatistics, HallOfFame 개선
- MonsterGrade, HallOfFameStorage 정리
This commit is contained in:
JiWoong Sul
2026-01-12 16:17:06 +09:00
parent 95528786eb
commit 6f70c18d08
5 changed files with 61 additions and 42 deletions

View File

@@ -64,6 +64,13 @@ class HallOfFameStorage {
return save(updated);
}
/// 엔트리 삭제 및 저장 (디버그용)
Future<bool> deleteEntry(String id) async {
final hallOfFame = await load();
final updated = hallOfFame.removeEntry(id);
return save(updated);
}
/// 명예의 전당 초기화 (테스트용)
Future<bool> clear() async {
try {