Use fucking graphs again

This commit is contained in:
2025-03-18 20:42:22 +01:00
parent efe74b404e
commit a6cfd3e16e
4 changed files with 556 additions and 25 deletions

View File

@@ -47,6 +47,17 @@ class Mod {
this.enabled = false,
});
int get tier {
if (isBaseGame) return 0;
if (isExpansion) return 1;
return 2;
}
@override
String toString() {
return 'Mod{name: $name, id: $id, path: $path, dependencies: $dependencies, loadAfter: $loadAfter, loadBefore: $loadBefore, incompatibilities: $incompatibilities, size: $size, isBaseGame: $isBaseGame, isExpansion: $isExpansion}';
}
static Mod fromDirectory(String path, {bool skipFileCount = false}) {
final logger = Logger.instance;
final stopwatch = Stopwatch()..start();