-
-
Notifications
You must be signed in to change notification settings - Fork 204
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
37 changed files
with
739 additions
and
88 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
2 changes: 1 addition & 1 deletion
2
src/Snap.Hutao/Snap.Hutao/Model/Binding/Cultivation/StatisticsCultivateItem.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
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
28 changes: 28 additions & 0 deletions
28
src/Snap.Hutao/Snap.Hutao/Model/Metadata/Converter/MonsterIconConverter.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,28 @@ | ||
// Copyright (c) DGP Studio. All rights reserved. | ||
// Licensed under the MIT license. | ||
|
||
using Snap.Hutao.Control; | ||
|
||
namespace Snap.Hutao.Model.Metadata.Converter; | ||
|
||
/// <summary> | ||
/// 怪物图标转换器 | ||
/// </summary> | ||
internal sealed class MonsterIconConverter : ValueConverter<string, Uri> | ||
{ | ||
/// <summary> | ||
/// 名称转Uri | ||
/// </summary> | ||
/// <param name="name">名称</param> | ||
/// <returns>链接</returns> | ||
public static Uri IconNameToUri(string name) | ||
{ | ||
return Web.HutaoEndpoints.StaticFile("MonsterIcon", $"{name}.png").ToUri(); | ||
} | ||
|
||
/// <inheritdoc/> | ||
public override Uri Convert(string from) | ||
{ | ||
return IconNameToUri(from); | ||
} | ||
} |
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,50 @@ | ||
// Copyright (c) DGP Studio. All rights reserved. | ||
// Licensed under the MIT license. | ||
|
||
using Snap.Hutao.Model.Intrinsic; | ||
using Snap.Hutao.Model.Primitive; | ||
using System.Collections.Immutable; | ||
|
||
namespace Snap.Hutao.Model.Metadata.Item; | ||
|
||
/// <summary> | ||
/// 展示物品 | ||
/// </summary> | ||
[HighQuality] | ||
internal class Display | ||
{ | ||
/// <summary> | ||
/// 物品Id | ||
/// </summary> | ||
public MaterialId Id { get; set; } | ||
|
||
/// <summary> | ||
/// 等级 | ||
/// </summary> | ||
public ItemQuality RankLevel { get; set; } | ||
|
||
/// <summary> | ||
/// 物品类型 | ||
/// </summary> | ||
public ItemType ItemType { get; set; } | ||
|
||
/// <summary> | ||
/// 图标 | ||
/// </summary> | ||
public string Icon { get; set; } = default!; | ||
|
||
/// <summary> | ||
/// 名称 | ||
/// </summary> | ||
public string Name { get; set; } = default!; | ||
|
||
/// <summary> | ||
/// 描述 | ||
/// </summary> | ||
public string Description { get; set; } = default!; | ||
|
||
/// <summary> | ||
/// 类型描述 | ||
/// </summary> | ||
public string TypeDescription { get; set; } = default!; | ||
} |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.