新增角色相关信息

This commit is contained in:
2025-07-28 23:45:46 +08:00
parent be33e12b35
commit 09bbae66d2
68 changed files with 452 additions and 662 deletions

View File

@@ -2,6 +2,6 @@
/é" MultiThread* Addressable2KCP8ˇś@ůUH
&ę" MultiThread* Addressable@<40>VH
(ë" MultiThread*Gate2KCP8 ś@ŤVH
ě" MultiThread*Map@—VH
í" MultiThread*Map@ˇVH
ě" MultiThread*Game@—VH
í" MultiThread*Game@ˇVH
î" MultiThread*Chat@«VH

View File

@@ -1,2 +1,2 @@
$ 测试服" fantasy_main*MongoDB
9 测试服mongodb://127.0.0.1" fantasy_main*MongoDB

Binary file not shown.

Binary file not shown.

View File

@@ -1 +1 @@
{"WorksheetNames":[-8419147776733210060,-3495952183970875596,1720330851179383898,3730651590607244245],"Tables":{"-3495952183970875596":1753598025078,"-1088042625810372120":1753532052628,"1720330851179383898":1753532052630,"3730651590607244245":1753532052629,"5812538452563588342":1753532052630}}
{"WorksheetNames":[-8419147776733210060,-3495952183970875596,1720330851179383898,3730651590607244245],"Tables":{"-3495952183970875596":1753712105933,"-1088042625810372120":1753532052628,"1720330851179383898":1753711757684,"3730651590607244245":1753532052629,"5812538452563588342":1753532052630}}

View File

@@ -2,7 +2,7 @@
{"Id":1001,"ProcessConfigId":1,"WorldConfigId":1,"SceneRuntimeMode":"MultiThread","SceneTypeString":"Addressable","NetworkProtocol":"KCP","OuterPort":20001,"InnerPort":11001,"SceneType":1},
{"Id":1002,"ProcessConfigId":1,"WorldConfigId":1,"SceneRuntimeMode":"MultiThread","SceneTypeString":"Addressable","NetworkProtocol":null,"OuterPort":0,"InnerPort":11011,"SceneType":2},
{"Id":1003,"ProcessConfigId":1,"WorldConfigId":1,"SceneRuntimeMode":"MultiThread","SceneTypeString":"Gate","NetworkProtocol":"KCP","OuterPort":20000,"InnerPort":11021,"SceneType":3},
{"Id":1004,"ProcessConfigId":1,"WorldConfigId":1,"SceneRuntimeMode":"MultiThread","SceneTypeString":"Map","NetworkProtocol":null,"OuterPort":0,"InnerPort":11031,"SceneType":5},
{"Id":1005,"ProcessConfigId":1,"WorldConfigId":1,"SceneRuntimeMode":"MultiThread","SceneTypeString":"Map","NetworkProtocol":null,"OuterPort":0,"InnerPort":11041,"SceneType":5},
{"Id":1004,"ProcessConfigId":1,"WorldConfigId":1,"SceneRuntimeMode":"MultiThread","SceneTypeString":"Game","NetworkProtocol":null,"OuterPort":0,"InnerPort":11031,"SceneType":4},
{"Id":1005,"ProcessConfigId":1,"WorldConfigId":1,"SceneRuntimeMode":"MultiThread","SceneTypeString":"Game","NetworkProtocol":null,"OuterPort":0,"InnerPort":11041,"SceneType":4},
{"Id":1006,"ProcessConfigId":1,"WorldConfigId":1,"SceneRuntimeMode":"MultiThread","SceneTypeString":"Chat","NetworkProtocol":null,"OuterPort":0,"InnerPort":11051,"SceneType":8}
]}

View File

@@ -1,3 +1,3 @@
{"List":[
{"Id":1,"WorldName":"测试服","DbConnection":null,"DbName":"fantasy_main","DbType":"MongoDB"}
{"Id":1,"WorldName":"测试服","DbConnection":"mongodb://127.0.0.1","DbName":"fantasy_main","DbType":"MongoDB"}
]}

View File

@@ -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
}

View 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
}

View File

@@ -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;
}

View File

@@ -1,3 +1,4 @@
// Route协议定义(需要定义1000以上、因为1000以内的框架预留)
GateRoute = 1001 // Gate
ChatRoute = 1002 // Chat
ChatRoute = 1002 // Chat
GameRoute = 1003 // Game