v11 全量评审:修复 TD-13 至 TD-17
- TD-13: IQuestManager.CompleteQuest 改用 IRewardTarget,移除 using BaseGames.Player - TD-14: HurtFlashController 缓存 WaitForSeconds(_waitForFlash 字段) - TD-16: LiquidType 枚举迁移至 BaseGames.Core.Events;LiquidEvent.LiquidType 改为枚举直接比较 - TD-17: DeathScreenController 移除失效的 _onPlayerDied 订阅,改为 OnEnable 直接启动延迟显示 影响文件: IQuestManager.cs / HurtFlashController.cs / LiquidType.cs(迁移) / LiquidEvent.cs / LiquidZone.cs / WaterDangerState.cs / UnderwaterPostProcessingController.cs / UnderwaterAudioController.cs / DeathScreenController.cs 评审文档: Docs/Review/FrameworkReview_2026_May_v11.md(综合评分 9.30/10)
This commit is contained in:
@@ -7,10 +7,10 @@ namespace BaseGames.Core.Events
|
||||
{
|
||||
/// <summary>液体区域标识符(对应 LiquidZone SO 的 zoneId)。</summary>
|
||||
public readonly string ZoneId;
|
||||
/// <summary>液体类型(如 "Water" / "Acid" / "Lava")。</summary>
|
||||
public readonly string LiquidType;
|
||||
/// <summary>液体类型(枚举直接比较,无字符串转换)。</summary>
|
||||
public readonly LiquidType LiquidType;
|
||||
|
||||
public LiquidEvent(string zoneId, string liquidType)
|
||||
public LiquidEvent(string zoneId, LiquidType liquidType)
|
||||
{
|
||||
ZoneId = zoneId;
|
||||
LiquidType = liquidType;
|
||||
|
||||
14
Assets/Scripts/Core/Events/LiquidType.cs
Normal file
14
Assets/Scripts/Core/Events/LiquidType.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
// Assets/Scripts/Core/Events/LiquidType.cs
|
||||
// LiquidType 属于事件载荷定义层(与 LiquidEvent 同程序集),
|
||||
// 以消除 Core.Events → World.Liquid 的反向依赖。
|
||||
namespace BaseGames.Core.Events
|
||||
{
|
||||
public enum LiquidType
|
||||
{
|
||||
Water, // 可游泳(需 Swim 能力)
|
||||
ShallowWater, // 浅水(水中慢走,无需游泳能力,速度 ×0.65)
|
||||
Mud, // 泥水(移动极慢,无需游泳能力,速度 ×0.50)
|
||||
Acid, // 接触即死(HazardZone 处理)
|
||||
Lava, // 接触即死(HazardZone 处理)
|
||||
}
|
||||
}
|
||||
11
Assets/Scripts/Core/Events/LiquidType.cs.meta
Normal file
11
Assets/Scripts/Core/Events/LiquidType.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6cb1f6ef04d8c734ea4870b74030d4ea
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user