dependency version operators

а также сделал и вынес Version в ContentPackVersion ну и подправил луа скрипты.
требуются тесты
This commit is contained in:
KotIsOff
2025-08-26 01:52:26 +03:00
parent 5b18639d94
commit 7aa4c33721
7 changed files with 255 additions and 13 deletions
+8 -2
View File
@@ -20,11 +20,16 @@ public:
io::path folder,
const std::string& message
);
std::string getPackId() const;
io::path getFolder() const;
};
enum class DependencyVersionOperator {
equal, more, less,
more_or_equal, less_or_equal
};
enum class DependencyLevel {
required, // dependency must be installed
optional, // dependency will be installed if found
@@ -35,7 +40,8 @@ enum class DependencyLevel {
struct DependencyPack {
DependencyLevel level;
std::string id;
std::string verison;
std::string version;
std::string op;
};
struct ContentPackStats {