重构
- 重构 `RepoItem`,统一点击事件
- 重构 `PlayerInventoryComponent`:
- `PlayerInventoryStateStore`:状态与库存写模型
- `PlayerInventoryTowerAssemblyService`:炮塔组装域
- `PlayerInventoryTowerRosterService`:编队/耐久域
- `InventoryParticipantUtility`/`InventoryCloneUtility`/`InventorySeedUtility`:通用工具类
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using GeometryTD.CustomComponent;
|
||||
using GeometryTD.CustomUtility;
|
||||
using GeometryTD.Definition;
|
||||
using UnityEngine;
|
||||
|
||||
@@ -56,7 +57,7 @@ namespace GeometryTD.UI
|
||||
BackpackInventoryData rewardInventory = _rewardInventory;
|
||||
if (rewardInventory == null)
|
||||
{
|
||||
rewardInventory = RepoFormUseCase.SampleInventory();
|
||||
rewardInventory = InventorySeedUtility.CreateSampleInventory();
|
||||
}
|
||||
|
||||
return new CombatFinishFormRawData
|
||||
|
||||
Reference in New Issue
Block a user