-
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.
- Loading branch information
Showing
30 changed files
with
1,125 additions
and
76 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
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
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
31 changes: 31 additions & 0 deletions
31
src/Starward.Core/GameRecord/StarRail/ForgottenHall/ForgottenHallMeta.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,31 @@ | ||
using System.Text.Json.Serialization; | ||
|
||
namespace Starward.Core.GameRecord.StarRail.ForgottenHall; | ||
|
||
|
||
public class ForgottenHallMeta | ||
{ | ||
|
||
[JsonPropertyName("schedule_id")] | ||
public int ScheduleId { get; set; } | ||
|
||
[JsonPropertyName("begin_time")] | ||
[JsonConverter(typeof(ForgottenHallTimeJsonConverter))] | ||
public DateTime BeginTime { get; set; } | ||
|
||
[JsonPropertyName("end_time")] | ||
[JsonConverter(typeof(ForgottenHallTimeJsonConverter))] | ||
public DateTime EndTime { get; set; } | ||
|
||
[JsonPropertyName("status")] | ||
public string Status { get; set; } | ||
|
||
[JsonPropertyName("name_mi18n")] | ||
public string Name { get; set; } | ||
|
||
|
||
[JsonExtensionData] | ||
public Dictionary<string, object>? ExtensionData { 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
33 changes: 33 additions & 0 deletions
33
src/Starward.Core/GameRecord/StarRail/PureFiction/PureFictionAvatar.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,33 @@ | ||
using System.Text.Json.Serialization; | ||
|
||
namespace Starward.Core.GameRecord.StarRail.PureFiction; | ||
|
||
public class PureFictionAvatar | ||
{ | ||
|
||
[JsonPropertyName("id")] | ||
public int Id { get; set; } | ||
|
||
[JsonPropertyName("level")] | ||
public int Level { get; set; } | ||
|
||
[JsonPropertyName("icon")] | ||
public string Icon { get; set; } | ||
|
||
[JsonPropertyName("rarity")] | ||
public int Rarity { get; set; } | ||
|
||
[JsonPropertyName("element")] | ||
public string Element { get; set; } | ||
|
||
[JsonPropertyName("rank")] | ||
public int Rank { get; set; } | ||
|
||
|
||
[JsonExtensionData] | ||
public Dictionary<string, object>? ExtensionData { get; set; } | ||
|
||
} | ||
|
||
|
||
|
27 changes: 27 additions & 0 deletions
27
src/Starward.Core/GameRecord/StarRail/PureFiction/PureFictionBuff.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,27 @@ | ||
using System.Text.Json.Serialization; | ||
|
||
namespace Starward.Core.GameRecord.StarRail.PureFiction; | ||
|
||
public class PureFictionBuff | ||
{ | ||
|
||
[JsonPropertyName("id")] | ||
public int Id { get; set; } | ||
|
||
[JsonPropertyName("name_mi18n")] | ||
public string Name { get; set; } | ||
|
||
[JsonPropertyName("desc_mi18n")] | ||
public string Desc { get; set; } | ||
|
||
[JsonPropertyName("icon")] | ||
public string Icon { get; set; } | ||
|
||
|
||
[JsonExtensionData] | ||
public Dictionary<string, object>? ExtensionData { get; set; } | ||
|
||
} | ||
|
||
|
||
|
39 changes: 39 additions & 0 deletions
39
src/Starward.Core/GameRecord/StarRail/PureFiction/PureFictionFloorDetail.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,39 @@ | ||
using System.Text.Json.Serialization; | ||
|
||
namespace Starward.Core.GameRecord.StarRail.PureFiction; | ||
|
||
public class PureFictionFloorDetail | ||
{ | ||
|
||
[JsonPropertyName("name")] | ||
public string Name { get; set; } | ||
|
||
[JsonPropertyName("round_num")] | ||
public int RoundNum { get; set; } | ||
|
||
[JsonPropertyName("star_num")] | ||
public int StarNum { get; set; } | ||
|
||
[JsonPropertyName("node_1")] | ||
public PureFictionNode Node1 { get; set; } | ||
|
||
[JsonPropertyName("node_2")] | ||
public PureFictionNode Node2 { get; set; } | ||
|
||
[JsonPropertyName("maze_id")] | ||
public int MazeId { get; set; } | ||
|
||
[JsonPropertyName("is_fast")] | ||
public bool IsFast { get; set; } | ||
|
||
[JsonIgnore] | ||
public int TotalScore => Node1.Score + Node2.Score; | ||
|
||
|
||
[JsonExtensionData] | ||
public Dictionary<string, object>? ExtensionData { get; set; } | ||
|
||
} | ||
|
||
|
||
|
Oops, something went wrong.