pokerogue/test/test-utils/mocks/mock-game-object-creator.ts

23 lines
626 B
TypeScript

import type { MockTextureManager } from "#test/test-utils/mocks/mock-texture-manager";
import { MockGraphics } from "#test/test-utils/mocks/mocks-container/mock-graphics";
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,
};
}
}