From cce12ff22e6128be4988f1162668a0663c98f30e Mon Sep 17 00:00:00 2001 From: Liplum Date: Mon, 18 Dec 2023 20:09:29 +0800 Subject: [PATCH] added `softDependencies` in ModMeta --- main/src/mindustry/model/ModMeta.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main/src/mindustry/model/ModMeta.kt b/main/src/mindustry/model/ModMeta.kt index 900e491..c6c822c 100644 --- a/main/src/mindustry/model/ModMeta.kt +++ b/main/src/mindustry/model/ModMeta.kt @@ -30,6 +30,7 @@ class ModMeta private constructor( minGameVersion: String = default("minGameVersion"), repo: String? = default("repo"), dependencies: List = default("dependencies"), + softDependencies: List = default("softDependencies"), hidden: Boolean = default("hidden"), java: Boolean = default("java"), hideBrowser: Boolean = default("hideBrowser"), @@ -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, @@ -103,6 +105,7 @@ class ModMeta private constructor( "minGameVersion" to R.modMeta.defaultMinGameVersion, "repo" to null, "dependencies" to emptyList(), + "softDependencies" to emptyList(), "hidden" to false, "java" to true, "hideBrowser" to false, @@ -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 by meta() +var ModMeta.softDependencies: List by meta() var ModMeta.hidden: Boolean by meta() var ModMeta.java: Boolean by meta() var ModMeta.hideBrowser: Boolean by meta()