MCPcopy Create free account
hub / github.com/Monogatari/Monogatari / registerLoader

Method registerLoader

src/actions/Preload.ts:149–151  ·  view source on GitHub ↗

* Register a custom asset loader * @param type - Unique identifier for this loader type (e.g., 'audio', 'image', 'video') * @param config - Loader configuration with loader function and cache accessors

(type: string, config: LoaderConfig<T>)

Source from the content-addressed store, hash-verified

147 * @param config - Loader configuration with loader function and cache accessors
148 */
149 static registerLoader<T>(type: string, config: LoaderConfig<T>): void {
150 this._loaders.set(type, config as LoaderConfig);
151 }
152
153 /**
154 * Register a category to use a specific loader type

Callers 1

setupMethod · 0.95

Calls 1

setMethod · 0.65

Tested by

no test coverage detected