-
-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Also adds 'ja' dicts for 'sport' and 'touhou' Close #200
- Loading branch information
Showing
20 changed files
with
2,201 additions
and
9 deletions.
There are no files selected for viewing
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
24 changes: 24 additions & 0 deletions
24
core/src/main/kotlin/io/github/serpro69/kfaker/provider/Archer.kt
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,24 @@ | ||
package io.github.serpro69.kfaker.provider | ||
|
||
import io.github.serpro69.kfaker.* | ||
import io.github.serpro69.kfaker.dictionary.* | ||
import io.github.serpro69.kfaker.provider.unique.LocalUniqueDataProvider | ||
import io.github.serpro69.kfaker.provider.unique.UniqueProviderDelegate | ||
|
||
/** | ||
* [FakeDataProvider] implementation for [YamlCategory.ARCHER] category. | ||
*/ | ||
@Suppress("unused") | ||
class Archer internal constructor(fakerService: FakerService) : YamlFakeDataProvider<Archer>(fakerService) { | ||
override val yamlCategory = YamlCategory.ARCHER | ||
override val localUniqueDataProvider = LocalUniqueDataProvider<Archer>() | ||
override val unique by UniqueProviderDelegate(localUniqueDataProvider) | ||
|
||
init { | ||
fakerService.load(yamlCategory) | ||
} | ||
|
||
fun characters() = resolve("characters") | ||
fun locations() = resolve("locations") | ||
fun quotes() = resolve("quotes") | ||
} |
Oops, something went wrong.