瀏覽代碼

enable update userinfo

王虎 3 年之前
父節點
當前提交
9c9c06a938
共有 3 個文件被更改,包括 14 次插入1 次删除
  1. 3 0
      README.md
  2. 10 0
      protos/user.proto
  3. 1 1
      protos/userinfo.proto

+ 3 - 0
README.md

@@ -49,6 +49,9 @@
 | 15 | ChatPush | s -> c | 推送聊天消息 |
 | 16 | SwitchWorldReques | c -> s | 发送切换世界请求 |
 | 17 | SwitchWorldResponse | s -> c | 服务器响应切换世界结果 |
+| 18 | UpdateUserinfoRequest | c -> s | 客户端更新用户信息 |
+| 19 | UpdateUserinfoResponse | s -> c | 服务器响应更新用户信息 |
+| 20 | UpdateUserinfoPush | s -> c | 服务器推送用户信息更新 |
 | 100 | LobbyJoinPush | s -> c | 用户加入大厅 |
 | 101 | LobbyLeavePush | s -> c | 用户离开大厅 |
 | 120 | RoomCreateRequest | c -> s | 客户端请求创建房间 |

+ 10 - 0
protos/user.proto

@@ -40,4 +40,14 @@ message LoginResponse {
     bool Master = 8;
     uint32 WorldID = 9;
     uint64 ServerID = 10;
+}
+
+message UpdateUserinfoRequest {
+    UserInfo UserInfo = 1;
+}
+message UpdateUserinfoResponse {
+    UserInfo UserInfo = 1;
+}
+message UpdateUserinfoPush {
+    UserInfo UserInfo = 1;
 }

+ 1 - 1
protos/userinfo.proto

@@ -12,5 +12,5 @@ message UserInfo{
     bool Ready = 7; // 用户状态 0=未准备; 1=已准备
     uint32 sit = 8; // 用户座位号 0 ~ n
     uint32 ping = 9; // 用户网络
-    uint32 frame= 10; // 用户头像框
+    uint32 Frame= 10; // 用户头像框
 }