MCPcopy
hub / github.com/4ian/GDevelop / areAssetsLoaded

Method areAssetsLoaded

GDJS/Runtime/ResourceLoader.ts:1304–1311  ·  view source on GitHub ↗

* @returns true when all the resources of the given task are loaded * (but maybe not parsed).

(taskIdentifier: string)

Source from the content-addressed store, hash-verified

1302 * (but maybe not parsed).
1303 */
1304 areAssetsLoaded(taskIdentifier: string): boolean {
1305 const loadingState = this.loadingStates.get(taskIdentifier);
1306 if (!loadingState) return false;
1307
1308 return (
1309 loadingState.status === 'loaded' || loadingState.status === 'ready'
1310 );
1311 }
1312
1313 /**
1314 * @returns true when all the resources of the given task are loaded and

Callers 3

getLoadingProgressMethod · 0.95
areSceneAssetsLoadedMethod · 0.80

Calls 1

getMethod · 0.65

Tested by

no test coverage detected