diff --git a/protos/ActivityProto.proto b/protos/ActivityProto.proto index 47ccb75..5cdc8ce 100644 --- a/protos/ActivityProto.proto +++ b/protos/ActivityProto.proto @@ -5,203 +5,213 @@ option optimize_for = SPEED; import "CommonProto.proto"; - //社稷大典贡献道具 - message CommitShejiActivityItemRequest{ - optional int32 itemId = 1; //道具id - optional int32 itemNum = 2; //道具数量 - } - - message CommitShejiActivityItemResponse{ - optional Drop drop = 1; - } - - message GetShejiAwardRequest{ - optional int32 activityId = 1; - } - message GetShejiAwardResponse{ - optional Drop drop = 1; - } - - //选择易经宝库终极奖励 - message SeletSubRewardPoolRequest{ - optional int32 selectId = 1; - optional int32 activityId = 2; - } - message SeletSubRewardPoolResponse{ - - } - //灵兽up抽卡 - message SpecicalMonsterChooseRequest{ - optional int32 activityId = 1; - optional int32 selectId = 2; - } - - // 新将来袭 - message NewGeneralAttackRequest{ - // 活动id - optional int32 activityId = 1; - // 使用次数类型id - optional int32 privilageTypeId = 2; - } - - message NewGeneralAttackResponse{ - // 战斗属性 - optional FightData fightData = 1; - // 道具 - optional Drop drop = 2; - } - - //扭转乾坤 - message GoodLuckRequest{ - optional int32 activityId = 1; - } +//社稷大典贡献道具 +message CommitShejiActivityItemRequest{ + optional int32 itemId = 1; //道具id + optional int32 itemNum = 2; //道具数量 +} - message GoodLuckResponse{ - optional int32 index = 1; - optional Drop drop = 2; - } - - message FuXingStoreBuyRequest{ - optional int32 activityId = 1; - } - - // 踏碎凌霄 - message TasuilingxiaoRequest{ - // 活动id - optional int32 activityId = 1; - } - - message TasuilingxiaoResponse{ - // 战斗属性 - optional FightData fightData = 1; - // 掉落 - optional Drop drop = 2; - // 伤害值 - optional int32 damageVal = 3; - } - - - // 选择抽卡 - message choiceHeroRewardRequest{ - optional int32 activityId = 1; - optional int32 rewardId = 2; - } - - message choiceHeroRewardResponse{ - } - - message choiceDrawCardRequest{ - optional int32 activityId = 1; - optional int32 type = 2; // 单抽:1 十连抽:2 - } - - message choiceDrawCardResponse{ - optional Drop drop = 1; - } - - - // 奇门遁甲/玲珑棋局 - message qiMenDunJiaDrawRequest{ - optional int32 activityId = 1; - optional int32 num = 2;//1:单抽,10:十连抽 - } - - message qiMenDunJiaDrawResponse{ - optional Drop drop = 1;//获得的奖励列表 - repeated int32 idList = 2;//获得奖励id - } - - message qiMenDunJiaHitListRequest{ - optional int32 activityId = 1; - } - - message qiMenDunJiaHitListResponse{ - repeated int32 hitList = 1; - } - +message CommitShejiActivityItemResponse{ + optional Drop drop = 1; +} - // 御剑飞行 - message RidingSwardActivityRequest{ - optional int32 activityId = 1;//活动id - } - message RidingSwardActivityResponse{ - optional int32 state = 1;//当前状态,0:关闭,1:投注,2:比赛中 - optional int64 time = 2;//下轮开始时间 - repeated ModelUserInfo modelInfo = 3;//假人信息 - optional int32 rankId = 4;//当前比赛脚本 - optional int32 betCount = 5;//投注次数 - } - // 获取信息 - message RidingSwardInfoRequest{ - } - // 领取奖励 - message RidingSwardRewardRequest{ - optional int32 round = 1;//轮次,-1为全部领取 - optional int32 swardId = 2;//押注的剑 - } - message RidingSwardRewardResponse{ - optional Drop drop = 1;//奖励道具 - } - // 竞猜 - message RidingSwardBetRequest{ - optional int32 swardId = 1;//选择的剑 - optional int32 costNum = 2;//投注数量 - } +message GetShejiAwardRequest{ + optional int32 activityId = 1; +} +message GetShejiAwardResponse{ + optional Drop drop = 1; +} - // 统一返回 - message RidingSwardInfoResponse{ - repeated RidingSwardRecord recordLsit = 1;//记录 - repeated RidingSwardBet betList = 2;//竞猜记录 - optional RidingSwardLastRank lastRank = 3;//上次排名 - optional int32 betCount = 4;//投注次数 - } - - //周卡 - message WeekCardInfoRequest{ - } - message WeekCardInfoResponse{ - repeated WeekCard allWeekCardInfo = 1; - } - message WeekCardRewardRequest{ - optional int32 id = 1; //周卡id - } - message WeekCardRewardResponse{ - optional Drop drop = 1; - } - message WeekCardIndicationInfoResponse{ - repeated WeekCard allWeekCardInfo = 1; - } +//选择易经宝库终极奖励 +message SeletSubRewardPoolRequest{ + optional int32 selectId = 1; + optional int32 activityId = 2; +} +message SeletSubRewardPoolResponse{ - //天地洪炉up抽卡选择协议 - message TrumpGachaSelectItemRequest{ - optional int32 activityId = 1; - repeated int32 selectIds = 2; - } +} +//灵兽up抽卡 +message SpecicalMonsterChooseRequest{ + optional int32 activityId = 1; + optional int32 selectId = 2; +} - //获取天地洪炉抽奖up道具 - message GetTrumpSelectItemRequest{ - } - message GetTrumpSelectItemResponse{ - repeated int32 selectIds = 1; - } +// 新将来袭 +message NewGeneralAttackRequest{ + // 活动id + optional int32 activityId = 1; + // 使用次数类型id + optional int32 privilageTypeId = 2; +} + +message NewGeneralAttackResponse{ + // 战斗属性 + optional FightData fightData = 1; + // 道具 + optional Drop drop = 2; +} + +//扭转乾坤 +message GoodLuckRequest{ + optional int32 activityId = 1; +} + +message GoodLuckResponse{ + optional int32 index = 1; + optional Drop drop = 2; +} + +message FuXingStoreBuyRequest{ + optional int32 activityId = 1; +} + +// 踏碎凌霄 +message TasuilingxiaoRequest{ + // 活动id + optional int32 activityId = 1; +} + +message TasuilingxiaoResponse{ + // 战斗属性 + optional FightData fightData = 1; + // 掉落 + optional Drop drop = 2; + // 伤害值 + optional int32 damageVal = 3; +} - // 妖晶购买道具 - message BuyGoodsToItemRequest{ - optional int32 goodId = 1; - optional int32 goodsNum = 2; - } - message BuyGoodsToItemResponse{ - optional Drop drop = 1; - } +// 选择抽卡 +message choiceHeroRewardRequest{ + optional int32 activityId = 1; + optional int32 rewardId = 2; +} - //英雄升星活动 选择升星英雄协议 - message UpStarActivitySelectRequest{ - optional int32 activityId = 1; - optional int32 selectId = 2; - } - - message ExploreActivityIndication{ - optional int32 guildId = 1;//工会id - optional int32 exploreKillMonsterNum = 2;//探索活动杀敌数 - } \ No newline at end of file +message choiceHeroRewardResponse{ +} + +message choiceDrawCardRequest{ + optional int32 activityId = 1; + optional int32 type = 2; // 单抽:1 十连抽:2 +} + +message choiceDrawCardResponse{ + optional Drop drop = 1; +} + + +// 奇门遁甲/玲珑棋局 +message qiMenDunJiaDrawRequest{ + optional int32 activityId = 1; + optional int32 num = 2;//1:单抽,10:十连抽 +} + +message qiMenDunJiaDrawResponse{ + optional Drop drop = 1;//获得的奖励列表 + repeated int32 idList = 2;//获得奖励id +} + +message qiMenDunJiaHitListRequest{ + optional int32 activityId = 1; +} + +message qiMenDunJiaHitListResponse{ + repeated int32 hitList = 1; +} + + +// 御剑飞行 +message RidingSwardActivityRequest{ + optional int32 activityId = 1;//活动id +} +message RidingSwardActivityResponse{ + optional int32 state = 1;//当前状态,0:关闭,1:投注,2:比赛中 + optional int64 time = 2;//下轮开始时间 + repeated ModelUserInfo modelInfo = 3;//假人信息 + optional int32 rankId = 4;//当前比赛脚本 + optional int32 betCount = 5;//投注次数 +} +// 获取信息 +message RidingSwardInfoRequest{ +} +// 领取奖励 +message RidingSwardRewardRequest{ + optional int32 round = 1;//轮次,-1为全部领取 + optional int32 swardId = 2;//押注的剑 +} +message RidingSwardRewardResponse{ + optional Drop drop = 1;//奖励道具 +} +// 竞猜 +message RidingSwardBetRequest{ + optional int32 swardId = 1;//选择的剑 + optional int32 costNum = 2;//投注数量 +} + +// 统一返回 +message RidingSwardInfoResponse{ + repeated RidingSwardRecord recordLsit = 1;//记录 + repeated RidingSwardBet betList = 2;//竞猜记录 + optional RidingSwardLastRank lastRank = 3;//上次排名 + optional int32 betCount = 4;//投注次数 +} + +//周卡 +message WeekCardInfoRequest{ +} +message WeekCardInfoResponse{ + repeated WeekCard allWeekCardInfo = 1; +} +message WeekCardRewardRequest{ + optional int32 id = 1; //周卡id +} +message WeekCardRewardResponse{ + optional Drop drop = 1; +} +message WeekCardIndicationInfoResponse{ + repeated WeekCard allWeekCardInfo = 1; +} + +//天地洪炉up抽卡选择协议 +message TrumpGachaSelectItemRequest{ + optional int32 activityId = 1; + repeated int32 selectIds = 2; +} + +//获取天地洪炉抽奖up道具 +message GetTrumpSelectItemRequest{ +} +message GetTrumpSelectItemResponse{ + repeated int32 selectIds = 1; +} + + +// 妖晶购买道具 +message BuyGoodsToItemRequest{ + optional int32 goodId = 1; + optional int32 goodsNum = 2; +} +message BuyGoodsToItemResponse{ + optional Drop drop = 1; +} + +//英雄升星活动 选择升星英雄协议 +message UpStarActivitySelectRequest{ + optional int32 activityId = 1; + optional int32 selectId = 2; +} + +message ExploreActivityIndication{ + optional int32 guildId = 1;//工会id + optional int32 exploreKillMonsterNum = 2;//探索活动杀敌数 +} + +message DesireDrawCardRequest{ + optional int32 type = 1;//卡池类型 + optional int32 tempId = 2;//物品id +} + +message DesireDrawCardResponse{ + optional int32 type = 1;//卡池类型 + optional int32 tempId = 2;//物品id +} \ No newline at end of file diff --git a/protos/CommonProto.proto b/protos/CommonProto.proto index 4e3d928..b947190 100644 --- a/protos/CommonProto.proto +++ b/protos/CommonProto.proto @@ -1078,7 +1078,7 @@ option optimize_for = SPEED; //通用键值对 message KeyVal{ - optional int32 key = 1; + optional int32 key = 1; optional int32 val = 2; } diff --git a/protos/MessageTypeProto.proto b/protos/MessageTypeProto.proto index 28fe8cb..c473cdf 100644 --- a/protos/MessageTypeProto.proto +++ b/protos/MessageTypeProto.proto @@ -1537,6 +1537,9 @@ enum MessageType{ MAGIC_SOLDIER_EXCHANGE_REQUEST = 3050221;//阵上更换位置 MAGIC_SOLDIER_EXCHANGE_RESPONSE = 3050222; + DESIRE_DRAW_CARD_REQUEST = 3050223; + DESIRE_DRAW_CARD_RESPONSE = 3050224; + //==========================================================800000起为global 协议========================================================== GetWorldServerRequest = 800001;//获取世界服ip