31 lines
841 B
Dart
31 lines
841 B
Dart
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);
|
|
}
|