From cf4e84320afd79b9a55bb124a8734ed4da2ae2e2 Mon Sep 17 00:00:00 2001 From: Renge Date: Sun, 3 Apr 2022 23:40:57 -0400 Subject: [PATCH] feat: add corners to MapTemplate --- src/shattered_sword/Tools/DataTypes/MapTemplate.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/shattered_sword/Tools/DataTypes/MapTemplate.ts b/src/shattered_sword/Tools/DataTypes/MapTemplate.ts index 83566cd..51287bc 100644 --- a/src/shattered_sword/Tools/DataTypes/MapTemplate.ts +++ b/src/shattered_sword/Tools/DataTypes/MapTemplate.ts @@ -13,9 +13,15 @@ export default class MapTemplate { // Replace with the relative path to the dist/ image: string; + // The start room entrance: RoomTemplate; + // The final room exit: RoomTemplate; rooms: Array; + // Tiles that will be used to fill four layers + corners?: [Corner, Corner, Corner, Corner]; + // Tile to fill all empty spaces between rooms + background: number; } export class Entrance { @@ -42,4 +48,12 @@ export class RoomTemplate { topLayer: Array; entrances: Array; enemies?: Array; +} + +export class Corner { + height: number; + width: number; + bottomLayer: Array; + topLayer: Array; + filler: Array; } \ No newline at end of file