Table of Contents

Class AssetsModule

Namespace
Shard.Assets
Assembly
Shard.Assets.dll

The assets module. During preload it runs the asset pipeline from the pack at AssetsPath in three phases: LOAD (System B common assets under Common/

  • System A typed Server/ stores), RESOLVE (ordered cross-dependency pass — derived tables), and PREPARE (build the typed Update* packets once). It provides ICommonAssetStore, AssetRegistry, and the cached TypedAssetPackets for the setup handshake.
public sealed class AssetsModule : BaseModule, IModule
Inheritance
AssetsModule
Implements
Inherited Members

Constructors

AssetsModule()

public AssetsModule()

Properties

Manifest

Gets the module's identity and dependency declaration.

public override ModuleManifest Manifest { get; }

Property Value

ModuleManifest

Methods

OnPreloadAsync(CancellationToken)

Performs asynchronous preload work that must complete before this module can start.

protected override Task OnPreloadAsync(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

A token that is canceled when server startup is interrupted.

Returns

Task

A task representing the asynchronous preload operation.

OnSetup()

Called during synchronous module setup after the module context has been assigned.

protected override void OnSetup()

OnShutdown()

Called in reverse load order after quiescence. This hook is skipped if setup does not complete; use IDisposable for cleanup required on every ownership path.

protected override void OnShutdown()