From c423e8b72d191b44b96bf963fa500a398404019c Mon Sep 17 00:00:00 2001 From: DismissedLight <1686188646@qq.com> Date: Fri, 14 Jun 2024 23:18:11 +0800 Subject: [PATCH] ProfilePicture add unlock type --- .../Model/Intrinsic/ProfilePictureUnlockType.cs | 13 +++++++++++++ .../Model/Metadata/Avatar/ProfilePicture.cs | 14 ++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 src/Snap.Hutao/Snap.Hutao/Model/Intrinsic/ProfilePictureUnlockType.cs diff --git a/src/Snap.Hutao/Snap.Hutao/Model/Intrinsic/ProfilePictureUnlockType.cs b/src/Snap.Hutao/Snap.Hutao/Model/Intrinsic/ProfilePictureUnlockType.cs new file mode 100644 index 00000000..b58b4957 --- /dev/null +++ b/src/Snap.Hutao/Snap.Hutao/Model/Intrinsic/ProfilePictureUnlockType.cs @@ -0,0 +1,13 @@ +// Copyright (c) DGP Studio. All rights reserved. +// Licensed under the MIT license. + +namespace Snap.Hutao.Model.Intrinsic; + +internal enum ProfilePictureUnlockType +{ + None, + Item, + Avatar, + Costume, + ParentQuest, +} \ No newline at end of file diff --git a/src/Snap.Hutao/Snap.Hutao/Model/Metadata/Avatar/ProfilePicture.cs b/src/Snap.Hutao/Snap.Hutao/Model/Metadata/Avatar/ProfilePicture.cs index ee3b3ade..7aad4ef0 100644 --- a/src/Snap.Hutao/Snap.Hutao/Model/Metadata/Avatar/ProfilePicture.cs +++ b/src/Snap.Hutao/Snap.Hutao/Model/Metadata/Avatar/ProfilePicture.cs @@ -1,6 +1,7 @@ // Copyright (c) DGP Studio. All rights reserved. // Licensed under the MIT license. +using Snap.Hutao.Model.Intrinsic; using Snap.Hutao.Model.Primitive; namespace Snap.Hutao.Model.Metadata.Avatar; @@ -12,4 +13,17 @@ internal sealed class ProfilePicture public string Icon { get; set; } = default!; public string Name { get; set; } = default!; + + public ProfilePictureUnlockType UnlockType { get; set; } + + /// + /// -> + ///
+ /// -> + ///
+ /// -> + ///
+ /// -> + ///
+ public uint UnlockParameter { get; set; } } \ No newline at end of file