mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-10 09:29:25 +02:00
* Standardize filenames to kebab-case Co-authored-by: pymilkmaiden <cassiopeiamahler56@gmail.com> * Move script outside of public folder * Move update_exp_sprites to scripts * Add ls-lint to lint file and directory names * Update lefthook.yml to skip merge / rebase on all pre-commit commands --------- Co-authored-by: pymilkmaiden <cassiopeiamahler56@gmail.com>
23 lines
626 B
TypeScript
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,
|
|
};
|
|
}
|
|
}
|