挂机协议

master_huanxiang
wangyuan 2019-05-16 14:36:57 +08:00
parent 5edf237ba0
commit 9872ff269f
4 changed files with 100 additions and 36 deletions

View File

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

View File

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

View File

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

View File

@ -197,3 +197,4 @@ import "CommonProto.proto";
}