Skip to content

Commit

Permalink
MMO游戏-同步上线玩家的协议
Browse files Browse the repository at this point in the history
  • Loading branch information
bailuoxi66 committed Jul 21, 2022
1 parent df6b0dc commit 2bccd5e
Show file tree
Hide file tree
Showing 2 changed files with 163 additions and 14 deletions.
166 changes: 152 additions & 14 deletions demo_mmo_game_zinx/pb/msg.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions demo_mmo_game_zinx/pb/msg.proto
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,15 @@ message BroadCast{
// 世界聊天
message Talk{
string Content=1;
}

// 同步玩家的显示数据
message SyncPlayers{
repeated Player ps = 1;
}

// 玩家信息
message Player{
int32 Pid = 1;
Position P = 2;
}

0 comments on commit 2bccd5e

Please sign in to comment.