Builds for
1 pipeline
passed
in
7 minutes 54 seconds
startRound에 닉네임 포함하여 전송
Showing
2 changed files
with
12 additions
and
2 deletions
... | @@ -112,6 +112,7 @@ interface ServerOutboundMessageMap { | ... | @@ -112,6 +112,7 @@ interface ServerOutboundMessageMap { |
112 | duration: number; | 112 | duration: number; |
113 | roles: { | 113 | roles: { |
114 | username: string; | 114 | username: string; |
115 | + nickname: string; | ||
115 | role: Role; | 116 | role: Role; |
116 | }[]; | 117 | }[]; |
117 | }; | 118 | }; | ... | ... |
... | @@ -259,13 +259,22 @@ export class Game { | ... | @@ -259,13 +259,22 @@ export class Game { |
259 | }); | 259 | }); |
260 | } | 260 | } |
261 | 261 | ||
262 | - private makeRoleArray(): { username: string; role: Role }[] { | 262 | + private makeRoleArray(): { |
263 | + username: string; | ||
264 | + nickname: string; | ||
265 | + role: Role; | ||
266 | + }[] { | ||
263 | let roleArray: { | 267 | let roleArray: { |
264 | username: string; | 268 | username: string; |
269 | + nickname: string; | ||
265 | role: Role; | 270 | role: Role; |
266 | }[] = []; | 271 | }[] = []; |
267 | this.roles.forEach((role, user) => | 272 | this.roles.forEach((role, user) => |
268 | - roleArray.push({ username: user.username, role: role }) | 273 | + roleArray.push({ |
274 | + username: user.username, | ||
275 | + nickname: user.nickname, | ||
276 | + role: role, | ||
277 | + }) | ||
269 | ); | 278 | ); |
270 | return roleArray; | 279 | return roleArray; |
271 | } | 280 | } | ... | ... |
-
Please register or login to post a comment