2021-05-11 02:21:23 +00:00
|
|
|
export class TileFactory {
|
2021-05-11 03:23:28 +00:00
|
|
|
constructor(layer_name, width, height) {
|
2021-05-17 04:26:18 +00:00
|
|
|
this.masks = new Map();
|
2021-05-11 03:23:28 +00:00
|
|
|
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
|