Refactor hierarchy
This commit is contained in:
parent
fe4f77d290
commit
110b2d150c
151 changed files with 79 additions and 7 deletions
37
client/lib/settingsEntry.dart
Normal file
37
client/lib/settingsEntry.dart
Normal file
|
@ -0,0 +1,37 @@
|
|||
import 'package:hive/hive.dart';
|
||||
import 'package:servermanager/autorestart.dart';
|
||||
import 'package:servermanager/credentials.dart';
|
||||
import 'package:servermanager/mod.dart';
|
||||
import 'package:servermanager/serversettings.dart';
|
||||
|
||||
part 'settingsEntry.g.dart';
|
||||
|
||||
@HiveType(typeId: 0)
|
||||
class SettingsEntry {
|
||||
@HiveField(0, defaultValue: [])
|
||||
List<Mod> mods = [];
|
||||
|
||||
@HiveField(3)
|
||||
Credentials? steam_creds;
|
||||
|
||||
@HiveField(4, defaultValue: AutomaticRestartInfo())
|
||||
AutomaticRestartInfo timer = AutomaticRestartInfo();
|
||||
|
||||
@HiveField(5,
|
||||
defaultValue: ServerSettings(
|
||||
RconPassword: "Password01234",
|
||||
RconPort: 7779,
|
||||
GamePort: 7780,
|
||||
QueryPort: 7782))
|
||||
ServerSettings serverSettings = ServerSettings(
|
||||
RconPassword: "Password01234",
|
||||
RconPort: 7779,
|
||||
GamePort: 7780,
|
||||
QueryPort: 7782);
|
||||
|
||||
@HiveField(6, defaultValue: true)
|
||||
bool downloadMods = true;
|
||||
|
||||
@HiveField(7, defaultValue: "")
|
||||
String conanExilesLibraryPath = "";
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue