Adds an autorestart page

This commit is contained in:
zontreck 2023-11-04 15:15:33 -07:00
parent 239eac82b2
commit 0cf1f6b090
4 changed files with 196 additions and 4 deletions

View file

@ -1,4 +1,5 @@
import 'package:hive/hive.dart';
import 'package:servermanager/autorestart.dart';
import 'package:servermanager/credentials.dart';
import 'package:servermanager/mod.dart';
@ -6,9 +7,12 @@ part 'settingsEntry.g.dart';
@HiveType(typeId: 0)
class SettingsEntry {
@HiveField(0)
@HiveField(0, defaultValue: [])
List<Mod> mods = [];
@HiveField(3)
Credentials? steam_creds;
@HiveField(4, defaultValue: AutomaticRestartInfo())
AutomaticRestartInfo timer = AutomaticRestartInfo();
}