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

Method hasLoader

src/actions/Preload.ts:185–188  ·  view source on GitHub ↗

* Check if a category has a registered loader * @param category - Category name * @returns True if the category has a registered loader

(category: string)

Source from the content-addressed store, hash-verified

183 * @returns True if the category has a registered loader
184 */
185 static hasLoader(category: string): boolean {
186 const loaderType = this._categoryLoaderMap.get(category);
187 return loaderType !== undefined && this._loaders.has(loaderType);
188 }
189
190 /**
191 * Register an alias for a category (e.g., 'sound' -> 'sounds')

Callers 4

preloadBlockMethod · 0.80
applyMethod · 0.80
unloadBlockMethod · 0.80
applyMethod · 0.80

Calls 1

getMethod · 0.65

Tested by

no test coverage detected