- 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
21 lines
812 B
C#
21 lines
812 B
C#
namespace BaseGames.World.Map
|
||
{
|
||
/// <summary>
|
||
/// IMapService 无状态扩展方法,集中可复用的查询逻辑。
|
||
/// MapPanel、MinimapHUD 等所有消费方均调用此处,避免分散的重复实现。
|
||
/// </summary>
|
||
public static class MapServiceExtensions
|
||
{
|
||
/// <summary>
|
||
/// 根据探索状态推导房间三级可见性(Explored > Mapped > Unknown)。
|
||
/// </summary>
|
||
public static RoomVisibility GetVisibility(this IMapService svc, string roomId)
|
||
{
|
||
if (svc == null) return RoomVisibility.Unknown;
|
||
if (svc.IsExplored(roomId)) return RoomVisibility.Explored;
|
||
if (svc.IsMapped(roomId)) return RoomVisibility.Mapped;
|
||
return RoomVisibility.Unknown;
|
||
}
|
||
}
|
||
}
|