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
Showing
7 changed files
with
145 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import 'package:shiori/domain/enums/enums.dart'; | ||
import 'package:shiori/domain/models/models.dart'; | ||
|
||
class CustomBuildModel { | ||
final int key; | ||
final String title; | ||
|
||
final CharacterRoleType type; | ||
final CharacterRoleSubType subType; | ||
final bool showOnCharacterDetail; | ||
|
||
final CharacterCardModel character; | ||
final List<WeaponCardModel> weapons; | ||
final List<ArtifactCardModel> artifacts; | ||
|
||
CustomBuildModel({ | ||
required this.key, | ||
required this.title, | ||
required this.type, | ||
required this.subType, | ||
required this.showOnCharacterDetail, | ||
required this.character, | ||
required this.weapons, | ||
required this.artifacts, | ||
}); | ||
} |
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
42 changes: 42 additions & 0 deletions
42
lib/domain/models/entities/custom_builds/custom_build.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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import 'package:hive/hive.dart'; | ||
|
||
part 'custom_build.g.dart'; | ||
|
||
@HiveType(typeId: 18) | ||
class CustomBuild extends HiveObject { | ||
@HiveField(1) | ||
final String characterKey; | ||
|
||
@HiveField(2) | ||
String title; | ||
|
||
@HiveField(3) | ||
int roleType; | ||
|
||
@HiveField(4) | ||
int roleSubType; | ||
|
||
@HiveField(5) | ||
bool showOnCharacterDetail; | ||
|
||
@HiveField(6) | ||
List<String> weaponKeys; | ||
|
||
@HiveField(7) | ||
//artifact key : subStat enum | ||
Map<String, int> artifacts; | ||
|
||
@HiveField(8) | ||
List<int> talentPriority; | ||
|
||
CustomBuild( | ||
this.characterKey, | ||
this.showOnCharacterDetail, | ||
this.title, | ||
this.roleType, | ||
this.roleSubType, | ||
this.weaponKeys, | ||
this.artifacts, | ||
this.talentPriority, | ||
); | ||
} |
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
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