diff --git a/server/matchserver/proto/cs_msgid.proto b/server/matchserver/proto/cs_msgid.proto index 80be07b1..192f17ee 100644 --- a/server/matchserver/proto/cs_msgid.proto +++ b/server/matchserver/proto/cs_msgid.proto @@ -31,4 +31,6 @@ enum SMMessageId_e _SMCancel = 112; _SMSetReady = 113; _SMGrantInvitePermission = 114; + + _SMTeamUpdateNotify = 1001; } diff --git a/server/matchserver/proto/cs_proto.proto b/server/matchserver/proto/cs_proto.proto index 5c5a43c6..2592c3a6 100644 --- a/server/matchserver/proto/cs_proto.proto +++ b/server/matchserver/proto/cs_proto.proto @@ -1,6 +1,8 @@ syntax = "proto2"; package cs; option go_package = ".;cs"; +//用来指定出生的lua模块名, lua_package不支持!!! +option java_package = "match_proto_pb"; /* 约定: @@ -102,6 +104,27 @@ message MFJoinTeamParams optional string team_uuid = 1; //队伍唯一id } +//英雄信息 +message MFHero +{ + optional int32 hero_id = 1; //英雄id + optional int32 quality = 2; //英雄品阶 +} + +//队伍成员 +message MFTeamMember +{ + optional string account_id = 1; //账号id + optional string name = 2; //昵称 + optional int32 is_leader = 3; //是否队长 + optional int32 spec_skill = 4; //召唤师技能id + optional MFHero hero = 5; //英雄信息 + optional int32 state = 6; //状态 1: free 2:battling + optional int32 online = 7; //是否在线 + optional int32 permission = 8; //是否有邀请权限 + optional int32 is_ready = 9; //是否已准备 +} + //登录 message CMLogin { @@ -152,11 +175,15 @@ message CMLeaveTeam message SMLeaveTeam { + optional int32 errcode = 1; //错误码 0:成功 + optional string errmsg = 2; //错误描述 } //解散队伍 message CMDisbandTeam { + optional int32 errcode = 1; //错误码 0:成功 + optional string errmsg = 2; //错误描述 } message SMDisbandTeam @@ -166,19 +193,25 @@ message SMDisbandTeam //踢人 message CMKickOut { + optional string target_id = 1; //目标account_id } message SMKickOut { + optional int32 errcode = 1; //错误码 0:成功 + optional string errmsg = 2; //错误描述 } //转移队长 message CMHandoverLeader { + optional string target_id = 1; //目标account_id } message SMHandoverLeader { + optional int32 errcode = 1; //错误码 0:成功 + optional string errmsg = 2; //错误描述 } //开始游戏 @@ -188,6 +221,8 @@ message CMStartGame message SMStartGame { + optional int32 errcode = 1; //错误码 0:成功 + optional string errmsg = 2; //错误描述 } //取消开始游戏 @@ -197,6 +232,8 @@ message CMCancel message SMCancel { + optional int32 errcode = 1; //错误码 0:成功 + optional string errmsg = 2; //错误描述 } //设置状态为已准备 @@ -206,13 +243,24 @@ message CMSetReady message SMSetReady { + optional int32 errcode = 1; //错误码 0:成功 + optional string errmsg = 2; //错误描述 } //授予邀请队友权限 message CMGrantInvitePermission { + optional string target_id = 1; //目标account_id } message SMGrantInvitePermission { + optional int32 errcode = 1; //错误码 0:成功 + optional string errmsg = 2; //错误描述 +} + +//队伍信息更新通知 +message SMTeamUpdateNotify +{ + repeated MFTeamMember members = 1; //成员信息 }