diff options
author | Trial97 <alexandru.tripon97@gmail.com> | 2023-04-10 00:04:35 +0300 |
---|---|---|
committer | Trial97 <alexandru.tripon97@gmail.com> | 2023-04-10 00:04:35 +0300 |
commit | 6d5c629b4316fb37b1ca0705c17867d6d9c771bd (patch) | |
tree | 26a3319288c025d38b8827d71a0e56258a2f5f34 /launcher/modplatform/ModIndex.h | |
parent | 95842ee25f3f495915f3956296bbcb90686e1658 (diff) | |
download | PrismLauncher-6d5c629b4316fb37b1ca0705c17867d6d9c771bd.tar.gz PrismLauncher-6d5c629b4316fb37b1ca0705c17867d6d9c771bd.tar.bz2 PrismLauncher-6d5c629b4316fb37b1ca0705c17867d6d9c771bd.zip |
Added dependencies to the APIs
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
Diffstat (limited to 'launcher/modplatform/ModIndex.h')
-rw-r--r-- | launcher/modplatform/ModIndex.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/launcher/modplatform/ModIndex.h b/launcher/modplatform/ModIndex.h index 40f1efc4..ffa3a3ab 100644 --- a/launcher/modplatform/ModIndex.h +++ b/launcher/modplatform/ModIndex.h @@ -32,6 +32,8 @@ enum class ResourceProvider { MODRINTH, FLAME }; enum class ResourceType { MOD, RESOURCE_PACK, SHADER_PACK }; +enum class DependencyType { REQUIRED, OPTIONAL, INCOMPATIBLE, EMBEDDED, TOOL, INCLUDE }; + class ProviderCapabilities { public: auto name(ResourceProvider) -> const char*; @@ -51,6 +53,12 @@ struct DonationData { QString url; }; +struct Dependency { + QVariant addonId; + DependencyType type; + QString version; +}; + struct IndexedVersion { QVariant addonId; QVariant fileId; @@ -65,6 +73,7 @@ struct IndexedVersion { QString hash; bool is_preferred = true; QString changelog; + QList<Dependency> dependencies; // For internal use, not provided by APIs bool is_currently_selected = false; |