Factor out AnimatableTile{Factory}

This commit is contained in:
Ian Gulliver
2021-05-11 05:28:20 +00:00
parent 4e65819183
commit 8f76317ccc
16 changed files with 80 additions and 51 deletions

View File

@@ -0,0 +1,11 @@
import { TileFactory } from './tile_factory.js';
export class AnimatableTileFactory extends TileFactory {
constructor() {
super(...arguments);
this.animations = new Map();
}
add_animation(name, keyframes, options) {
this.animations.set(name, [keyframes, options]);
}
}
//# sourceMappingURL=animatable_tile_factory.js.map