feat: add MapTemplate
This commit is contained in:
parent
4c89d53483
commit
735754af56
15
src/shattered_sword/Tools/DataTypes/MapTemplate.ts
Normal file
15
src/shattered_sword/Tools/DataTypes/MapTemplate.ts
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
export default class MapTemplate {
|
||||||
|
tilewidth: number;
|
||||||
|
tileheight: number;
|
||||||
|
entrance: RoomTemplate;
|
||||||
|
exit: RoomTemplate;
|
||||||
|
rooms: Array<RoomTemplate>;
|
||||||
|
}
|
||||||
|
|
||||||
|
export class RoomTemplate {
|
||||||
|
width: number;
|
||||||
|
height: number;
|
||||||
|
bottomLayer: Array<number>;
|
||||||
|
topLayer: Array<number>;
|
||||||
|
entrances: Array<[x: number, y: number]>
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user