pokerogue/test/testUtils/mocks/mockLoader.ts
Sirz Benjie 408b66f913
[Misc][Refactor][GitHub] Ditch eslint for biome, and add a formatter (#5495)
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2025-03-09 14:13:25 -07:00

35 lines
487 B
TypeScript

import CacheManager = Phaser.Cache.CacheManager;
export default class MockLoader {
public cacheManager;
constructor(scene) {
this.cacheManager = new CacheManager(scene);
}
once(_event, callback) {
callback();
}
setBaseURL(_url) {
return null;
}
video() {
return null;
}
spritesheet(_key, _url, _frameConfig) {}
audio(_key, _url) {}
isLoading() {
return false;
}
start() {}
image() {}
atlas(_key, _textureUrl, _atlasUrl) {}
}