2024-07-29 21:28:43 -07:00
|
|
|
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 {
|
2024-09-11 13:54:42 -07:00
|
|
|
transit: () => null,
|
|
|
|
once: () => null,
|
2024-07-29 21:28:43 -07:00
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|