Use fucking graphs again
This commit is contained in:
11
lib/mod.dart
11
lib/mod.dart
@@ -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();
|
||||
|
Reference in New Issue
Block a user