-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2405556
commit 560853c
Showing
346 changed files
with
2,328 additions
and
1,811 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
7 changes: 3 additions & 4 deletions
7
.../models/database/jumps/simple_jump.g.dart → lib/core/jumps/simple_jump.g.dart
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...models/database/psyche/personalities.dart → lib/core/psyche/personalities.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 9 additions & 11 deletions
20
...am/country_team/country_team_facts.g.dart → ...am/country_team/country_team_facts.g.dart
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 0 additions & 12 deletions
12
lib/data/models/game_variants/default_game_variants/variants_registry.dart
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
lib/data/models/running/default_competition_flow_controllers.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 0 additions & 9 deletions
9
lib/data/models/simulation/competition/calendar_records/converter.dart
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 13 additions & 13 deletions
26
...ser_simulation/user_simulation_model.dart → ...els/user_simulation/simulation_model.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,56 @@ | ||
import 'package:sj_manager/utilities/json/json_types.dart'; | ||
import 'package:sj_manager/data/models/simulation/flow/simulation_mode.dart'; | ||
import 'package:sj_manager/data/models/simulation/database/simulation_database_and_models/simulation_database.dart'; | ||
import 'package:sj_manager/domain/entities/simulation/flow/simulation_mode.dart'; | ||
import 'package:sj_manager/domain/entities/simulation/database/simulation_database_and_models/simulation_database.dart'; | ||
|
||
class UserSimulationModel { | ||
const UserSimulationModel({ | ||
class SimulationModel { | ||
const SimulationModel({ | ||
required this.id, | ||
required this.name, | ||
required this.saveTime, | ||
required this.mode, | ||
required this.subteamCountryFlagPath, | ||
required this.subteamCountryFlagName, | ||
}); | ||
|
||
final String id; | ||
final String name; | ||
final DateTime saveTime; | ||
final SimulationMode mode; | ||
final String? subteamCountryFlagPath; | ||
final String? subteamCountryFlagName; | ||
|
||
Json toJson() { | ||
return { | ||
'id': id, | ||
'name': name, | ||
'saveTime': saveTime.toIso8601String(), | ||
'subteamCountryFlagPath': subteamCountryFlagPath, | ||
'subteamCountryFlagPath': subteamCountryFlagName, | ||
'mode': mode.name, | ||
}; | ||
} | ||
|
||
factory UserSimulationModel.fromJson(Map<String, dynamic> json) { | ||
return UserSimulationModel( | ||
factory SimulationModel.fromJson(Map<String, dynamic> json) { | ||
return SimulationModel( | ||
id: json['id'] as String, | ||
name: json['name'] as String, | ||
saveTime: DateTime.parse(json['saveTime'] as String), | ||
mode: SimulationMode.values.singleWhere((mode) => mode.name == json['mode']), | ||
subteamCountryFlagPath: json['subteamCountryFlagPath'], | ||
subteamCountryFlagName: json['subteamCountryFlagPath'], | ||
); | ||
} | ||
|
||
UserSimulationModel copyWith({ | ||
SimulationModel copyWith({ | ||
String? id, | ||
String? name, | ||
DateTime? saveTime, | ||
SimulationMode? mode, | ||
String? subteamCountryFlagPath, | ||
SimulationDatabase? database, | ||
}) { | ||
return UserSimulationModel( | ||
return SimulationModel( | ||
id: id ?? this.id, | ||
name: name ?? this.name, | ||
saveTime: saveTime ?? this.saveTime, | ||
mode: mode ?? this.mode, | ||
subteamCountryFlagPath: subteamCountryFlagPath ?? this.subteamCountryFlagPath, | ||
subteamCountryFlagName: subteamCountryFlagPath ?? this.subteamCountryFlagName, | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
Oops, something went wrong.