Toggle navigation
Toggle navigation
This project
Loading...
Sign in
강동현
/
nodejs-game
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
강동현
2021-06-10 05:23:51 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
be79db9e98e4333079ece9eb9d72817955286a02
be79db9e
1 parent
13062517
Builds for 1 pipeline
passed
in 7 minutes 54 seconds
startRound에 닉네임 포함하여 전송
Changes
2
Builds
3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
common/message.ts
server/game/Game.ts
common/message.ts
View file @
be79db9
...
...
@@ -112,6 +112,7 @@ interface ServerOutboundMessageMap {
duration
:
number
;
roles
:
{
username
:
string
;
nickname
:
string
;
role
:
Role
;
}[];
};
...
...
server/game/Game.ts
View file @
be79db9
...
...
@@ -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
;
}
...
...
Please
register
or
login
to post a comment