Skip to main content

IProceduralGenerationStreamer

An interface in Root.Township, Alta.Chunks.

A chunk component that streams generated content in and out (the cave layers use it). The chunk content managers call it when the chunk loads or unloads.

Events​

MemberWhat it is
event Action ClientLoadingFinishedFired when the client has finished loading the generated content.

Methods​

MemberWhat it is
Task LoadDynamic(bool hasGenerated)Generates or loads the dynamic (networked) content. hasGenerated says whether it was generated before.
Task LoadStatic(CancellationToken cancellationToken)Loads the static, non-networked content. Called on client and server.
void UnloadDynamic()Despawns the dynamic content.
void UnloadStatic()Clears the static content.

Used in​

Members of other types that take, return or hold a IProceduralGenerationStreamer: