修复编译错误
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
using BaseGames.Core.Events;
|
||||
|
||||
namespace BaseGames.Core
|
||||
{
|
||||
/// <summary>
|
||||
|
||||
20
Assets/Scripts/Core/Events/IRewardTarget.cs
Normal file
20
Assets/Scripts/Core/Events/IRewardTarget.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
namespace BaseGames.Core.Events
|
||||
{
|
||||
/// <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);
|
||||
}
|
||||
}
|
||||
11
Assets/Scripts/Core/Events/IRewardTarget.cs.meta
Normal file
11
Assets/Scripts/Core/Events/IRewardTarget.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a5f886592eceaa74b8b3e489e6b669b4
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -27,6 +27,7 @@ namespace BaseGames.Core.Save
|
||||
private SaveData _current;
|
||||
private int _currentSlot = 0;
|
||||
public int CurrentSlot => _currentSlot;
|
||||
public SaveData Data => _current;
|
||||
|
||||
public string LastCheckpointScene { get; private set; }
|
||||
public string LastCheckpointSpawnId { get; private set; }
|
||||
|
||||
Reference in New Issue
Block a user