Create onFinish Animation hook

This commit is contained in:
2021-03-21 10:58:11 +01:00
parent 11664d809a
commit 83c2bff771
4 changed files with 13 additions and 0 deletions

View File

@@ -30,6 +30,8 @@ public interface Animation extends Placeable, Movable, Renderable, Updatable {
void onAdd(Layer layer);
void onFinish(Layer layer);
void finish();
boolean finished();

View File

@@ -174,6 +174,11 @@ public abstract class AnimationDelegate implements Animation {
animation.onAdd(layer);
}
@Override
public void onFinish(Layer layer) {
animation.onFinish(layer);
}
@Override
public void finish() {
animation.finish();