Revert "WIP enable/disable tutorial according to the map 'tutorial' property"

This reverts commit 47a6710b60e3856bf57c0700fe33bec95c6fc6dd.
This commit is contained in:
Benedicte Quimbert 2022-01-03 11:22:01 +01:00
parent 8157ee4603
commit ac27ab7e3e
2 changed files with 0 additions and 9 deletions

View File

@ -31,7 +31,6 @@ export enum GameMapProperties {
SILENT = "silent", SILENT = "silent",
START = "start", START = "start",
START_LAYER = "startLayer", START_LAYER = "startLayer",
TUTORIAL = "tutorial",
URL = "url", URL = "url",
WRITABLE_BY = "writableBy", WRITABLE_BY = "writableBy",
ZONE = "zone", ZONE = "zone",

View File

@ -603,10 +603,6 @@ export class GameScene extends DirtyScene {
for (const script of scripts) { for (const script of scripts) {
scriptPromises.push(iframeListener.registerScript(script)); scriptPromises.push(iframeListener.registerScript(script));
} }
if (this.isTutorialEnabled()) {
//TODO: split tutorial and bundle scripts
scriptPromises.push(iframeListener.registerScript(new URL("bundle.js", this.MapUrlFile).toString()));
}
this.userInputManager.spaceEvent(() => { this.userInputManager.spaceEvent(() => {
this.outlinedItem?.activate(); this.outlinedItem?.activate();
@ -1572,10 +1568,6 @@ ${escapedMessage}
); );
} }
private isTutorialEnabled(): boolean {
return this.getProperty(this.mapFile, GameMapProperties.TUTORIAL) as boolean;
}
private getProperty(layer: ITiledMapLayer | ITiledMap, name: string): string | boolean | number | undefined { private getProperty(layer: ITiledMapLayer | ITiledMap, name: string): string | boolean | number | undefined {
const properties: ITiledMapProperty[] | undefined = layer.properties; const properties: ITiledMapProperty[] | undefined = layer.properties;
if (!properties) { if (!properties) {