feat(streaming): PhysicsDatBundle on LoadedLandblock (datLock fix scaffold)

Carries the parsed dat objects ApplyLoadedTerrainLocked needs so the worker
can pre-read them and the apply can run lock-free. Optional field (default
null) keeps existing LoadedLandblock construction back-compatible.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Erik 2026-06-23 09:31:26 +02:00
parent 5ab5d3910e
commit 3a0e349c6e
3 changed files with 50 additions and 1 deletions

View file

@ -5,4 +5,5 @@ namespace AcDream.Core.World;
public sealed record LoadedLandblock(
uint LandblockId,
LandBlock Heightmap,
IReadOnlyList<WorldEntity> Entities);
IReadOnlyList<WorldEntity> Entities,
PhysicsDatBundle? PhysicsDats = null);