继续重构调整(UI)

- 引入 UniTask 和异步版本的 UIModule
- 调整 Runtime/UIBase 和 Presentation 下的脚本命名空间到 SepCore.UI
- 将原来的 5 层 UI 迁移到异步实现
- 规范各层的 UI 脚本命名
This commit is contained in:
SepComet
2026-06-03 09:58:37 +08:00
parent 6b8a6a8789
commit 7bba8bbb80
552 changed files with 83648 additions and 2726 deletions
@@ -1,7 +1,8 @@
using Cysharp.Threading.Tasks;
using SepCore.Definition;
using GameFramework.Fsm;
using GameFramework.Procedure;
using UI;
using SepCore.UI;
using UnityGameFramework.Runtime;
namespace Procedure
@@ -21,7 +22,7 @@ namespace Procedure
Log.Debug("GameStateShop::OnInit");
_procedureGame = master;
var shopFormUseCase = new ShopFormUseCase(_procedureGame.Player, _procedureGame.CurrentLevel, () => ShopFinish = true);
var shopFormUseCase = new ShopUseCase(_procedureGame.Player, _procedureGame.CurrentLevel, () => ShopFinish = true);
GameEntry.UIRouter.BindUIUseCase(UIFormType.ShopForm, shopFormUseCase);
}
@@ -31,7 +32,7 @@ namespace Procedure
ShopFinish = false;
GameEntry.UIRouter.OpenUI(UIFormType.ShopForm);
GameEntry.UIRouter.OpenUIAsync(UIFormType.ShopForm).Forget();
}
public override void OnUpdate(IFsm<IProcedureManager> procedureOwner, float elapseSeconds,
@@ -47,7 +48,7 @@ namespace Procedure
{
Log.Debug("GameStateShop::OnLeave");
GameEntry.UIRouter.CloseUI(UIFormType.ShopForm);
GameEntry.UIRouter.CloseUIAsync(UIFormType.ShopForm).Forget();
}
public override void OnDestroy(IFsm<IProcedureManager> procedureOwner)