This commit is contained in:
aozhiwei 2024-03-11 18:02:17 +08:00
parent 4fd19bb889
commit 320df05ece
2 changed files with 50 additions and 0 deletions

View File

@ -31,4 +31,6 @@ enum SMMessageId_e
_SMCancel = 112;
_SMSetReady = 113;
_SMGrantInvitePermission = 114;
_SMTeamUpdateNotify = 1001;
}

View File

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