Files
tower/js/animatable_tile_factory.js
2021-05-17 04:26:18 +00:00

17 lines
486 B
JavaScript

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]);
}
animatable_tile_args() {
return [
...super.tile_args(),
this.animations,
];
}
}
//# sourceMappingURL=animatable_tile_factory.js.map