mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-03-09 11:31:49 +00:00
24 lines
590 B
TypeScript
24 lines
590 B
TypeScript
|
import { vi } from "vitest";
|
||
|
import MockGraphics from "./mocksContainer/mockGraphics";
|
||
|
import 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: vi.fn(),
|
||
|
once: vi.fn(),
|
||
|
};
|
||
|
}
|
||
|
}
|