Static Public Member Functions | List of all members
LoaderExtensions Class Reference

Detailed Description

Additions to IManifestLoader

Done this way so we don't have to have a baseclass to offer these utilities.

Static Public Member Functions

static IOperation  Initialize (this IManifestLoader loader, BundleManager manager, string absolutePath, int version)
 
static IOperation  Initialize (this IManifestLoader loader, BundleManager manager, string absolutePath)
 
static IEnumerator  InstallDirectory (this IManifestLoader loader, BundleManager manager, IOperation loadOp)
 

Member Function Documentation

◆ Initialize() [1/2]

static IOperation Initialize ( this IManifestLoader  loader,
BundleManager  manager,
string  absolutePath 
)
inlinestatic

Sets the source URL to the manifest and where all remote content is expected to be found.

Can be updated during application run for a version change.

Parameters
loader Object that we're extending.
manager Target manager
absolutePath manifest path. Extracts baseUrl from this.

◆ Initialize() [2/2]

static IOperation Initialize ( this IManifestLoader  loader,
BundleManager  manager,
string  absolutePath,
int  version 
)
inlinestatic

Sets the source URL to the manifest and where all remote content is expected to be found.

Can be updated during application run for a version change.

Parameters
loader Object that we're extending.
manager Target manager
version If cached locally and version number matches, won't hit network
absolutePath manifest path. Extracts baseUrl from this.

◆ InstallDirectory()

static IEnumerator InstallDirectory ( this IManifestLoader  loader,
BundleManager  manager,
IOperation  loadOp 
)
inlinestatic

Watch for a completed loadOp and install resulting Directory

Parameters
loader Object that we're extending.
manager Target manager
loadOp Operation we are waiting for to complete successfully before updating the manager with it.
Returns
Coroutine source