-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. proto파일 추가 2. 프리티어 추가
- Loading branch information
Showing
6 changed files
with
90 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"singleQuote": true, | ||
"semi": true, | ||
"useTabs": false, | ||
"tabWidth": 2, | ||
"trailingComma": "all", | ||
"printWidth": 80, | ||
"arrowParens": "always", | ||
"orderedImports": true, | ||
"bracketSpacing": true, | ||
"jsxBracketSameLine": false | ||
} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
syntax = "proto3"; | ||
|
||
package auth; | ||
|
||
message C2S_ConnectGameRequest { | ||
uint32 playerId = 1; | ||
} | ||
|
||
message S2C_ConnectGameNotification { | ||
uint32 gameId = 1; | ||
InitGameData initGameData = 2; | ||
string status = 3; | ||
string message = 4; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
syntax = "proto3"; | ||
|
||
package common; | ||
|
||
message GamePacket { | ||
oneof payload { | ||
C2S_MoveRequest moveRequest = 1; | ||
S2C_MoveNotification moveNotification = 2; | ||
C2S_ConnectGameRequest connectGameRequest = 3; | ||
S2C_ConnectGameNotification connectGameNotification = 4; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
syntax = "proto3"; | ||
|
||
package gameData; | ||
|
||
message Position { | ||
float x = 1; | ||
float y = 2; | ||
float z = 3; | ||
} | ||
|
||
message Player { | ||
uint32 playerId = 1; | ||
Position position = 2; | ||
} | ||
|
||
message Ghost { | ||
uint32 ghostId = 1; | ||
Position position = 2; | ||
} | ||
|
||
message LocationUpdate { | ||
repeated GhostLocationData ghostLocations = 1; | ||
repeated PlayerLocationData playerLocations = 2; | ||
} | ||
|
||
message GhostLocationData { | ||
uint32 ghostId = 1; | ||
Position position = 2; | ||
} | ||
|
||
message PlayerLocationData { | ||
uint32 playerId = 1; | ||
Position position = 2; | ||
} | ||
|
||
message InitGameData { | ||
repeated Ghost ghosts = 1; | ||
repeated Player players = 2; | ||
Map mapId = 3; | ||
} | ||
|
||
message C2S_MoveRequest { | ||
uint32 playerId = 1; | ||
Position position = 2; | ||
} | ||
|
||
message S2C_MoveNotification { | ||
LocationUpdate locationUpdate = 2; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters