新增角色相关信息
This commit is contained in:
@@ -1,2 +1,13 @@
|
||||
syntax = "proto3";
|
||||
package Sining.Message;
|
||||
///通知游戏服角色进入该游戏服
|
||||
message G2Game_EnterRequest // IRouteRequest,Game2G_EnterResponse
|
||||
{
|
||||
int64 AccountId = 1; //账号id
|
||||
int64 GateRouteId = 2;//网关路由地址
|
||||
}
|
||||
|
||||
message Game2G_EnterResponse // IRouteResponse
|
||||
{
|
||||
int64 RoleRouteId = 1; //角色实体的路由id
|
||||
}
|
||||
19
Config/NetworkProtocol/Outer/OuterCommon.proto
Normal file
19
Config/NetworkProtocol/Outer/OuterCommon.proto
Normal file
@@ -0,0 +1,19 @@
|
||||
syntax = "proto3";
|
||||
package Fantasy.Network.Message;
|
||||
|
||||
/// GameAccount实体类
|
||||
message RoleBaseInfo
|
||||
{
|
||||
string NickName = 1;//昵称
|
||||
string Head = 2;//头像
|
||||
string Country = 3;//国家
|
||||
int32 Level = 4;//等级
|
||||
int32 Exp = 5;//当前等级
|
||||
}
|
||||
|
||||
///角色信息
|
||||
message RoleInfo
|
||||
{
|
||||
RoleBaseInfo BaseInfo = 1;
|
||||
int64 RoleId = 2; //账号id
|
||||
}
|
||||
@@ -37,12 +37,15 @@ message GameAccountInfo
|
||||
int64 CreateTime = 1;
|
||||
int64 LoginTime = 2;
|
||||
}
|
||||
/// 拿到当前账号的信息
|
||||
message C2G_GetAccountInfoRequest // IRequest,G2C_GetAccountInfoResponse
|
||||
|
||||
|
||||
message C2Game_GetRoleInfoRequest // ICustomRouteRequest,Game2C_GetRoleInfoResponse,GameRoute
|
||||
{
|
||||
|
||||
}
|
||||
message G2C_GetAccountInfoResponse // IResponse
|
||||
|
||||
message Game2C_GetRoleInfoResponse // ICustomRouteResponse
|
||||
{
|
||||
GameAccountInfo GameAccountInfo = 1;
|
||||
string Name;
|
||||
string RoleId;
|
||||
}
|
||||
@@ -1,3 +1,4 @@
|
||||
// Route协议定义(需要定义1000以上、因为1000以内的框架预留)
|
||||
GateRoute = 1001 // Gate
|
||||
ChatRoute = 1002 // Chat
|
||||
ChatRoute = 1002 // Chat
|
||||
GameRoute = 1003 // Game
|
||||
Reference in New Issue
Block a user