mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-10 17:39:31 +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
585 B
TypeScript
23 lines
585 B
TypeScript
import type { MockGameObject } from "#test/test-utils/mocks/mock-game-object";
|
|
|
|
/** 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;
|
|
};
|
|
}
|