Factor out AnimatableTile{Factory}
This commit is contained in:
11
js/animatable_tile_factory.js
Normal file
11
js/animatable_tile_factory.js
Normal 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
|
||||
Reference in New Issue
Block a user