-
Notifications
You must be signed in to change notification settings - Fork 165
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
24 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.
cdb2679
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
也许可以把米游社账号登录的层级提高一点?毕竟抽卡记录也可以通过cookie拿到,好像游戏所登录的账号也可以?
cdb2679
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
抽卡记录用的是通行证的stoken,只有原神支持