mirror of
https://jihulab.com/DGP-Studio/Snap.Hutao.git
synced 2025-11-19 21:02:53 +08:00
add required field for API
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
// Licensed under the MIT license.
|
||||
|
||||
using System.IO;
|
||||
using Windows.ApplicationModel;
|
||||
|
||||
namespace Snap.Hutao.Context.FileSystem.Location;
|
||||
|
||||
@@ -19,7 +20,10 @@ internal class HutaoLocation : IFileSystemLocation
|
||||
if (string.IsNullOrEmpty(path))
|
||||
{
|
||||
string myDocument = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
|
||||
path = Path.GetFullPath(Path.Combine(myDocument, "Hutao"));
|
||||
|
||||
// 将测试版与正式版的文件目录分离
|
||||
string folderName = Package.Current.PublisherDisplayName == "DGP Studio CI" ? "HutaoAlpha" : "Hutao";
|
||||
path = Path.GetFullPath(Path.Combine(myDocument, folderName));
|
||||
}
|
||||
|
||||
return path;
|
||||
|
||||
@@ -30,13 +30,11 @@ internal static class AppInstanceExtension
|
||||
});
|
||||
|
||||
ReadOnlySpan<HANDLE> handles = new(in redirectEventHandle);
|
||||
|
||||
// non-blocking
|
||||
CoWaitForMultipleObjects((uint)CWMO_FLAGS.CWMO_DEFAULT, INFINITE, handles, out uint _);
|
||||
}
|
||||
|
||||
private static unsafe HANDLE UnsafeCreateEvent()
|
||||
{
|
||||
return CreateEvent((SECURITY_ATTRIBUTES*)null, true, false, null);
|
||||
return CreateEvent(default(SECURITY_ATTRIBUTES*), true, false, null);
|
||||
}
|
||||
}
|
||||
@@ -12,7 +12,7 @@
|
||||
<Identity
|
||||
Name="7f0db578-026f-4e0b-a75b-d5d06bb0a74d"
|
||||
Publisher="CN=DGP Studio"
|
||||
Version="1.2.15.0" />
|
||||
Version="1.2.16.0" />
|
||||
|
||||
<Properties>
|
||||
<DisplayName>胡桃</DisplayName>
|
||||
|
||||
@@ -23,11 +23,26 @@ public class Overview
|
||||
/// </summary>
|
||||
public int SpiralAbyssTotal { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 通关玩家总数
|
||||
/// </summary>
|
||||
public int SpiralAbyssPassed { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 总星数
|
||||
/// </summary>
|
||||
public int SpiralAbyssStarTotal { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 满星数
|
||||
/// </summary>
|
||||
public int SpiralAbyssFullStar { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 总战斗次数
|
||||
/// </summary>
|
||||
public long SpiralAbyssBattleTotal { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 统计时间
|
||||
/// </summary>
|
||||
|
||||
@@ -17,6 +17,8 @@ public class SimpleSpiralAbyss
|
||||
public SimpleSpiralAbyss(SpiralAbyss spiralAbyss)
|
||||
{
|
||||
ScheduleId = spiralAbyss.ScheduleId;
|
||||
TotalBattleTimes = spiralAbyss.TotalBattleTimes;
|
||||
TotalWinTimes = spiralAbyss.TotalWinTimes;
|
||||
Damage = SimpleRank.FromRank(spiralAbyss.DamageRank.SingleOrDefault());
|
||||
TakeDamage = SimpleRank.FromRank(spiralAbyss.TakeDamageRank.SingleOrDefault());
|
||||
Floors = spiralAbyss.Floors.Select(f => new SimpleFloor(f));
|
||||
@@ -27,6 +29,16 @@ public class SimpleSpiralAbyss
|
||||
/// </summary>
|
||||
public int ScheduleId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 总战斗次数
|
||||
/// </summary>
|
||||
public int TotalBattleTimes { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 总战斗胜利次数
|
||||
/// </summary>
|
||||
public int TotalWinTimes { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 造成伤害
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user