mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-06-21 00:52:47 +02:00
Fix tween chain mock
This commit is contained in:
parent
df361accd7
commit
4934a9e357
@ -124,13 +124,17 @@ export default class GameWrapper {
|
||||
|
||||
this.scene.tweens = {
|
||||
add: data => {
|
||||
if (data.onComplete) {
|
||||
data.onComplete();
|
||||
}
|
||||
// TODO: our mock of `add` should have the same signature as the real one, which returns the tween
|
||||
data.onComplete?.();
|
||||
},
|
||||
getTweensOf: () => [],
|
||||
killTweensOf: () => [],
|
||||
chain: () => null,
|
||||
|
||||
chain: data => {
|
||||
// TODO: our mock of `chain` should have the same signature as the real one, which returns the chain
|
||||
data?.tweens?.forEach(tween => tween.onComplete?.());
|
||||
data.onComplete?.();
|
||||
},
|
||||
addCounter: data => {
|
||||
if (data.onComplete) {
|
||||
data.onComplete();
|
||||
|
Loading…
Reference in New Issue
Block a user