|
|
@@ -1,7 +1,6 @@
|
|
|
syntax="proto3";
|
|
|
package protos;
|
|
|
|
|
|
-//import "structs.proto";
|
|
|
import "enums.proto";
|
|
|
|
|
|
/// 逻辑服务器之外(大厅,对应进程 tajmahal )的到客户端的协议
|
|
|
@@ -35,15 +34,15 @@ message S_Login {
|
|
|
int32 headerIcon = 2;
|
|
|
string remoteIP = 3;
|
|
|
int32 level = 4;
|
|
|
- string username = 5;
|
|
|
+ string username = 5; // 手机号或邮箱
|
|
|
int64 birthday = 6;
|
|
|
int32 gender = 7;
|
|
|
int64 score = 8;
|
|
|
string curTitle = 9; // 当前使用称号
|
|
|
map<string, int64> balances = 12; // 币,数量
|
|
|
map<string, string> wallets = 14; // 钱包地址
|
|
|
- string verServer = 16;
|
|
|
- string verClient = 18;
|
|
|
+ string verServer = 16; // 服务端当前版本号
|
|
|
+ string verClient = 18; // 客户端最新版本号
|
|
|
int32 lang = 20; // 语言
|
|
|
int32 volBg = 21; // 背景音量
|
|
|
int32 volFg = 22; // 前景音量
|
|
|
@@ -88,33 +87,42 @@ message S_Logout {
|
|
|
|
|
|
/// 进入游戏场景
|
|
|
message C_EnterGame {
|
|
|
- int64 gameId = 1;
|
|
|
+ uint64 gameId = 1;
|
|
|
}
|
|
|
|
|
|
message S_EnterGame {
|
|
|
- int64 gameId = 1;
|
|
|
+ uint64 gameId = 1;
|
|
|
+ uint64 roomId = 4; // 副本类游戏表示副本ID
|
|
|
}
|
|
|
|
|
|
|
|
|
/// 离开游戏
|
|
|
message C_LeaveGame {
|
|
|
- int32 gameId = 1;
|
|
|
+ uint32 gameId = 1;
|
|
|
+ uint64 roomId = 4;
|
|
|
}
|
|
|
|
|
|
message S_LeaveGame {
|
|
|
- int64 gameId = 1;
|
|
|
+ uint64 gameId = 1;
|
|
|
+ uint64 roomId = 4;
|
|
|
}
|
|
|
|
|
|
|
|
|
/// 用户信息设置
|
|
|
message C_UserInfo {
|
|
|
- string nickname = 1;
|
|
|
- int64 birthday = 2;
|
|
|
+ string nickname = 1;
|
|
|
+ int64 birthday = 2;
|
|
|
+ int32 headerIcon = 3;
|
|
|
+ int32 gender = 4;
|
|
|
+ map<string, string> walletsAddrs = 8; // 钱包地址
|
|
|
}
|
|
|
|
|
|
message S_UserInfo {
|
|
|
- string nickname = 1;
|
|
|
- int64 birthday = 2;
|
|
|
+ string nickname = 1;
|
|
|
+ int64 birthday = 2;
|
|
|
+ int32 headerIcon = 3;
|
|
|
+ int32 gender = 4;
|
|
|
+ map<string, string> walletsAddrs = 8;
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -122,13 +130,13 @@ message S_UserInfo {
|
|
|
message C_Settings {
|
|
|
int32 bgVolume = 1;
|
|
|
int32 fgVolume = 2;
|
|
|
- string lang = 3;
|
|
|
+ int32 lang = 3;
|
|
|
}
|
|
|
|
|
|
message S_Settings {
|
|
|
int32 bgVolume = 1;
|
|
|
int32 fgVolume = 2;
|
|
|
- string lang = 3;
|
|
|
+ int32 lang = 3;
|
|
|
}
|
|
|
|
|
|
|