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

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

- SelectRoleForm.OnRandomHoverEnter 上报事件
- SelectRoleUseCase.ClearSelection 重置 SelectedRoleId 并重建 RawData
- SelectRoleController 订阅事件并刷新 Context
- SelectRoleForm.prefab 随机卡 _onPointerEnterAction 绑定新方法
This commit is contained in:
SepComet
2026-06-14 17:25:20 +08:00
parent 37b33c65f0
commit 4fe75fc8c6
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()
{
}
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: af5e47498caf28f4bad0b19945197767
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: