pokerogue/test/testUtils/mocks/mockGameObjectCreator.ts

23 lines
572 B
TypeScript
Raw Normal View History

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,
};
}
}