为随机角色卡补 hover 反向链路

新增 SelectRoleClearEventArgs:hover 随机卡时清空选中状态,让上方属性区回到 _randomRoleCard。

- SelectRoleForm.OnRandomHoverEnter 上报事件
- SelectRoleUseCase.ClearSelection 重置 SelectedRoleId 并重建 RawData
- SelectRoleController 订阅事件并刷新 Context
- SelectRoleForm.prefab 随机卡 _onPointerEnterAction 绑定新方法
This commit is contained in:
SepComet
2026-06-16 17:09:21 +08:00
committed by basil
parent 0fb4ff01f9
commit 11621ee1c9
7 changed files with 98 additions and 14 deletions
@@ -0,0 +1,21 @@
using GameFramework;
using GameFramework.Event;
namespace SepCore.Event
{
public class SelectRoleClearEventArgs : GameEventArgs
{
public static readonly int EventId = typeof(SelectRoleClearEventArgs).GetHashCode();
public override int Id => EventId;
public static SelectRoleClearEventArgs Create()
{
return ReferencePool.Acquire<SelectRoleClearEventArgs>();
}
public override void Clear()
{
}
}
}