Skip to main content

ClientChunkContentManager

A class in Root.Township, Alta.Chunks.

Client side content manager for a chunk: loads and unloads the chunk's static content, and waits for its procedural streamer if it has one.

Constructors​

MemberWhat it is
ClientChunkContentManager(Chunk chunk)Creates a ClientChunkContentManager from chunk.

Fields​

3 private and internal fields
MemberWhat it is
private CancellationTokenSource cancelLoadCancels the procedural streamer's load.
private bool hasStreamerWhether the chunk had a procedural streamer when this manager was made.
private StaticChunkContentManager staticContentManagerThe manager for the chunk's static content.

Methods​

MemberWhat it is
override async Task Save()Saves the static content.
protected override async Task LoadInternal()Loads the static content, then if there is a procedural streamer, loads its static part and waits for its ClientLoadingFinished.
protected override async Task UnloadInternal()Unloads the procedural streamer's static part, then the static content.
protected override void WaitingToLoadForUnload()Cancels a procedural load in progress when an unload is waiting on it.