-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: modularize dict_parser & restartable games
- make dict_parser more modular to support more languages - add custom entries to dict_parser - add next starting character hint to text field - add restart button to game
- Loading branch information
1 parent
62a1273
commit 2c86c2e
Showing
12 changed files
with
255 additions
and
166 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import 'dart:io'; | ||
|
||
import 'package:dict_parser/utils.dart'; | ||
import 'package:kana_kit/kana_kit.dart'; | ||
import 'package:meta/meta.dart'; | ||
import 'package:shared_models/shared_models.dart'; | ||
import 'package:xml/xml.dart'; | ||
|
||
part 'japanese.dart'; | ||
|
||
class Generator { | ||
const Generator._({ | ||
@required this.language, | ||
this.customEntries = const [], | ||
@required this.generateEntries, | ||
}); | ||
|
||
final Language language; | ||
final Iterable<WordEntry> customEntries; | ||
final Future<Iterable<WordEntry>> Function(List<String> args) generateEntries; | ||
|
||
static final Generator japanese = _japanese; | ||
|
||
static final List<Generator> all = [_japanese]; | ||
} |
Oops, something went wrong.