acdream/src/AcDream.App/World/ILiveEntitySpatialQuery.cs
Erik f4cf802330 fix(ui): bind radar to streamed world state
Resolve the live-entity spatial broadphase at snapshot time so retained UI construction cannot capture GameWindow's empty bootstrap GpuWorldState. Add a replacement-owner regression test covering the exact compass-without-blips failure.

Co-authored-by: OpenAI Codex <codex@openai.com>
2026-07-21 06:24:05 +02:00

16 lines
508 B
C#

using AcDream.Core.World;
namespace AcDream.App.World;
/// <summary>
/// Read-only spatial broadphase for live server-object projections.
/// Consumers resolve this owner late because <c>GameWindow</c> replaces its
/// empty bootstrap world state after retained UI construction.
/// </summary>
public interface ILiveEntitySpatialQuery
{
void CopyLiveEntitiesNearLandblock(
uint centerCellOrLandblockId,
int landblockRadius,
List<KeyValuePair<uint, WorldEntity>> destination);
}