Add enemy respawner and related components for room lifecycle management

- Implemented EnemyRespawner to manage enemy spawning and respawning within rooms.
- Added IRoomLifecycle interface for room activation and dormancy handling.
- Created supporting classes and metadata for enemy perception and threat assessment.
- Established streaming system components for room state management and transitions.
- Added necessary metadata files for new scripts to ensure proper integration with Unity.
This commit is contained in:
2026-05-23 21:23:09 +08:00
parent a1b4e629aa
commit 520f84999b
34 changed files with 1710 additions and 63 deletions

View File

@@ -45,5 +45,11 @@ namespace BaseGames.World
/// 用于非流式冷启动路径(如游戏初始化、快速传送落地)。
/// </summary>
IEnumerator LoadAndActivateRoomCoroutine(string roomId, SpawnContext context);
/// <summary>
/// 获取指定房间的当前流式状态。
/// 若房间不在流式系统中(未加载或 ID 不存在),返回 <see cref="RoomState.Unloaded"/>。
/// </summary>
RoomState GetRoomState(string roomId);
}
}