Skip to content

Commit

Permalink
Update gamehub models to accommodate api changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
sei-bstein committed Oct 27, 2023
1 parent fcb874b commit e3ade29
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,9 @@ <h2>Building challenges...</h2>
</div>

<div class="step-container full-width my-4">
<h2>Deploying gamespaces...</h2>
<app-progress-bar
[percentage]="state.gamespacesDeployed.length | numbersToPercentage:state.gamespacesTotal"></app-progress-bar>
</div>

<div class="step-container full-width my-4" *ngIf="state.gamespaceIdsStarted">
<h2>Starting gamespaces...</h2>
<app-progress-bar
[percentage]="state.gamespaceIdsStarted.length| numbersToPercentage:state.gamespacesTotal"></app-progress-bar>
[percentage]="state.gamespacesStarted.length | numbersToPercentage:state.gamespacesTotal"></app-progress-bar>
</div>
</ng-container>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export class GameStartPageComponent implements OnInit {
}

if (ctx.game.mode == GameEngineMode.External) {
this.log.logInfo("Wiring up game hub external game event listeners...", ctx)
this.log.logInfo("Wiring up game hub external game event listeners...", ctx);
this.unsub.add(this.gameHub.externalGameLaunchStarted$.subscribe(state => this.updateGameStartState.bind(this)(state)));
this.unsub.add(this.gameHub.externalGameLaunchProgressChanged$.subscribe(state => this.updateGameStartState.bind(this)(state)));
this.unsub.add(this.gameHub.externalGameLaunchFailure$.subscribe(state => this.errors.push(state.error)));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ export interface GameStartState {
game: SimpleEntity;
challengesCreated: GameStartStateChallenge[];
challengesTotal: number;
gamespacesDeployed: GameState[];
gamespaceIdsStarted?: string[];
gamespacesStarted: GameState[];
gamespacesTotal: number;
players: GameStartStatePlayer[];
teams: GameStartStateTeam[];
Expand Down

0 comments on commit e3ade29

Please sign in to comment.