Files
tower/ts/tile_factory.ts

18 lines
361 B
TypeScript
Raw Normal View History

2021-05-11 02:57:17 +00:00
import { Tile } from './tile.js';
2021-05-10 05:20:29 +00:00
2021-05-11 02:57:17 +00:00
export abstract class TileFactory {
layer_name: string;
2021-05-10 03:36:12 +00:00
width: number;
height: number;
2021-05-09 04:58:29 +00:00
constructor(layer_name: string, width: number, height: number) {
this.layer_name = layer_name;
2021-05-10 03:36:12 +00:00
this.width = width;
this.height = height;
2021-05-09 22:02:56 +00:00
}
2021-05-11 02:57:17 +00:00
abstract build(tileset: string): Tile;
2021-05-11 05:17:16 +00:00
abstract copy(): TileFactory;
2021-05-09 22:02:56 +00:00
}