继续调整,创建 Procedure 与 Presentation 程序集

- 创建 Procedure 与 Presentation 两个程序集
- 初步解决这两个程序集与原程序集的引用关系
This commit is contained in:
SepComet
2026-06-02 23:26:08 +08:00
parent affa44e4d0
commit 6b8a6a8789
50 changed files with 907 additions and 688 deletions
@@ -1,8 +1,8 @@
using System;
using System.Text;
using SepCore.DataTable;
using GameFramework.DataTable;
using Procedure;
using UnityEngine;
using Random = UnityEngine.Random;
namespace UI
{
@@ -10,13 +10,13 @@ namespace UI
{
private readonly IDataTable<DRRole> _roleDataTable;
private readonly ProcedureStartMenu _procedureStartMenu;
private readonly Action<int> _onStartGame;
public int SelectedRoleId { get; private set; }
public SelectRoleFormUseCase(ProcedureStartMenu procedureStartMenu)
public SelectRoleFormUseCase(Action<int> onStartGame)
{
_procedureStartMenu = procedureStartMenu;
_onStartGame = onStartGame;
_roleDataTable = GameEntry.DataTable.GetDataTable<DRRole>();
}
@@ -48,7 +48,7 @@ namespace UI
bool result = SelectedRoleId >= 0;
if (result)
{
_procedureStartMenu.StartGame(SelectedRoleId);
_onStartGame?.Invoke(SelectedRoleId);
}
return result;
@@ -96,4 +96,4 @@ namespace UI
return sb.ToString();
}
}
}
}