mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-03-07 02:17:47 +00:00
* move test folder * Update vitest files * rename test/utils to test/testUtils * Remove stray utils/gameManager Got put back from a rebase
23 lines
572 B
TypeScript
23 lines
572 B
TypeScript
import MockGraphics from "./mocksContainer/mockGraphics";
|
|
import type MockTextureManager from "./mockTextureManager";
|
|
|
|
export class MockGameObjectCreator {
|
|
private readonly textureManager: MockTextureManager;
|
|
|
|
constructor(textureManager: MockTextureManager) {
|
|
console.log("Mocking Phaser.GameObjects.GameObjectCreator;");
|
|
this.textureManager = textureManager;
|
|
}
|
|
|
|
graphics(config: any) {
|
|
return new MockGraphics(this.textureManager, config);
|
|
}
|
|
|
|
rexTransitionImagePack() {
|
|
return {
|
|
transit: () => null,
|
|
once: () => null,
|
|
};
|
|
}
|
|
}
|