Зафиксировать матрицу четырёх миров
This commit is contained in:
@@ -12,6 +12,8 @@ dependencies {
|
||||
}
|
||||
|
||||
def levelsDirectory = layout.projectDirectory.dir('src/main/resources/levels')
|
||||
def contentMatrixFile = layout.projectDirectory.file(
|
||||
'src/main/resources/content/production-content-matrix.tsv')
|
||||
def configuredLevelsDirectory = providers.gradleProperty('levelDirectory')
|
||||
.map { file(it) }
|
||||
.orElse(levelsDirectory.asFile)
|
||||
@@ -28,6 +30,20 @@ tasks.register('validateLevels', JavaExec) {
|
||||
}
|
||||
}
|
||||
|
||||
tasks.register('validateContentMatrix', JavaExec) {
|
||||
group = 'verification'
|
||||
description = 'Validates the four-world production plan and its authored level prefix.'
|
||||
dependsOn classes
|
||||
classpath = sourceSets.main.runtimeClasspath
|
||||
mainClass = 'com.projectsacrifice.game.LevelContentTool'
|
||||
inputs.file contentMatrixFile
|
||||
inputs.dir configuredLevelsDirectory
|
||||
doFirst {
|
||||
setArgs(['validate-matrix', contentMatrixFile.asFile.absolutePath,
|
||||
configuredLevelsDirectory.get().absolutePath])
|
||||
}
|
||||
}
|
||||
|
||||
tasks.register('previewLevels', JavaExec) {
|
||||
group = 'verification'
|
||||
description = 'Exports deterministic SVG and TSV previews for every level.'
|
||||
|
||||
Reference in New Issue
Block a user