大修改
This commit is contained in:
@@ -3,5 +3,4 @@
|
||||
&ę"MultiThread*Addressable@<40>VH
|
||||
(ë"MultiThread*Gate2KCP8 ś@ŤVH
|
||||
ě"MultiThread*Game@—VH
|
||||
í"MultiThread*Game@ˇVH
|
||||
î"MultiThread*Chat@«VH
|
||||
Binary file not shown.
@@ -1 +1 @@
|
||||
{"WorksheetNames":[-8419147776733210060,-3495952183970875596,1720330851179383898,3730651590607244245],"Tables":{"-3495952183970875596":1753712105933,"-1088042625810372120":1753532052628,"1720330851179383898":1753711757684,"3730651590607244245":1753532052629,"5812538452563588342":1753532052630}}
|
||||
{"WorksheetNames":[-8419147776733210060,-3495952183970875596,1720330851179383898,5812538452563588342],"Tables":{"-3495952183970875596":1755183581501,"-1088042625810372120":1753532052628,"1720330851179383898":1753711757684,"3730651590607244245":1753532052629,"5812538452563588342":1753532052630}}
|
||||
@@ -3,6 +3,5 @@
|
||||
{"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":"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}
|
||||
]}
|
||||
|
||||
@@ -26,30 +26,30 @@ message Game2G_ExitResponse // IRouteResponse
|
||||
|
||||
|
||||
///通知游戏服角色进入该聊天服
|
||||
message G2Chat_EnterRequest // IRouteRequest,Chat2G_EnterResponse
|
||||
message G2S_EnterRequest // IRouteRequest,S2G_EnterResponse
|
||||
{
|
||||
RoleSimpleInfo Role = 1; //角色信息
|
||||
int64 GateRouteId = 2;//网关路由地址
|
||||
}
|
||||
|
||||
message Chat2G_EnterResponse // IRouteResponse
|
||||
message S2G_EnterResponse // IRouteResponse
|
||||
{
|
||||
int64 RoleRouteId = 1; //角色实体的路由id
|
||||
}
|
||||
|
||||
message G2Chat_ExitRequest // IRouteRequest,Chat2G_ExitResponse
|
||||
message G2S_ExitRequest // IRouteRequest,S2G_ExitResponse
|
||||
{
|
||||
int64 AccountId = 1; //账号id
|
||||
int64 GateRouteId = 2;//网关路由地址
|
||||
}
|
||||
|
||||
message Chat2G_ExitResponse // IRouteResponse
|
||||
message S2G_ExitResponse // IRouteResponse
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
message Chat2G_ChatMessage // IRouteMessage
|
||||
message S2G_ChatMessage // IRouteMessage
|
||||
{
|
||||
ChatMessageInfo Message = 1; //聊天内容
|
||||
repeated int64 IdList = 2; // 群发列表
|
||||
|
||||
@@ -1,98 +0,0 @@
|
||||
syntax = "proto3";
|
||||
package Fantasy.Network.Message;
|
||||
|
||||
///请求邮件列表
|
||||
message C2Game_GetMailsRequest // ICustomRouteRequest,Game2C_GetMailsResponse,GameRoute
|
||||
{
|
||||
|
||||
}
|
||||
///获取邮件列表响应
|
||||
message Game2C_GetMailsResponse // ICustomRouteResponse
|
||||
{
|
||||
repeated MailInfo Mail = 1;
|
||||
}
|
||||
|
||||
///新邮件推送
|
||||
message Game2C_HaveMail // ICustomRouteMessage,GameRoute
|
||||
{
|
||||
MailInfo Mail = 1;
|
||||
}
|
||||
|
||||
message Game2C_MailState // ICustomRouteMessage,GameRoute
|
||||
{
|
||||
int32 MailState = 1;
|
||||
int64 MailId = 2;
|
||||
}
|
||||
|
||||
|
||||
////////////// ******** 聊天 *******/////////////
|
||||
|
||||
///创建频道
|
||||
message C2Chat_CreateChannelRequest // ICustomRouteRequest,Caht2C_CreateChannelResponse,ChatRoute
|
||||
{
|
||||
string Name = 1; //频道名称
|
||||
}
|
||||
|
||||
///创建频道响应
|
||||
message Caht2C_CreateChannelResponse // ICustomRouteResponse
|
||||
{
|
||||
int64 ChannelId = 1; //创建的频道id
|
||||
}
|
||||
|
||||
///请求进入频道
|
||||
message C2Chat_JoinChannelRequest // ICustomRouteRequest,Caht2C_JoinChannelResponse,ChatRoute
|
||||
{
|
||||
int64 Target = 1; // 频道id
|
||||
}
|
||||
|
||||
///进入频道响应
|
||||
message Caht2C_JoinChannelResponse // ICustomRouteResponse
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
///发送聊天
|
||||
message C2Chat_SendMessageRequest // ICustomRouteRequest,Caht2C_SendMessageResponse,ChatRoute
|
||||
{
|
||||
int32 Type = 1; //消息类型 0.频道聊天 1.私聊
|
||||
string Message = 2;
|
||||
int64 Target = 3; //目标id,频道id或者好友id
|
||||
}
|
||||
|
||||
///发送聊天响应
|
||||
message Caht2C_SendMessageResponse // ICustomRouteResponse
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
///获取离线时的未读私聊
|
||||
message C2Chat_GetOfflineMessageRequest // ICustomRouteRequest,Caht2C_GetOfflineMessageResponse,ChatRoute
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
///发送聊天响应
|
||||
message Caht2C_GetOfflineMessageResponse // ICustomRouteResponse
|
||||
{
|
||||
repeated ChatMessageInfo Message = 1;
|
||||
}
|
||||
|
||||
///推送消息
|
||||
message Chat2C_Message // ICustomRouteMessage,ChatRoute
|
||||
{
|
||||
ChatMessageInfo Message = 1;
|
||||
}
|
||||
|
||||
|
||||
///获取聊天记录请求
|
||||
message C2Chat_GetChatRecordRequest // ICustomRouteRequest,Caht2C_GetChatRecordResponse,ChatRoute
|
||||
{
|
||||
int64 Target = 1; // 好友id或频道id
|
||||
int32 Type = 2; // 获取聊天记录类型 0.频道 1.好友
|
||||
}
|
||||
|
||||
///获取聊天记录响应
|
||||
message Caht2C_GetChatRecordResponse // ICustomRouteResponse
|
||||
{
|
||||
repeated ChatMessageInfo Messages = 1; //聊天记录
|
||||
}
|
||||
@@ -1,6 +1,122 @@
|
||||
syntax = "proto3";
|
||||
package Fantasy.Network.Message;
|
||||
|
||||
////////////// ******** 邮件 *******/////////////
|
||||
|
||||
///请求邮件列表
|
||||
message C2Game_GetMailsRequest // ICustomRouteRequest,Game2C_GetMailsResponse,GameRoute
|
||||
{
|
||||
|
||||
}
|
||||
///获取邮件列表响应
|
||||
message Game2C_GetMailsResponse // ICustomRouteResponse
|
||||
{
|
||||
repeated MailInfo Mail = 1;
|
||||
}
|
||||
|
||||
///新邮件推送
|
||||
message Game2C_HaveMail // ICustomRouteMessage,GameRoute
|
||||
{
|
||||
MailInfo Mail = 1;
|
||||
}
|
||||
|
||||
message Game2C_MailState // ICustomRouteMessage,GameRoute
|
||||
{
|
||||
int32 MailState = 1;
|
||||
int64 MailId = 2;
|
||||
}
|
||||
|
||||
////////////// ******** 聊天 *******/////////////
|
||||
message ChatUserInfo
|
||||
{
|
||||
int64 Id = 1;//用户id
|
||||
int64 Name = 2;//用户名
|
||||
}
|
||||
|
||||
message ChatMessageInfo
|
||||
{
|
||||
int32 Type = 1; //消息类型
|
||||
int64 Source = 2; //消息来源
|
||||
ChatUserInfo Trigger = 3; //触发者
|
||||
string Content = 4; //内容
|
||||
int64 SendTime = 5; //发送时间
|
||||
}
|
||||
|
||||
///创建频道
|
||||
message C2S_CreateChannelRequest // ICustomRouteRequest,S2C_CreateChannelResponse,SocialRoute
|
||||
{
|
||||
string Name = 1; //频道名称
|
||||
}
|
||||
|
||||
///创建频道响应
|
||||
message S2C_CreateChannelResponse // ICustomRouteResponse
|
||||
{
|
||||
int64 ChannelId = 1; //创建的频道id
|
||||
}
|
||||
|
||||
///请求进入频道
|
||||
message C2S_JoinChannelRequest // ICustomRouteRequest,S2C_JoinChannelResponse,SocialRoute
|
||||
{
|
||||
int64 Target = 1; // 频道id
|
||||
}
|
||||
|
||||
///进入频道响应
|
||||
message S2C_JoinChannelResponse // ICustomRouteResponse
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
///发送聊天
|
||||
message C2S_SendMessageRequest // ICustomRouteRequest,S2C_SendMessageResponse,SocialRoute
|
||||
{
|
||||
int32 Type = 1; //消息类型 0.频道聊天 1.私聊
|
||||
string Message = 2;
|
||||
int64 Target = 3; //目标id,频道id或者好友id
|
||||
}
|
||||
|
||||
///发送聊天响应
|
||||
message S2C_SendMessageResponse // ICustomRouteResponse
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
///发送聊天
|
||||
message C2S_GetOfflineMessageRequest // ICustomRouteRequest,S2C_GetOfflineMessageResponse,SocialRoute
|
||||
{
|
||||
int32 Type = 1; //消息类型 0.频道聊天 1.私聊
|
||||
string Message = 2;
|
||||
int64 Target = 3; //目标id,频道id或者好友id
|
||||
}
|
||||
|
||||
///发送聊天响应
|
||||
message S2C_GetOfflineMessageResponse // ICustomRouteResponse
|
||||
{
|
||||
repeated ChatMessageInfo Message = 1;
|
||||
}
|
||||
|
||||
///推送消息
|
||||
message S2C_Message // ICustomRouteMessage,SocialRoute
|
||||
{
|
||||
ChatMessageInfo Message = 1;
|
||||
}
|
||||
|
||||
|
||||
///获取聊天记录请求
|
||||
message C2S_GetChatRecordRequest // ICustomRouteRequest,S2C_GetChatRecordResponse,SocialRoute
|
||||
{
|
||||
int64 Target = 1; // 好友id或频道id
|
||||
int32 Type = 2; // 获取聊天记录类型 0.频道 1.好友
|
||||
}
|
||||
|
||||
///获取聊天记录响应
|
||||
message S2C_GetChatRecordResponse // ICustomRouteResponse
|
||||
{
|
||||
repeated ChatMessageInfo Messages = 1; //聊天记录
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
message ClubInfo
|
||||
{
|
||||
int64 Id = 1; //工会ID
|
||||
|
||||
@@ -1,14 +0,0 @@
|
||||
syntax = "proto3";
|
||||
package Fantasy.Network.Message;
|
||||
|
||||
/// 好友信息
|
||||
message FriendInfo
|
||||
{
|
||||
int64 Id = 1; //好友id
|
||||
int64 AddTime = 2; //添加时间
|
||||
string NickName = 3; //昵称
|
||||
string Head = 4; //头像
|
||||
int32 Level = 5; //等级
|
||||
string Country = 6; //国家
|
||||
int32 OnlineStatus = 7; //在线状态
|
||||
}
|
||||
@@ -1,16 +0,0 @@
|
||||
syntax = "proto3";
|
||||
package Fantasy.Network.Message;
|
||||
|
||||
message ChatUserInfo
|
||||
{
|
||||
int64 Id = 1;//用户id
|
||||
int64 Name = 2;//用户名
|
||||
}
|
||||
|
||||
message ChatMessageInfo
|
||||
{
|
||||
int32 Type = 1; //消息类型
|
||||
int64 Source = 2; //消息来源
|
||||
ChatUserInfo Trigger = 3; //触发者
|
||||
string Content = 4; //内容
|
||||
}
|
||||
@@ -1,5 +1,4 @@
|
||||
// Route协议定义(需要定义1000以上、因为1000以内的框架预留)
|
||||
GateRoute = 1001 // Gate
|
||||
ChatRoute = 1002 // Chat
|
||||
GameRoute = 1003 // Game
|
||||
SocialRoute = 1004 // Social
|
||||
SocialRoute = 1002 // Social
|
||||
GameRoute = 1003 // Game
|
||||
Reference in New Issue
Block a user