Skip to content

Commit

Permalink
added softDependencies in ModMeta
Browse files Browse the repository at this point in the history
  • Loading branch information
liplum committed Dec 18, 2023
1 parent d078a39 commit cce12ff
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main/src/mindustry/model/ModMeta.kt
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class ModMeta private constructor(
minGameVersion: String = default("minGameVersion"),
repo: String? = default("repo"),
dependencies: List<String> = default("dependencies"),
softDependencies: List<String> = default("softDependencies"),
hidden: Boolean = default("hidden"),
java: Boolean = default("java"),
hideBrowser: Boolean = default("hideBrowser"),
Expand All @@ -51,6 +52,7 @@ class ModMeta private constructor(
"minGameVersion" to minGameVersion,
"repo" to repo,
"dependencies" to dependencies,
"softDependencies" to softDependencies,
"hidden" to hidden,
"java" to java,
"hideBrowser" to hideBrowser,
Expand Down Expand Up @@ -103,6 +105,7 @@ class ModMeta private constructor(
"minGameVersion" to R.modMeta.defaultMinGameVersion,
"repo" to null,
"dependencies" to emptyList<String>(),
"softDependencies" to emptyList<String>(),
"hidden" to false,
"java" to true,
"hideBrowser" to false,
Expand Down Expand Up @@ -154,6 +157,7 @@ var ModMeta.main: String? by meta()
var ModMeta.minGameVersion: String by meta()
var ModMeta.repo: String? by meta()
var ModMeta.dependencies: List<String> by meta()
var ModMeta.softDependencies: List<String> by meta()
var ModMeta.hidden: Boolean by meta()
var ModMeta.java: Boolean by meta()
var ModMeta.hideBrowser: Boolean by meta()
Expand Down

0 comments on commit cce12ff

Please sign in to comment.