重构:统一 UI 模块目录结构规范

- 事件命名规范化:RefreshEventArgs → LevelUpRefreshEventArgs
- LevelUp 子组件目录调整:LevelUpRewardItem + LevelUpRewardItemContext 移动到 LevelUp/
- Shop 子组件目录调整:DisplayItem/DisplayListArea/GoodsItem/ShopGoodsItem 及其 Context/RawData 全部移动到 Shop/
- 删除冗余文件:LevelUpRewardItemRawData(从未被使用)
- 新增 ObjectPool 目录结构
- 更新 LevelUpController 和 LevelUpForm 中的事件引用
This commit is contained in:
2026-06-17 09:50:47 +08:00
parent c30b256d7a
commit 5c3b87ab3f
31 changed files with 22 additions and 39 deletions
@@ -3,22 +3,22 @@ using GameFramework.Event;
namespace SepCore.Event
{
public class RefreshEventArgs : GameEventArgs
public class LevelUpRefreshEventArgs : GameEventArgs
{
public static readonly int EventId = typeof(RefreshEventArgs).GetHashCode();
public static readonly int EventId = typeof(LevelUpRefreshEventArgs).GetHashCode();
public override int Id => EventId;
public int Cost { get; private set; }
public RefreshEventArgs()
public LevelUpRefreshEventArgs()
{
Cost = 0;
}
public static RefreshEventArgs Create(int cost)
public static LevelUpRefreshEventArgs Create(int cost)
{
var args = ReferencePool.Acquire<RefreshEventArgs>();
var args = ReferencePool.Acquire<LevelUpRefreshEventArgs>();
args.Cost = cost;
@@ -31,4 +31,4 @@ namespace SepCore.Event
}
}
}
}