Files
tower/js/tile_factory.js

19 lines
442 B
JavaScript
Raw Permalink Normal View History

2021-05-11 02:21:23 +00:00
export class TileFactory {
constructor(layer_name, width, height) {
2021-05-17 04:26:18 +00:00
this.masks = new Map();
this.layer_name = layer_name;
2021-05-10 03:36:12 +00:00
this.width = width;
this.height = height;
2021-05-10 05:20:29 +00:00
}
2021-05-17 04:26:18 +00:00
add_mask(name, mask) {
this.masks.set(name, mask);
}
tile_args() {
return [
this.width,
this.height,
this.masks,
];
}
2021-05-09 22:02:56 +00:00
}
2021-05-11 02:21:23 +00:00
//# sourceMappingURL=tile_factory.js.map