added select companion scene
This commit is contained in:
parent
4cfce15695
commit
52303c0bd6
5 changed files with 271 additions and 9 deletions
|
@ -5,6 +5,7 @@ import {MenuScene, MenuSceneName} from "../Menu/MenuScene";
|
|||
import {HelpCameraSettingsScene, HelpCameraSettingsSceneName} from "../Menu/HelpCameraSettingsScene";
|
||||
import {LoginSceneName} from "../Login/LoginScene";
|
||||
import {SelectCharacterSceneName} from "../Login/SelectCharacterScene";
|
||||
import {SelectCompanionSceneName} from "../Login/SelectCompanionScene";
|
||||
import {EnableCameraSceneName} from "../Login/EnableCameraScene";
|
||||
import {localUserStore} from "../../Connexion/LocalUserStore";
|
||||
|
||||
|
@ -39,6 +40,8 @@ export class GameManager {
|
|||
return LoginSceneName;
|
||||
} else if (!this.characterLayers) {
|
||||
return SelectCharacterSceneName;
|
||||
} else if (!localUserStore.wasCompanionSet()) {
|
||||
return SelectCompanionSceneName;
|
||||
} else {
|
||||
return EnableCameraSceneName;
|
||||
}
|
||||
|
@ -65,6 +68,11 @@ export class GameManager {
|
|||
return this.characterLayers;
|
||||
}
|
||||
|
||||
|
||||
setCompanion(companion: string|null): void {
|
||||
this.companion = companion;
|
||||
}
|
||||
|
||||
getCompanion(): string|null {
|
||||
return this.companion;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue