v10 全量评审:修复 TD-06 至 TD-12(InputReader 移除资产扫描回退 / EmergencySave 解除 LocalFileStorage 直接依赖 / AccessibilityManager 注册 IAccessibilityService / HUDController HP/SpringIcon SetActive 复用 / MovingPlatform 缓存 WaitForSeconds / RewardSO IRewardTarget 解耦 Quest←Player 依赖 / CrashReporter 频率限制崩溃日志)
This commit is contained in:
20
Assets/Scripts/Quest/IRewardTarget.cs
Normal file
20
Assets/Scripts/Quest/IRewardTarget.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
namespace BaseGames.Quest
|
||||
{
|
||||
/// <summary>
|
||||
/// 奖励接收目标接口(架构 22_QuestChallengeModule §4)。
|
||||
/// 由 <see cref="RewardSO.Apply"/> 调用,解除 BaseGames.Quest 对 BaseGames.Player 的直接依赖。
|
||||
/// PlayerStats 实现此接口,QuestManager 持有 IRewardTarget 引用。
|
||||
/// 能力类型以 uint 位掩码传递(与 Player.AbilityType : uint 一致),避免跨程序集枚举引用。
|
||||
/// </summary>
|
||||
public interface IRewardTarget
|
||||
{
|
||||
/// <summary>增加 Geo(货币)。</summary>
|
||||
void AddGeo(int amount);
|
||||
|
||||
/// <summary>增加灵魂力量上限。</summary>
|
||||
void AddSoulPower(int amount);
|
||||
|
||||
/// <summary>解锁指定能力(abilityFlag 为 AbilityType 的 uint 位掩码值)。</summary>
|
||||
void UnlockAbilityFlag(uint abilityFlag);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user