98 lines
2.1 KiB
Protocol Buffer
98 lines
2.1 KiB
Protocol Buffer
package com.ljsd.jieling.protocols;
|
|
|
|
option optimize_for = SPEED;
|
|
|
|
import "CommonProto.proto";
|
|
|
|
|
|
message GetHeroListInfoRequest{
|
|
optional int32 index = 1; //第一次请求索引为0, 第二次:第一次索引+每页的数量
|
|
}
|
|
|
|
message GetHeroListInfoResponse{
|
|
repeated Hero heroList = 1;
|
|
optional bool isSendFinish =2; //是否发送完成
|
|
}
|
|
|
|
message DrawHeroRequest{
|
|
optional int32 type = 1;
|
|
optional string str = 2;
|
|
}
|
|
|
|
message DrawHeroResponse{
|
|
repeated Hero heroList = 1;
|
|
}
|
|
|
|
message HeroRandRequest{
|
|
optional int32 type =1; //抽卡类型
|
|
}
|
|
|
|
message HeroRandResponse{
|
|
optional Drop drop =1 ;
|
|
|
|
}
|
|
|
|
message TeamposSaveRequest{
|
|
optional TeamPosInfo TeamPosInfo =1;
|
|
}
|
|
|
|
message GetAllTeamPosResponse{
|
|
repeated TeamPosInfo TeamPosInfo =1;
|
|
}
|
|
|
|
|
|
message UpHeroLevelRequest{
|
|
optional string heroId = 1; //升级或突破的英雄id
|
|
}
|
|
|
|
|
|
message ConsumeMaterial{
|
|
optional int32 position=1; //卡槽位置
|
|
repeated string heroIds=2; //消耗英雄ids
|
|
}
|
|
|
|
message UpHeroStarRequest{
|
|
optional string heroId = 1; //升星的英雄id
|
|
repeated ConsumeMaterial consumeMaterials = 2; //消耗英雄组信息
|
|
|
|
}
|
|
|
|
|
|
message EquipWearRequest{
|
|
optional string heroId =1 ; //所穿英雄id
|
|
optional string equipId =2 ; //装备id
|
|
}
|
|
|
|
message EquipUnLoadOptRequest{
|
|
optional string heroId = 1;
|
|
repeated string equipIds =2;
|
|
}
|
|
message HeroComposeRequest{
|
|
optional Item item = 1; //合成英雄需要用的碎片,和合成英雄的个数
|
|
}
|
|
message HeroComposeResponse{
|
|
optional Drop drop = 1;
|
|
}
|
|
message GetAllEquipRequest{
|
|
optional int32 index = 1; //第一次请求索引为0, 第二次:第一次索引+每页的数量
|
|
}
|
|
message GetAllEquipResponse{
|
|
repeated Equip equip =1;
|
|
optional bool isSendFinish =2; //是否发送完成
|
|
}
|
|
|
|
message GetAllPokemonResponse{
|
|
repeated PokemonInfo pokemonInfo =1;
|
|
}
|
|
|
|
message PokenmonUpLevelRequest{//异妖相关 组件放置升级
|
|
optional int32 pokemonId =1;//异妖id
|
|
optional int32 comonpentId =2; // 组件id
|
|
}
|
|
|
|
message PokemonAdvancedRequest{ //异妖进阶
|
|
optional int32 pokemonId = 1; //要进阶异妖的id
|
|
}
|
|
|
|
|