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

Method assets

src/monogatari.ts:985–987  ·  view source on GitHub ↗

* @static assets - Simple function to modify and access the assets object, * all declared assets such as audio, videos and images should be registered * in these objects. * * @param {string} [type = null] - The type of asset you are referring to * @param {Object} [object = null] - T

(type: string | null = null, object: Record<string, string> | null = null)

Source from the content-addressed store, hash-verified

983 * assets object will be returned.
984 */
985 static assets (type: string | null = null, object: Record<string, string> | null = null): Record<string, Record<string, string>> | Record<string, string> | undefined {
986 return _assets (this.asEngine (), type, object);
987 }
988
989 static asset (type: string, name: string, value: string | null = null) {
990 return _asset (this.asEngine (), type, name, value);

Callers 6

preloadMethod · 0.95
initMethod · 0.80
playAmbientFunction · 0.80
preload.spec.jsFile · 0.80
unload.spec.jsFile · 0.80
commands.jsFile · 0.80

Calls 1

asEngineMethod · 0.95

Tested by

no test coverage detected