Files
zeling_v2/Assets/_Game/Scripts/World/Map/IPlayerPositionProvider.cs
Joywayer 5cb6c2a19d Add final evaluation report for Minimap system after all fixes and improvements
- 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
2026-05-25 14:25:19 +08:00

29 lines
1.0 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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;
}
}