Files
tower/js/animatable_tile_factory.js

17 lines
486 B
JavaScript
Raw Permalink Normal View History

2021-05-11 05:28:20 +00:00
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]);
}
2021-05-17 04:26:18 +00:00
animatable_tile_args() {
return [
...super.tile_args(),
this.animations,
];
}
2021-05-11 05:28:20 +00:00
}
//# sourceMappingURL=animatable_tile_factory.js.map