This commit is contained in:
2025-11-12 07:04:31 +08:00
parent 33a4742904
commit f615d8ddb0
68 changed files with 1388 additions and 1478 deletions

View File

@@ -0,0 +1,31 @@
using System;
namespace Tuan.GameFramework
{
public static class PatchEvent
{
public static event Action<string> OnStatusUpdate;
public static event Action<float> OnProgressUpdate;
public static event Action<string> OnDownloadSizeUpdate;
public static event Action OnClosePatchWindow;
public static void UpdateStatus(string status)
{
OnStatusUpdate?.Invoke(status);
}
public static void UpdateProgress(float progress)
{
OnProgressUpdate?.Invoke(progress);
}
public static void UpdateDownloadSize(string sizeText)
{
OnDownloadSizeUpdate?.Invoke(sizeText);
}
public static void ClosePatchWindow()
{
OnClosePatchWindow?.Invoke();
}
}
}