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-01 22:53:15 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
7105d3860650697902a3eba8db3673322732b8bb
7105d386
1 parent
6f226aa2
Role 타입 추가, startRound에서 roles를 배열로 변경
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
common/message.ts
common/message.ts
View file @
7105d38
import
{
RoomDescription
,
RoomInfo
}
from
"./dataType"
;
import
{
Ro
le
,
Ro
omDescription
,
RoomInfo
}
from
"./dataType"
;
// 서버로 들어오는 메세지 타입을 정의합니다.
// 'result' 속성은 서버 요청 결과에만 포함되는 특별한 속성입니다.
...
...
@@ -68,8 +68,8 @@ interface ServerOutboundMessageMap {
duration
:
number
;
roles
:
{
username
:
string
;
role
:
"drawer"
|
"guesser"
|
"winner"
|
"spectator"
;
};
role
:
Role
;
}
[]
;
};
// drawer에게 선택할 수 있는 단어가 주어졌습니다.
...
...
@@ -96,7 +96,7 @@ interface ServerOutboundMessageMap {
// 역할이 변경되었습니다.
role
:
{
username
:
string
;
role
:
"drawer"
|
"guesser"
|
"winner"
|
"spectator"
;
role
:
Role
;
};
// 보낸 단어가 정답 처리 되었습니다.
...
...
Please
register
or
login
to post a comment