Skip to main content

ServerChunkContentManager

A class in Root.Township, Alta.Chunks.

Server side content manager for a chunk: handles its static content (unless the chunk skips it) and its dynamic, saved content.

Constructors​

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

Fields​

1 private and internal field
MemberWhat it is
private static readonly Logger loggerNLog logger for this class.

Properties​

MemberWhat it is
DynamicChunkContentManager DynamicManager { get; }Manager for the chunk's dynamic (saved) content.
override bool IsAllowingUnload { get; }True when the dynamic content allows unload and the static content does too (or is skipped).
StaticChunkContentManager StaticManager { get; }Manager for the chunk's static content. Null if the chunk skips static content.

Methods​

MemberWhat it is
override async Task Clear()Clears the base state and the dynamic content.
override async Task Save()Saves static (if not skipped) then dynamic content.
override void UpdateIdentifier()Updates the identifier on itself and both managers.
protected override async Task LoadInternal()Starts reading the dynamic save, loads static content, then loads dynamic content.
protected override async Task UnloadInternal()Unloads dynamic content first, then static content.