Renaming /maps to /start-map

Closes #90
This commit is contained in:
David Négrier 2020-05-24 22:53:10 +02:00
parent cd7763770e
commit cd586a9e0c
4 changed files with 9 additions and 9 deletions

View file

@ -54,8 +54,8 @@ export class GameManager {
});
}
loadMaps(){
return this.ConnexionInstance.loadMaps().then((data) => {
loadStartMap(){
return this.ConnexionInstance.loadStartMap().then((data) => {
return data;
}).catch((err) => {
throw err;

View file

@ -101,7 +101,7 @@ export class LogincScene extends Phaser.Scene {
return mapUrl;
} else {
// If we do not have a map address in the URL, let's ask the server for a start map.
return gameManager.loadMaps().then((scene : any) => {
return gameManager.loadStartMap().then((scene : any) => {
if (!scene) {
return;
}