mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-06-21 09:02:47 +02:00
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;
|
|
};
|
|
}
|