pokerogue/test/testUtils/mocks/mockVideoGameObject.ts
Sirz Benjie 9fd79edcb2
[Refactor] Refactor evo phase (#5735)
* Cleanup evolution phase

* Update evolution phase and types

* Refactor form change phase

* Simplify game-speed.ts and update evo phase

* Move delay in formChangePhase to first element

* Fix mock video object return methods

* Fix tween chain mock

* Add todo comment to mock phaser's tween manager

* Remove jarring flash when evolution begins

* Fix missing method chaining in evo phase

* Apply biome formatting
2025-06-22 18:11:38 -07:00

23 lines
562 B
TypeScript

import type { MockGameObject } from "./mockGameObject";
/** Mocks video-related stuff */
export class MockVideoGameObject implements MockGameObject {
public name: string;
public active = true;
public play = () => this;
public stop = () => this;
public setOrigin = () => this;
public setScale = () => this;
public setVisible = () => this;
public setLoop = () => this;
public setName = (name: string) => {
this.name = name;
return this;
};
public setActive = (active: boolean) => {
this.active = active;
return this;
};
}