pokerogue/test/testUtils/mocks/mockGameObjectCreator.ts
Sirz Benjie a51a504155
[Test] Move test folder out of src (#5398)
* move test folder

* Update vitest files

* rename test/utils to test/testUtils

* Remove stray utils/gameManager

Got put back from a rebase
2025-02-22 22:52:07 -06:00

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