Migrate settings into its own special entry to utilize type adapters fully.
This commit is contained in:
parent
8f28b5a399
commit
d03613b0c7
7 changed files with 74 additions and 58 deletions
20
lib/settingsEntry.dart
Normal file
20
lib/settingsEntry.dart
Normal file
|
@ -0,0 +1,20 @@
|
|||
import 'package:hive/hive.dart';
|
||||
import 'package:servermanager/credentials.dart';
|
||||
import 'package:servermanager/mod.dart';
|
||||
|
||||
part 'settingsEntry.g.dart';
|
||||
|
||||
@HiveType(typeId: 0)
|
||||
class SettingsEntry {
|
||||
@HiveField(0)
|
||||
List<Mod> mods = [];
|
||||
|
||||
@HiveField(1)
|
||||
String steamcmd_path = "";
|
||||
|
||||
@HiveField(2)
|
||||
String game_path = "";
|
||||
|
||||
@HiveField(3)
|
||||
Credentials? steam_creds;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue