강동현
Builds for 1 pipeline passed in 7 minutes 54 seconds

startRound에 닉네임 포함하여 전송

......@@ -112,6 +112,7 @@ interface ServerOutboundMessageMap {
duration: number;
roles: {
username: string;
nickname: string;
role: Role;
}[];
};
......
......@@ -259,13 +259,22 @@ export class Game {
});
}
private makeRoleArray(): { username: string; role: Role }[] {
private makeRoleArray(): {
username: string;
nickname: string;
role: Role;
}[] {
let roleArray: {
username: string;
nickname: string;
role: Role;
}[] = [];
this.roles.forEach((role, user) =>
roleArray.push({ username: user.username, role: role })
roleArray.push({
username: user.username,
nickname: user.nickname,
role: role,
})
);
return roleArray;
}
......