User Tools

Site Tools


ientityspawnloadingservice

CREAT3D.ECS.Services.ChunkManagement

IEntitySpawnLoadingService

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

Methods

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.
ientityspawnloadingservice.txt · Last modified: by diviner

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki