diff --git a/protos/ArenaInfoProto.proto b/protos/ArenaInfoProto.proto index d34ae1f..f84f598 100644 --- a/protos/ArenaInfoProto.proto +++ b/protos/ArenaInfoProto.proto @@ -25,7 +25,7 @@ import "CommonProto.proto"; optional int32 myScoreChange = 1 ; //我的分数变化值 optional int32 defScoreChange =2; // 对手分数变化值 repeated ArenaEnemy arenaEnemys = 3; //新的一批对手信息 - optional FightData fightData =4; // 战斗数据 + optional FightData fightData =4; // 战斗数据 optional int32 fightResult = 5 ;// 战斗结果 optional Drop drop = 6; } @@ -149,10 +149,10 @@ import "CommonProto.proto"; } //玉虚论道面板数据 message CrossYuXuLunDaoGetInfoRequest{ - optional int32 type = 1; //0:红点数据请求 1:正常请求 + optional int32 type = 1; //0:红点数据请求 1:正常请求 } message CrossYuXuLunDaoGetInfoResponse{ - optional bool isFirst= 1;//是否赛季第一次请求 + optional bool isFirst= 1;//是否赛季第一次请求 repeated ArenaPersonInfo arenaEnemys = 2; //新的一批对手信息 optional int32 oldMyscore = 3; //被挑战前积分 optional int32 newMyscore = 4; //被挑战后积分 @@ -160,18 +160,18 @@ import "CommonProto.proto"; optional int32 newLevelId = 6; //被挑战后段位 optional int32 myRank = 7 ;// 我的排名 repeated Drop drop =8 ;//赛季重置奖励 - repeated int32 dailyRewardState =9;//日常奖励状态 - optional int32 changedTimes = 10 ;// 今日已挑战次数 + repeated int32 dailyRewardState =9;//日常奖励状态 + optional int32 changedTimes = 10 ;// 今日已挑战次数 repeated Drop updrop =11 ;//升段奖励 } //玉虚论道挑战前双方面板数据 message CrossYuXuLunDaoChallengeBeforeRequest{ - optional int32 playerId = 1; + optional int32 playerId = 1; optional int32 defId = 2; } message CrossYuXuLunDaoChallengeBeforeResponse{ - optional TeamOneInfo myTeamInfo = 1;//己方面板数据 + optional TeamOneInfo myTeamInfo = 1;//己方面板数据 optional TeamOneInfo defTeamInfo = 2;//对方面板数据 } //玉虚论道挑战 @@ -250,22 +250,46 @@ import "CommonProto.proto"; message CrossLingmaiSecretAreaRecordResponse{ repeated LingMaiSecretRecord recordData = 1; } - - message CrossLingmaiIndicationResponse{ - + message CrossLingmaiIndicationResponse{ } - - - - - - - - + // 获取新竞技场信息 + message GetNewArenaInfoRequest{ + } + message GetNewArenaInfoResponse{ + optional int32 ranking = 1;//我的排名 + optional int32 score = 2;//我的积分 + optional string roomId = 3;//房间id + optional string roomName = 4;//房间名称 + optional int32 lvScore = 5;//段位积分 + optional int32 fightNum = 6;//挑战次数 + repeated int32 receivedBox = 7;//已领取得盒子id + repeated ArenaPersonInfo opponent = 8;//对手信息 + } + //获取竞技场房间信息 + message GetAllArenaRoomRequest{ + } + message GetAllArenaRoomResponse{ + repeated ArenaRoom room = 1; + } - + //刷新竞技场对手信息 + message RefreshArenaOpponentRequest{ + } + message RefreshArenaOpponentResponse{ + repeated ArenaPersonInfo opponent = 1; + } - + // 新竞技场挑战 + message NewArenaChallengeRequest{ + optional int32 opponentId = 1;//对手id + } + message NewArenaChallengeResponse{ + optional int32 fightResult = 1; //战斗结果 + optional FightData fightData = 2; //战斗数据 + optional int32 myScoreChange = 3; //我的分数变化值 + optional int32 defScoreChange = 4; //对手分数变化值 + optional Drop drop = 5; //奖励道具 + } \ No newline at end of file diff --git a/protos/CommonProto.proto b/protos/CommonProto.proto index 89063ca..639549f 100644 --- a/protos/CommonProto.proto +++ b/protos/CommonProto.proto @@ -369,14 +369,15 @@ option optimize_for = SPEED; optional string info =2; } + // 竞技场和灵脉挑战都要用到 message ArenaPersonInfo{ optional int32 uid = 1; - optional int32 level =2; - optional string name =3; + optional int32 level = 2; + optional string name = 3; optional int64 score = 4; - optional int32 head =5; - optional int32 rank =6; //排名 - optional int64 totalForce =7; + optional int32 head = 5; + optional int32 rank = 6; //排名 + optional int64 totalForce = 7; optional int32 headFrame = 8; optional string servername = 9;//服务器名称 optional int32 gender = 10;//性别 @@ -384,24 +385,22 @@ option optimize_for = SPEED; optional int32 userTitle = 12; optional int32 userMount = 13; optional int32 practiceLevel = 14;//修行等级 - optional int32 lingmaiId = 15;//灵脉id - optional int32 getAwardTimeOrOccupyTime = 16; //得到奖励的时间或者占领的灵脉的时间 - + optional int32 lingmaiId = 15;//灵脉id(灵脉专用) + optional int32 getAwardTimeOrOccupyTime = 16; //得到奖励的时间或者占领的灵脉的时间(灵脉专用) + optional int32 arenaLvScore = 17;//段位积分 } - message Team{ repeated int32 heroTid =1; } message ArenaEnemy{ optional ArenaPersonInfo personInfo =1; - optional Team team =2; //队伍展示信息 + optional Team team = 2; //队伍展示信息 optional int32 worshipTime = 3;//膜拜次数 optional bool hadProud= 4;//我是否膜拜 } - message ArenaInfo{ optional int32 failNums =1; optional int32 successNums =2; @@ -415,7 +414,6 @@ option optimize_for = SPEED; optional int32 buyNum = 2; //购买次数 } - message StoreInfo{ optional int32 id = 1; optional int64 lastRefreshTime =2; //上次刷新时间 @@ -430,10 +428,8 @@ option optimize_for = SPEED; optional int32 attackTime =3 ; //进攻时间 optional int64 myScoreChange =4 ;// 我的分数变化值 optional int32 fightResult = 5; // 战斗结果 - } - message FunctionOfTime{ optional int32 functionId =1; //功能id optional int32 startTime =2; //开始时间 @@ -1382,4 +1378,10 @@ option optimize_for = SPEED; optional int32 type = 1;//类型 1:英雄 2:道具 optional string id = 2;//英雄或道具id optional int32 num = 3;//数量,英雄默认为1,道具自定义 + } + + // 竞技场房间信息 + message ArenaRoom{ + optional int32 id = 1;//房间id + optional string name = 2;//房间名称 } \ No newline at end of file diff --git a/protos/MessageTypeProto.proto b/protos/MessageTypeProto.proto index d9cfe10..4767df9 100644 --- a/protos/MessageTypeProto.proto +++ b/protos/MessageTypeProto.proto @@ -1680,6 +1680,15 @@ enum MessageType{ GiftEquipUpStarRequest = 6000033; GiftEquipUpStarResponse = 6000034; + // 新竞技场 + GetNewArenaInfoRequest = 6000035; + GetNewArenaInfoResponse = 6000036; + GetAllArenaRoomRequest = 6000037; + GetAllArenaRoomResponse = 6000038; + RefreshArenaOpponentRequest = 6000039; + RefreshArenaOpponentResponse = 6000040; + NewArenaChallengeRequest = 6000041; + NewArenaChallengeResponse = 6000042; }