挂机协议
parent
5edf237ba0
commit
9872ff269f
|
|
@ -137,13 +137,11 @@ option optimize_for = SPEED;
|
|||
|
||||
message AdventureStateInfo{
|
||||
optional int32 positionId = 1; // 区域编号
|
||||
repeated string heroIdList =2 ; // 驻扎英雄id
|
||||
optional int32 startTime = 3 ; //开始时间
|
||||
}
|
||||
|
||||
message AdventureRecommendHeroInfo{
|
||||
optional int32 positionId = 1; // 区域编号
|
||||
repeated int32 recommenedId =2 ; // 推荐英雄
|
||||
optional int32 level =2; //区域等级
|
||||
optional int32 stateTime = 3 ; //挂机时长
|
||||
optional string bossId=4;
|
||||
optional int32 bossRemainTime=5;
|
||||
optional int32 bossFindNextTime = 6; //boss发现下次时间
|
||||
}
|
||||
|
||||
message TeamHeroInfo{
|
||||
|
|
@ -307,3 +305,12 @@ option optimize_for = SPEED;
|
|||
optional int32 interval = 4; //间隔时间 0:代表不是周期
|
||||
}
|
||||
|
||||
message AdventureRankItemInfo{
|
||||
optional int32 uid = 1;
|
||||
optional int32 level =2;
|
||||
optional string name =3;
|
||||
optional int32 hurt = 4; //伤害值
|
||||
optional int32 head =5;
|
||||
optional int32 rank =6; //排名
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -6,28 +6,6 @@ import "CommonProto.proto";
|
|||
|
||||
// request 编号需要小于 response 编号
|
||||
|
||||
message GetAdventureStateInfoResponse{
|
||||
repeated AdventureStateInfo adventureStateInfoList = 1;
|
||||
optional Drop showDrop =2; // 界面展示背包信息
|
||||
optional Drop notShowDrop =3; // 界面不展示背包信息
|
||||
optional int32 outTime =4; //离线时长
|
||||
}
|
||||
|
||||
// 冒险驻扎
|
||||
message AventureStationRequest{
|
||||
optional int32 position = 1; // 驻扎区域编号
|
||||
repeated string heroIdList =3; // 上阵英雄id
|
||||
}
|
||||
|
||||
message TakeAventureRewardRequest{
|
||||
optional int32 position = 1; // 驻扎区域编号
|
||||
}
|
||||
|
||||
message TakeAventureRewardResponse{
|
||||
optional Drop Drop = 1;
|
||||
}
|
||||
|
||||
|
||||
// 战斗开始
|
||||
message FightStartRequest {
|
||||
// 战斗类型(手动,自动)
|
||||
|
|
@ -108,4 +86,63 @@ import "CommonProto.proto";
|
|||
}
|
||||
|
||||
|
||||
message GetAdventureStateInfoResponse{
|
||||
repeated AdventureStateInfo adventureStateInfoList = 1;
|
||||
optional int32 buyTimsPerDay =2 ; // 每日已消耗材料快速领取挂机奖励次数
|
||||
optional int32 dayChallengeTimes =3 ;// 每日已消耗挑战次数
|
||||
}
|
||||
|
||||
|
||||
message TakeAventureRewardRequest{
|
||||
optional int32 type =1; //1:花费材料快速领取 2:普通领取
|
||||
optional int32 position = 2; // 驻扎区域编号 -1标示一键领取
|
||||
}
|
||||
|
||||
message TakeAventureRewardResponse{
|
||||
optional Drop Drop = 1;
|
||||
}
|
||||
|
||||
|
||||
message AdventureUpLevelRequest{
|
||||
optional int32 arenaId =1; // 区域id
|
||||
}
|
||||
|
||||
|
||||
message AdventurnChallengeRequest{
|
||||
optional int32 arenaId =1; // 区域id
|
||||
optional int32 teamId =2 ; // 队伍id
|
||||
optional int32 skipFight =3; //是否跳过战斗
|
||||
}
|
||||
|
||||
message AdventurnChallengeResponse{
|
||||
optional int32 fightResult =1; // 战斗结果。
|
||||
optional FightData fightData =2 ;// 战斗数据
|
||||
}
|
||||
|
||||
message AdventurenBossChallengeRequest{
|
||||
optional string bossId =1; //出现区域boss
|
||||
optional int32 teamId =2; // 进攻队伍id
|
||||
optional int32 fightTimes =3;// 进攻次数
|
||||
optional int32 skipFight =4 ;// 是否跳过战斗 1:跳过 0:不跳过
|
||||
}
|
||||
|
||||
message AdventurenBossChallengeResponse{
|
||||
optional int32 hurtNums =1; // 打boss血量
|
||||
optional FightData fightData =2;
|
||||
}
|
||||
|
||||
message AdventureBossShareRequest{
|
||||
optional string bossId =1 ; // 分享的bossId
|
||||
}
|
||||
|
||||
message AdventurnRankRequest{
|
||||
optional int32 page =1; //请求排行榜的页数
|
||||
}
|
||||
|
||||
message AdventurnRankResponse{
|
||||
repeated AdventureRankItemInfo adventureRankItemInfo =1;
|
||||
optional AdventureRankItemInfo myInfo =2;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -8,16 +8,11 @@ option optimize_for = SPEED;
|
|||
enum MessageType{
|
||||
|
||||
// 系统内部协议1000--9999
|
||||
HEART_BEAT_REQUEST = 1000; // 心跳
|
||||
HEART_BEAT_RESPONSE = 1001; //
|
||||
HEART_BEAT_REQUEST = 1000; // 心跳
|
||||
HEART_BEAT_RESPONSE = 1001; //
|
||||
|
||||
// 正式协议从10000开始
|
||||
// A 10000
|
||||
ADVENTURE_STATION_REQUEST = 10000; // 冒险驻扎
|
||||
ADVENTURE_STATION_RESPONSE = 10001;
|
||||
|
||||
ADVENTURE_REWARD_REQUEST = 10002; // 冒险领取奖励
|
||||
ADVENTURE_REWARD_RESPONSE = 10003;
|
||||
|
||||
ACTIVITE_WORKSHOP_REQUEST = 10004 ;// 激活工坊
|
||||
ACTIVITE_WORKSHOP_RESPONSE = 10005;
|
||||
|
|
@ -37,6 +32,30 @@ enum MessageType{
|
|||
ARENA_DEFENSE_REQUEST = 10014; // 获取防守记录信息
|
||||
ARENA_DEFENSE_RESPONSE = 10015;
|
||||
|
||||
ADVENTURE_INFO_REQUEST = 10016; //冒险信息
|
||||
ADVENTURE_INFO_RESPONSE = 10017;
|
||||
|
||||
ADVENTURE_CHALLENGE_REQUEST = 10018; //挑战解锁
|
||||
ADVENTURE_CHALLENGE_RESPONSE = 10019;
|
||||
|
||||
ADVENTURE_UPLEVEL_REQUEST = 10020; //城池进阶
|
||||
ADVENTURE_UPLEVEL_RESPONSE = 10021;
|
||||
|
||||
ADVENTURE_REWARD_REQUEST = 10022; //领取挂机奖励
|
||||
ADVENTURE_REWARD_RESPONSE = 10023;
|
||||
|
||||
ADVENTURE_BOSSHURT_REQEUST = 10024; //获取对boss造成伤害值信息
|
||||
ADVENTURE_BOSSHURT_RESPONSE = 10025;
|
||||
|
||||
ADVENTURE_BOSS_CHALLENGE_REQEUST = 10026; //外地入侵挑战
|
||||
ADVENTURE_BOSS_CHALLENGE_RESPONSE = 10027;
|
||||
|
||||
ADVENTURE_BOSS_RANK_REQUEST = 10028; //外地入侵排行榜信息
|
||||
ADVENTURE_BOSS_RANK_RESPONSE = 10029;
|
||||
|
||||
ADVENTURE_BOSS_SHARE_REQUEST = 10030; //分享外地入侵
|
||||
ADVENTURE_BOSS_SHARE_RESPONSE = 10031;
|
||||
|
||||
// B 10100
|
||||
BUY_STORE_ITEM_REQUEST = 10100; // 购买商店物品
|
||||
BUY_STORE_ITEM_RESPONSE = 10101;
|
||||
|
|
|
|||
|
|
@ -197,3 +197,4 @@ import "CommonProto.proto";
|
|||
}
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue