mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-12-16 23:05:23 +01:00
* 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
23 lines
562 B
TypeScript
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;
|
|
};
|
|
}
|