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,
|
||||
"EqualityOperators": true
|
||||
},
|
||||
{
|
||||
"Name": "MonsterRelationshipId",
|
||||
"Documentation": "怪物关系 Id",
|
||||
"Equatable": true,
|
||||
"EqualityOperators": true
|
||||
},
|
||||
{
|
||||
"Name": "PromoteId",
|
||||
"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.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
using Snap.Hutao.Model.Intrinsic;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace Snap.Hutao.Model.Metadata.Avatar;
|
||||
@@ -14,6 +15,11 @@ internal sealed class SkillDepot
|
||||
private List<ProudableSkill>? compositeSkills;
|
||||
private List<ProudableSkill>? compositeSkillsNoInherents;
|
||||
|
||||
/// <summary>
|
||||
/// 始基力
|
||||
/// </summary>
|
||||
public Arkhe Arkhe { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 技能天赋
|
||||
/// </summary>
|
||||
|
||||
@@ -24,6 +24,11 @@ internal sealed class Monster
|
||||
/// </summary>
|
||||
public MonsterDescribeId DescribeId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 关系 Id
|
||||
/// </summary>
|
||||
public MonsterRelationshipId RelationshipId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 内部代号
|
||||
/// </summary>
|
||||
@@ -49,6 +54,11 @@ internal sealed class Monster
|
||||
/// </summary>
|
||||
public MonsterType Type { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 始基力
|
||||
/// </summary>
|
||||
public Arkhe Arkhe { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 强化标签
|
||||
/// </summary>
|
||||
|
||||
@@ -33,10 +33,10 @@ internal sealed class TowerLevel
|
||||
/// <summary>
|
||||
/// 上半怪物预览
|
||||
/// </summary>
|
||||
public List<MonsterId> FirstMonsters { get; set; } = default!;
|
||||
public List<MonsterRelationshipId> FirstMonsters { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 下半怪物预览
|
||||
/// </summary>
|
||||
public List<MonsterId> SecondMonsters { get; set; } = default!;
|
||||
public List<MonsterRelationshipId> SecondMonsters { get; set; } = default!;
|
||||
}
|
||||
@@ -60,6 +60,4 @@ LPTHREAD_START_ROUTINE
|
||||
MINMAXINFO
|
||||
|
||||
// System.Com
|
||||
CWMO_FLAGS
|
||||
|
||||
D3D12CreateDevice
|
||||
CWMO_FLAGS
|
||||
@@ -3,7 +3,7 @@
|
||||
"Snap.Hutao": {
|
||||
"commandName": "MsixPackage",
|
||||
"nativeDebugging": false,
|
||||
"doNotLaunchApp": true,
|
||||
"doNotLaunchApp": false,
|
||||
"allowLocalNetworkLoopbackProperty": true
|
||||
},
|
||||
"[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));
|
||||
}
|
||||
|
||||
List<Monster> ordered = monsters.SortBy(m => m.Id.Value);
|
||||
List<Monster> ordered = monsters.SortBy(m => m.RelationshipId.Value);
|
||||
await taskContext.SwitchToMainThreadAsync();
|
||||
|
||||
Monsters = new AdvancedCollectionView(ordered, true);
|
||||
|
||||
Reference in New Issue
Block a user