From 6d86a8664b4c56fcf2b82080f70d9b2edd45d8e6 Mon Sep 17 00:00:00 2001 From: Renge Date: Sun, 3 Apr 2022 18:23:29 -0400 Subject: [PATCH] fix: add required properties to MapTemplate --- .../Scenes/Layers/StoryLayer.ts | 114 ------------------ .../Tools/DataTypes/MapTemplate.ts | 24 ++++ 2 files changed, 24 insertions(+), 114 deletions(-) delete mode 100644 src/shattered_sword/Scenes/Layers/StoryLayer.ts diff --git a/src/shattered_sword/Scenes/Layers/StoryLayer.ts b/src/shattered_sword/Scenes/Layers/StoryLayer.ts deleted file mode 100644 index 8055f10..0000000 --- a/src/shattered_sword/Scenes/Layers/StoryLayer.ts +++ /dev/null @@ -1,114 +0,0 @@ -// import Vec2 from "../../../Wolfie2D/DataTypes/Vec2"; -// import Sprite from "../../../Wolfie2D/Nodes/Sprites/Sprite"; -// import Label, { HAlign } from "../../../Wolfie2D/Nodes/UIElements/Label"; -// import { UIElementType } from "../../../Wolfie2D/Nodes/UIElements/UIElementTypes"; -// import Layer from "../../../Wolfie2D/Scene/Layer"; -// import Scene from "../../../Wolfie2D/Scene/Scene"; -// import Color from "../../../Wolfie2D/Utils/Color"; -// import Story from "../../Tools/DataTypes/Story"; -// import StorySceneTester from "../StorySceneTester"; - -// export default class StoryLayer extends Layer { -// private progress: number; -// private sprites: Array; -// private currentSpeaker: string; -// private currentContent: string; - - -// constructor(scene: Scene, name: string, story: Story) { -// super(scene, name); -// this.story = story; -// } - -// static async storyLayerFactory(scene: StorySceneTester, name: string, storyPath: string): Promise { -// const response = await (await fetch(storyPath)).json(); -// let instance = new StoryLayer(scene, name, response); -// instance.story.resources.forEach((resource) => { -// switch (resource.type) { -// case "image": -// instance.scene.load.image(resource.key, resource.path); -// break; -// case "spritesheet": -// instance.scene.load.spritesheet(resource.key, resource.path); -// break; -// case "audio": -// instance.scene.load.audio(resource.key, resource.path); -// break; -// default: -// break; -// } -// }) - -// instance.currentSpeaker = instance.story.texts[0].speaker; -// instance.currentContent = instance.story.texts[0].content; - -// instance.textLabel =