26 lines
582 B
Dart
26 lines
582 B
Dart
import 'package:libac_flutter/utils/uuid/NbtUUID.dart';
|
|
import 'package:libac_flutter/utils/uuid/UUID.dart';
|
|
|
|
class Mod {
|
|
String mod_name = "";
|
|
int mod_id = 0;
|
|
String mod_pak = "";
|
|
String mod_hash = "";
|
|
|
|
bool newMod = false;
|
|
NbtUUID _id = NbtUUID.ZERO;
|
|
String mod_instance_id() {
|
|
if (_id.toString() == NbtUUID.ZERO) {
|
|
_id = NbtUUID.fromUUID(UUID.generate(4));
|
|
}
|
|
|
|
return _id.toString();
|
|
}
|
|
|
|
Mod(
|
|
{this.mod_name = "undef",
|
|
this.mod_id = 0,
|
|
this.newMod = false,
|
|
this.mod_pak = "Not Initialized",
|
|
this.mod_hash = ""});
|
|
}
|