-
Notifications
You must be signed in to change notification settings - Fork 166
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support export and import of zzz gacha (not uigf)
- Loading branch information
Showing
14 changed files
with
543 additions
and
25 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,23 @@ | ||
namespace Starward.Core.Gacha.ZZZ; | ||
using System.Text.Json.Serialization; | ||
|
||
namespace Starward.Core.Gacha.ZZZ; | ||
|
||
public class ZZZGachaInfo | ||
{ | ||
|
||
[JsonPropertyName("id")] | ||
public int Id { get; set; } | ||
|
||
|
||
[JsonPropertyName("name")] | ||
public string Name { get; set; } | ||
|
||
|
||
[JsonPropertyName("rarity")] | ||
public string Rarity { get; set; } | ||
|
||
|
||
[JsonPropertyName("icon")] | ||
public string Icon { get; set; } | ||
|
||
} |
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,9 +1,19 @@ | ||
namespace Starward.Core.Gacha.ZZZ; | ||
using System.Text.Json.Serialization; | ||
|
||
namespace Starward.Core.Gacha.ZZZ; | ||
|
||
public class ZZZGachaWiki | ||
{ | ||
|
||
[JsonPropertyName("avatar")] | ||
public List<ZZZGachaInfo> Avatar { get; set; } | ||
|
||
|
||
[JsonPropertyName("weapon")] | ||
public List<ZZZGachaInfo> Weapon { get; set; } | ||
|
||
|
||
[JsonPropertyName("buddy")] | ||
public List<ZZZGachaInfo> Buddy { get; set; } | ||
|
||
} |
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
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
41 changes: 41 additions & 0 deletions
41
src/Starward.Core/GameRecord/ZZZ/UpgradeGuide/UpgradeGuidIconInfo.cs
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,41 @@ | ||
using System.Text.Json.Serialization; | ||
|
||
namespace Starward.Core.GameRecord.ZZZ.UpgradeGuide; | ||
|
||
public class UpgradeGuidIconInfo | ||
{ | ||
|
||
[JsonPropertyName("avatar_icon")] | ||
public Dictionary<int, UpgradeGuidIconInfoItem> AvatarIcon { get; set; } | ||
|
||
|
||
[JsonPropertyName("buddy_icon")] | ||
public Dictionary<int, UpgradeGuidIconInfoItem> BuddyIcon { get; set; } | ||
|
||
} | ||
|
||
|
||
|
||
public class UpgradeGuidIconInfoItem | ||
{ | ||
|
||
[JsonPropertyName("square_avatar")] | ||
public string SquareAvatar { get; set; } | ||
|
||
|
||
[JsonPropertyName("rectangle_avatar")] | ||
public string RectangleAvatar { get; set; } | ||
|
||
|
||
[JsonPropertyName("vertical_painting")] | ||
public string? VerticalPainting { get; set; } | ||
|
||
|
||
[JsonPropertyName("vertical_painting_color")] | ||
public string? VerticalPaintingColor { get; set; } | ||
|
||
|
||
[JsonPropertyName("avatar_us_full_name")] | ||
public string? AvatarUsFullName { get; set; } | ||
|
||
} |
Oops, something went wrong.