Skip to content

Commit

Permalink
chore: api에 맞게 인터페이스 이름 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
mssak committed Dec 4, 2024
1 parent ccf55e6 commit 08de193
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/backend/gameserver/src/game/types/game.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export interface IGameState {
};
}

export interface IStartGameResponse {
export interface Istart_game_success {
userSpecificData: {
[userId: string]: {
isPinoco: boolean;
Expand Down
6 changes: 3 additions & 3 deletions packages/backend/gameserver/src/gateway/gateway.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { GameService } from '../game/game.service';
import {
IGameState,
GamePhase,
IStartGameResponse,
Istart_game_success,
Istart_speaking,
Ireceive_vote_result,
Istart_guessing,
Expand Down Expand Up @@ -114,9 +114,9 @@ export class GatewayService {
};
}

startGame(gsid: string, userId: string): IStartGameResponse {
startGame(gsid: string, userId: string): Istart_game_success {
const gameState = this.gameService.startGame(gsid);
const userSpecificData: IStartGameResponse['userSpecificData'] = {};
const userSpecificData: Istart_game_success['userSpecificData'] = {};

Array.from(gameState.userIds).forEach((uid) => {
const isPinoco = gameState.pinocoId === uid;
Expand Down

0 comments on commit 08de193

Please sign in to comment.