mirror of
https://jihulab.com/DGP-Studio/Snap.Hutao.git
synced 2025-11-19 21:02:53 +08:00
UIIF definition
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
|
||||
namespace Snap.Hutao.Model.InterChange.Inventory;
|
||||
|
||||
internal sealed class UIIFMaterial
|
||||
internal sealed class UIIFCountInfo
|
||||
{
|
||||
public uint Count { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
// Copyright (c) DGP Studio. All rights reserved.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
using Snap.Hutao.Web.Enka.Model;
|
||||
|
||||
namespace Snap.Hutao.Model.InterChange.Inventory;
|
||||
|
||||
internal class UIIFEquip
|
||||
{
|
||||
/// <summary>
|
||||
/// 圣遗物
|
||||
/// Artifact Base Info
|
||||
/// </summary>
|
||||
[JsonPropertyName("reliquary")]
|
||||
public Reliquary? Reliquary { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 武器
|
||||
/// Weapon Base Info
|
||||
/// </summary>
|
||||
[JsonPropertyName("weapon")]
|
||||
public Weapon? Weapon { get; set; }
|
||||
}
|
||||
@@ -16,5 +16,11 @@ internal sealed class UIIFItem
|
||||
public uint ItemId { get; set; }
|
||||
|
||||
[JsonPropertyName("material")]
|
||||
public UIIFMaterial Material { get; set; } = default!;
|
||||
public UIIFCountInfo? Material { get; set; } = default!;
|
||||
|
||||
[JsonPropertyName("furniture")]
|
||||
public UIIFCountInfo? Furniture { get; set; } = default!;
|
||||
|
||||
[JsonPropertyName("equip")]
|
||||
public UIIFEquip? Equip { get; set; } = default!;
|
||||
}
|
||||
@@ -1,13 +1,15 @@
|
||||
// Copyright (c) DGP Studio. All rights reserved.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
using Snap.Hutao.Model.InterChange.Inventory;
|
||||
|
||||
namespace Snap.Hutao.Web.Enka.Model;
|
||||
|
||||
/// <summary>
|
||||
/// 装备
|
||||
/// </summary>
|
||||
[HighQuality]
|
||||
internal sealed class Equip
|
||||
internal sealed class Equip : UIIFEquip
|
||||
{
|
||||
/// <summary>
|
||||
/// 物品Id
|
||||
@@ -16,20 +18,6 @@ internal sealed class Equip
|
||||
[JsonPropertyName("itemId")]
|
||||
public uint ItemId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 圣遗物
|
||||
/// Artifact Base Info
|
||||
/// </summary>
|
||||
[JsonPropertyName("reliquary")]
|
||||
public Reliquary? Reliquary { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 武器
|
||||
/// Weapon Base Info
|
||||
/// </summary>
|
||||
[JsonPropertyName("weapon")]
|
||||
public Weapon? Weapon { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Detailed Info of Equipment
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user