CREAT3D.ECS.Services.ChunkManagement

ISceneLoadingService

This service is used to load and unload scenes belonging to a specific Chunk. Since the concept of a Scene is only loosely defined in this architecture as it's deeply associated with the game engine layer, the implementation of ISceneLoadingService is meant to be provided by each game engine layer independently. There is an implementation of this service included in the Unity package of ECS Core.

Broadcasts Events: SceneLoadingStartedAsyncTopic, SceneLoadingProgressTopic, SceneLoadingCompleteAsyncTopic, SceneUnloadRequestedAsyncTopic, SceneUnloadCompleteAsyncTopic

Methods

Method Task LoadChunkScenes(Chunk chunk, CancellationToken cancellationToken)
Description Loads all scenes contained in the specified Chunk. Broadcasts events related to the loading initialization, progress and completion.
Method Task UnloadChunkScenes(Chunk chunk, CancellationToken cancellationToken)
Description Unloads all scenes contained in the specified Chunk, unless they're in use by other loaded Chunks.