mirror of
https://jihulab.com/DGP-Studio/Snap.Hutao.git
synced 2025-11-19 21:02:53 +08:00
update metadata models
This commit is contained in:
@@ -65,6 +65,12 @@
|
|||||||
"Equatable": true,
|
"Equatable": true,
|
||||||
"EqualityOperators": true
|
"EqualityOperators": true
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"Name": "MonsterRelationshipId",
|
||||||
|
"Documentation": "怪物关系 Id",
|
||||||
|
"Equatable": true,
|
||||||
|
"EqualityOperators": true
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"Name": "PromoteId",
|
"Name": "PromoteId",
|
||||||
"Documentation": "角色突破提升 Id",
|
"Documentation": "角色突破提升 Id",
|
||||||
|
|||||||
25
src/Snap.Hutao/Snap.Hutao/Model/Intrinsic/Arkhe.cs
Normal file
25
src/Snap.Hutao/Snap.Hutao/Model/Intrinsic/Arkhe.cs
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
// Copyright (c) DGP Studio. All rights reserved.
|
||||||
|
// Licensed under the MIT license.
|
||||||
|
|
||||||
|
namespace Snap.Hutao.Model.Intrinsic;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 始基力
|
||||||
|
/// </summary>
|
||||||
|
internal enum Arkhe
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 无
|
||||||
|
/// </summary>
|
||||||
|
None,
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 芒性
|
||||||
|
/// </summary>
|
||||||
|
Ousia,
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 荒性
|
||||||
|
/// </summary>
|
||||||
|
Pneuma,
|
||||||
|
}
|
||||||
@@ -1,6 +1,7 @@
|
|||||||
// Copyright (c) DGP Studio. All rights reserved.
|
// Copyright (c) DGP Studio. All rights reserved.
|
||||||
// Licensed under the MIT license.
|
// Licensed under the MIT license.
|
||||||
|
|
||||||
|
using Snap.Hutao.Model.Intrinsic;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
namespace Snap.Hutao.Model.Metadata.Avatar;
|
namespace Snap.Hutao.Model.Metadata.Avatar;
|
||||||
@@ -14,6 +15,11 @@ internal sealed class SkillDepot
|
|||||||
private List<ProudableSkill>? compositeSkills;
|
private List<ProudableSkill>? compositeSkills;
|
||||||
private List<ProudableSkill>? compositeSkillsNoInherents;
|
private List<ProudableSkill>? compositeSkillsNoInherents;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 始基力
|
||||||
|
/// </summary>
|
||||||
|
public Arkhe Arkhe { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 技能天赋
|
/// 技能天赋
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@@ -24,6 +24,11 @@ internal sealed class Monster
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public MonsterDescribeId DescribeId { get; set; }
|
public MonsterDescribeId DescribeId { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 关系 Id
|
||||||
|
/// </summary>
|
||||||
|
public MonsterRelationshipId RelationshipId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 内部代号
|
/// 内部代号
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -49,6 +54,11 @@ internal sealed class Monster
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public MonsterType Type { get; set; }
|
public MonsterType Type { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 始基力
|
||||||
|
/// </summary>
|
||||||
|
public Arkhe Arkhe { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 强化标签
|
/// 强化标签
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@@ -33,10 +33,10 @@ internal sealed class TowerLevel
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// 上半怪物预览
|
/// 上半怪物预览
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public List<MonsterId> FirstMonsters { get; set; } = default!;
|
public List<MonsterRelationshipId> FirstMonsters { get; set; } = default!;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 下半怪物预览
|
/// 下半怪物预览
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public List<MonsterId> SecondMonsters { get; set; } = default!;
|
public List<MonsterRelationshipId> SecondMonsters { get; set; } = default!;
|
||||||
}
|
}
|
||||||
@@ -61,5 +61,3 @@ MINMAXINFO
|
|||||||
|
|
||||||
// System.Com
|
// System.Com
|
||||||
CWMO_FLAGS
|
CWMO_FLAGS
|
||||||
|
|
||||||
D3D12CreateDevice
|
|
||||||
@@ -3,7 +3,7 @@
|
|||||||
"Snap.Hutao": {
|
"Snap.Hutao": {
|
||||||
"commandName": "MsixPackage",
|
"commandName": "MsixPackage",
|
||||||
"nativeDebugging": false,
|
"nativeDebugging": false,
|
||||||
"doNotLaunchApp": true,
|
"doNotLaunchApp": false,
|
||||||
"allowLocalNetworkLoopbackProperty": true
|
"allowLocalNetworkLoopbackProperty": true
|
||||||
},
|
},
|
||||||
"[Unpackaged] Snap.Hutao": {
|
"[Unpackaged] Snap.Hutao": {
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ internal sealed partial class WikiMonsterViewModel : Abstraction.ViewModel
|
|||||||
monster.DropsView ??= monster.Drops?.SelectList(i => idDisplayMap.GetValueOrDefault(i, Material.Default));
|
monster.DropsView ??= monster.Drops?.SelectList(i => idDisplayMap.GetValueOrDefault(i, Material.Default));
|
||||||
}
|
}
|
||||||
|
|
||||||
List<Monster> ordered = monsters.SortBy(m => m.Id.Value);
|
List<Monster> ordered = monsters.SortBy(m => m.RelationshipId.Value);
|
||||||
await taskContext.SwitchToMainThreadAsync();
|
await taskContext.SwitchToMainThreadAsync();
|
||||||
|
|
||||||
Monsters = new AdvancedCollectionView(ordered, true);
|
Monsters = new AdvancedCollectionView(ordered, true);
|
||||||
|
|||||||
Reference in New Issue
Block a user