Skip to content

AtlasLoadEvent

Namespace: Shadop.Archmage.Sdk

Progress event data reported during asynchronous Atlas item loading.

public struct AtlasLoadEvent

Inheritance ObjectValueTypeAtlasLoadEvent

Remarks:

AtlasLoadEvent instances are reported to an IProgress implementation passed to Archmage.LoadAtlasAsync(String, String, IAtlas, AtlasOptions, IProgress, CancellationToken). This allows consumers to track loading progress and provide feedback to the user.

The Elapsed property can be used to implement timeouts or progress visualization.

public string Key { get; }

String

public AtlasLoadStage Stage { get; }

AtlasLoadStage

Set during StartReading, StartParsing, StartReadingOverride, and ApplyingOverride; null for StartProcessing and Completed.

public string FilePath { get; }

String

public TimeSpan Elapsed { get; }

TimeSpan

The total number of atlas items to load. Only meaningful for AtlasLoadStage.ItemsQueued.

public int Total { get; }

Int32

AtlasLoadEvent(String, AtlasLoadStage, String, TimeSpan, Int32)

Section titled “AtlasLoadEvent(String, AtlasLoadStage, String, TimeSpan, Int32)”
AtlasLoadEvent(string key, AtlasLoadStage stage, string filePath, TimeSpan elapsed, int total)

key String

stage AtlasLoadStage

filePath String

elapsed TimeSpan

total Int32