CREAT3D.ECS.Services.ChunkManagement
This service's primary responsibility is to load EntitySpawns into a specified Chunk. Loading is performed through a coroutine so large spawn collections can be processed over multiple frames.
Broadcasts Events: EntitySpawnLoadingStartedTopic, EntitySpawnLoadingProgressTopic, EntitySpawnLoadingCompleteTopic
| Method | Task LoadEntitySpawns(EntitySpawn[] entitySpawns, Chunk chunk, CancellationToken cancellationToken) |
|---|---|
| Description | Loads all valid EntitySpawns into the specified Chunk. Loading runs through a coroutine in three stages: entity creation, transform parenting, and entity creation broadcasting. Progress is broadcast during loading according to the configured loading frequency. |