- Summarized the evolution of scores across five review rounds - Detailed the status of each evaluation dimension post-fixes - Highlighted remaining issues and recommended future work for further enhancements - Compared current system against industry benchmarks
29 lines
1.0 KiB
C#
29 lines
1.0 KiB
C#
using System;
|
||
using UnityEngine;
|
||
|
||
namespace BaseGames.World.Map
|
||
{
|
||
/// <summary>
|
||
/// 玩家地图位置信息提供者接口。
|
||
/// <para>
|
||
/// MapPanel / MinimapHUD 依赖此接口而非具体组件,
|
||
/// 支持替换实现(单人、多人、观察者模式、重播系统等场景)。
|
||
/// </para>
|
||
/// 通过 <see cref="BaseGames.Core.ServiceLocator"/> 注册与获取。
|
||
/// </summary>
|
||
public interface IPlayerPositionProvider
|
||
{
|
||
/// <summary>玩家当前所在房间 ID;未在任何已知房间内时为 null 或空字符串。</summary>
|
||
string CurrentRoomId { get; }
|
||
|
||
/// <summary>
|
||
/// 玩家在当前房间内的归一化坐标(0~1,基于世界坐标精确插值)。
|
||
/// 每帧更新,可用于平滑移动图标。
|
||
/// </summary>
|
||
Vector2 NormalizedPositionInRoom { get; }
|
||
|
||
/// <summary>玩家进入新房间时触发(参数为新房间 ID)。</summary>
|
||
event Action<string> OnRoomChanged;
|
||
}
|
||
}
|