|
@@ -0,0 +1,242 @@
|
|
|
+//***************************************************************************
|
|
|
+//* 作者: 詹斗池
|
|
|
+//* 创建时间: 2019-4-30
|
|
|
+//* 用途: 灵气-铭文系统
|
|
|
+//* 维护成员: 詹斗池
|
|
|
+//****************************************************************************/
|
|
|
+package pomelo.area;
|
|
|
+
|
|
|
+import 'item.proto';
|
|
|
+
|
|
|
+// 请求id(487-493)
|
|
|
+
|
|
|
+// 铭文合成时候的合成所需道具和数量
|
|
|
+message AnimaUpgradeReqInfo {
|
|
|
+ required int32 gridIndex = 1;// 背包索引
|
|
|
+ required int32 num = 2; // 数量
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+// 请求----487:打开灵气界面,界面信息 响应:AnimaInfoResponse
|
|
|
+message AnimaInfoRequest {}
|
|
|
+// 响应:打开灵气界面,界面信息
|
|
|
+message AnimaInfoResponse {
|
|
|
+ required int32 s2c_code = 1;
|
|
|
+ optional string s2c_msg = 2;
|
|
|
+ required int32 level = 3; // 灵气等级
|
|
|
+ required int32 value = 4; // 灵气值
|
|
|
+ required int32 star_num = 5; // 累计命星数
|
|
|
+ optional int32 sec = 6; // 秒,当前倒计时
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+// 请求----488:升级灵气 响应:AnimaUpgradeResponse
|
|
|
+message AnimaUpgradeRequest {}
|
|
|
+// 响应:升级灵气
|
|
|
+message AnimaUpgradeResponse {
|
|
|
+ required int32 s2c_code = 1;
|
|
|
+ optional string s2c_msg = 2;
|
|
|
+ optional int32 level = 3; // 灵气等级
|
|
|
+ optional int32 value = 4; // 灵气值
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+// 请求----489:灵气抽奖 响应:AnimaLuckyResponse
|
|
|
+message AnimaLuckyRequest {}
|
|
|
+// 响应:灵气抽奖
|
|
|
+message AnimaLuckyResponse {
|
|
|
+ required int32 s2c_code = 1;
|
|
|
+ optional string s2c_msg = 2;
|
|
|
+ optional int32 value = 3; // 消耗元神值
|
|
|
+ optional int32 obtain_value = 4; // 获得灵气值
|
|
|
+ optional item.CountItems items = 5;// 抽奖的符文库
|
|
|
+ optional int32 star_num = 6;// 当前命星数变化
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+// 已镶嵌的铭文信息
|
|
|
+message EquipmentInscription {
|
|
|
+ required int32 index = 1; //孔的位置, 攻击-101表示第一个-112 防御-201标识第一个-212
|
|
|
+ optional item.MiniItem ins = 2; //铭文
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+// 请求----490:打开铭文界面,界面信息 响应:AnimaInscriptionInfo
|
|
|
+message AnimaInscriptionInfoRequest {}
|
|
|
+// 响应:打开铭文界面,界面信息
|
|
|
+message AnimaInscriptionInfoResponse {
|
|
|
+ required int32 s2c_code = 1;
|
|
|
+ optional string s2c_msg = 2;
|
|
|
+ repeated EquipmentInscription insArray = 3; // 镶嵌的铭文
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+// 请求----491:合成铭文 响应:AnimaInscriptionUpgradeResponse
|
|
|
+message AnimaInscriptionUpgradeRequest {
|
|
|
+ required string code = 1; //铭文标识(合成后的得到的铭文)
|
|
|
+ repeated AnimaUpgradeReqInfo destroyedInfo = 2; // 合成时候,需要被销毁的(目前默认数量3个道具)
|
|
|
+}
|
|
|
+// 响应:合成铭文
|
|
|
+message AnimaInscriptionUpgradeResponse {
|
|
|
+ required int32 s2c_code = 1;
|
|
|
+ optional string s2c_msg = 2;
|
|
|
+ optional string code = 3; //
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+// 请求----492:镶嵌铭文 响应:AnimaInscriptionEquipResponse
|
|
|
+message AnimaInscriptionEquipRequest {
|
|
|
+ required int32 equipIndex = 1; // 镶嵌位置
|
|
|
+ required int32 girdIndex = 2; // 铭文背包格子索引
|
|
|
+}
|
|
|
+// 响应:镶嵌铭文
|
|
|
+message AnimaInscriptionEquipResponse {
|
|
|
+ required int32 s2c_code = 1;
|
|
|
+ optional string s2c_msg = 2;
|
|
|
+ repeated EquipmentInscription insArray = 3; // 镶嵌的铭文
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+// 请求----493:卸下铭文 响应:AnimaInscriptionDownResponse
|
|
|
+message AnimaInscriptionDownRequest {
|
|
|
+ required int32 equipIndex = 1; // 镶嵌位置
|
|
|
+}
|
|
|
+// 响应:卸下铭文
|
|
|
+message AnimaInscriptionDownResponse {
|
|
|
+ required int32 s2c_code = 1;
|
|
|
+ optional string s2c_msg = 2;
|
|
|
+ repeated EquipmentInscription insArray = 3; // 镶嵌的铭文
|
|
|
+}
|
|
|
+
|
|
|
+// 请求----622:一键合成铭文 响应:AnimaInscriptionUpgradeOneKeyResponse
|
|
|
+message AnimaInscriptionUpgradeOneKeyRequest {
|
|
|
+ required string code = 1; //铭文标识(合成后的得到的铭文)
|
|
|
+}
|
|
|
+// 响应:合成铭文
|
|
|
+message AnimaInscriptionUpgradeOneKeyResponse {
|
|
|
+ required int32 s2c_code = 1;
|
|
|
+ optional string s2c_msg = 2;
|
|
|
+ optional string code = 3; // 此次一键合成的code
|
|
|
+ optional int32 num = 4; // 此次一键合成得到的数量
|
|
|
+}
|
|
|
+
|
|
|
+// 请求----624:七星灯抽奖 响应:AnimaSevenStarResponse
|
|
|
+message AnimaSevenStarRequest {
|
|
|
+}
|
|
|
+// 响应:七星灯抽奖
|
|
|
+message AnimaSevenStarResponse {
|
|
|
+ required int32 s2c_code = 1;
|
|
|
+ optional string s2c_msg = 2;
|
|
|
+ optional item.CountItems items = 3;// 抽奖的符文库
|
|
|
+
|
|
|
+}
|
|
|
+
|
|
|
+// 请求----625:灵珠界面信息 响应:AnimaLingZhuInfoResponse
|
|
|
+message AnimaLingZhuInfoRequest {
|
|
|
+}
|
|
|
+// 响应:灵珠界面信息
|
|
|
+message AnimaLingZhuInfoResponse {
|
|
|
+ required int32 s2c_code = 1;
|
|
|
+ optional string s2c_msg = 2;
|
|
|
+ optional int32 s2c_ling_qi = 3; // 灵珠界面灵气总量
|
|
|
+ repeated int32 s2c_lv = 4;// 分别是灵珠金木水火土等级
|
|
|
+}
|
|
|
+
|
|
|
+// 请求----626:灵珠升级 响应:AnimaLingZhuUpgradeResponse
|
|
|
+message AnimaLingZhuUpgradeRequest {
|
|
|
+ required int32 zhu_index = 1; //灵珠标识【金1 木2 水3 火4 土5】
|
|
|
+}
|
|
|
+// 响应:灵珠升级
|
|
|
+message AnimaLingZhuUpgradeResponse {
|
|
|
+ required int32 s2c_code = 1;
|
|
|
+ optional string s2c_msg = 2;
|
|
|
+ optional int32 s2c_value = 3;// 灵气变化后的值
|
|
|
+ optional int32 s2c_index = 4;// 灵气变化后的值
|
|
|
+ optional int32 s2c_lv = 5;// 灵气变化后的值
|
|
|
+}
|
|
|
+
|
|
|
+// 灵盘单功法单页信息(功法每一页信息)
|
|
|
+message AnimaGongFaPageInfo {
|
|
|
+ required string s2c_gpid = 1;// 功法每页id
|
|
|
+ required int32 s2c_gplv = 2; // 功法当前页等级
|
|
|
+}
|
|
|
+// 灵盘单功法单页信息(功法每一页信息)
|
|
|
+message AnimaGongFaInfo {
|
|
|
+ required int32 s2c_index = 1; // 功法槽位
|
|
|
+ optional int32 s2c_gid = 2;// 功法id
|
|
|
+ optional int32 s2c_glv = 3;// 功法等级
|
|
|
+ repeated AnimaGongFaPageInfo s2c_info_array = 4; // 功法组每一页信息
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+// 请求----627:功法信息 响应:AnimaGongFaInfoResponse
|
|
|
+message AnimaGongFaInfoRequest {
|
|
|
+ optional int32 index = 1; // 请求哪个功法组(金木水火土 12345)
|
|
|
+}
|
|
|
+// 响应:功法信息
|
|
|
+message AnimaGongFaInfoResponse {
|
|
|
+ required int32 s2c_code = 1;
|
|
|
+ optional string s2c_msg = 2;
|
|
|
+ repeated AnimaGongFaInfo s2c_info_array = 3; // 功法组每一页信息
|
|
|
+}
|
|
|
+
|
|
|
+// 请求----628:功法学习 响应:AnimaGongFaStudyResponse
|
|
|
+message AnimaGongFaStudyRequest {
|
|
|
+ required int32 gong_index = 1; // 要学习的槽位
|
|
|
+ required int32 bag_pos = 2; // 背包格子索引
|
|
|
+}
|
|
|
+// 响应:功法学习
|
|
|
+message AnimaGongFaStudyResponse {
|
|
|
+ required int32 s2c_code = 1;
|
|
|
+ optional string s2c_msg = 2;
|
|
|
+ optional int32 s2c_index = 3; // 学习的槽位
|
|
|
+ optional string s2c_gpid = 4; // 学习的功法页id
|
|
|
+}
|
|
|
+
|
|
|
+// 请求----629:功法升级合成 响应:
|
|
|
+message AnimaGongFaUpgradeRequest {
|
|
|
+ required string gpid = 1; //要合成提升得功法页id
|
|
|
+}
|
|
|
+// 响应:功法升级合成
|
|
|
+message AnimaGongFaUpgradeResponse {
|
|
|
+ required int32 s2c_code = 1;
|
|
|
+ optional string s2c_msg = 2;
|
|
|
+ optional int32 s2c_index = 3;
|
|
|
+ optional int32 s2c_g_lv = 4; // 功法整体套装等级有变化
|
|
|
+ optional string s2c_gpid = 5; // 学习的功法页id
|
|
|
+ optional int32 s2c_gp_lv = 6; // 功法页等级有变化
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+//灵盘处理器
|
|
|
+service animaInscriptionHandler {
|
|
|
+
|
|
|
+ rpc animaInfoRequest(AnimaInfoRequest)returns(AnimaInfoResponse);
|
|
|
+
|
|
|
+ rpc animaUpgradeRequest(AnimaUpgradeRequest)returns(AnimaUpgradeResponse);
|
|
|
+
|
|
|
+ rpc animaLuckyRequest(AnimaLuckyRequest)returns(AnimaLuckyResponse);
|
|
|
+
|
|
|
+ rpc animaInscriptionInfoRequest(AnimaInscriptionInfoRequest)returns(AnimaInscriptionInfoResponse);
|
|
|
+
|
|
|
+ rpc animaInscriptionUpgradeRequest(AnimaInscriptionUpgradeRequest)returns(AnimaInscriptionUpgradeResponse);
|
|
|
+
|
|
|
+ rpc animaInscriptionEquipRequest(AnimaInscriptionEquipRequest)returns(AnimaInscriptionEquipResponse);
|
|
|
+
|
|
|
+ rpc animaInscriptionDownRequest(AnimaInscriptionDownRequest)returns(AnimaInscriptionDownResponse);
|
|
|
+
|
|
|
+ rpc animaInscriptionUpgradeOneKeyRequest(AnimaInscriptionUpgradeOneKeyRequest)returns(AnimaInscriptionUpgradeOneKeyResponse);
|
|
|
+
|
|
|
+ // 624:灵盘七星灯抽奖
|
|
|
+ rpc animaSevenStarRequest(AnimaSevenStarRequest)returns(AnimaSevenStarResponse);
|
|
|
+ // 625:灵盘灵珠栏信息
|
|
|
+ rpc animaLingZhuInfoRequest(AnimaLingZhuInfoRequest)returns(AnimaLingZhuInfoResponse);
|
|
|
+ // 626:灵盘灵珠升级
|
|
|
+ rpc animaLingZhuUpgradeRequest(AnimaLingZhuUpgradeRequest)returns(AnimaLingZhuUpgradeResponse);
|
|
|
+ // 627:灵盘功法栏信息
|
|
|
+ rpc animaGongFaInfoRequest(AnimaGongFaInfoRequest)returns(AnimaGongFaInfoResponse);
|
|
|
+ // 628:灵盘功法页学习
|
|
|
+ rpc animaGongFaStudyRequest(AnimaGongFaStudyRequest)returns(AnimaGongFaStudyResponse);
|
|
|
+ // 629:灵盘功法页升级合成
|
|
|
+ rpc animaGongFaUpgradeRequest(AnimaGongFaUpgradeRequest)returns(AnimaGongFaUpgradeResponse);
|
|
|
+}
|