avm2: Stub TimerEvent.updateAfterEvent

This is the last stub needed for Wonderputt to reach the
main game screen.

As far as I know, ActionScript cannot observe a frame being rendered,
so implementing this method isn't actually necessary for correctness.

The benefit of implementing this would be to make certain animations
appear smoother, since we'll render changes to the scene without
needing to wait for the next frame. However, actually rendering
*immediately* after the event would require some refactoring -
we have a `&mut UpdateContext` while running timers, but we'd need
to bail out and obtain a `&mut Player`.
This commit is contained in:
Aaron Hill 2022-08-12 00:35:35 -05:00 committed by Adrian Wielgosik
parent cebe11ee38
commit d6532c87c2
1 changed files with 4 additions and 0 deletions

View File

@ -6,5 +6,9 @@ package flash.events {
public function TimerEvent(type:String, bubbles:Boolean = false, cancelable:Boolean= false) {
super(type, bubbles, cancelable);
}
public function updateAfterEvent():void {
// TODO - determine when we should actually force a frame to be rendered.
}
}
}