Commit b33dbc13280ee964f2c642e6606d63b3c33dbf91
1 parent
20478144
feat: 英雄转生相关协议
Showing
3 changed files
with
35 additions
and
11 deletions
Show diff stats
hero.proto
... | ... | @@ -74,20 +74,42 @@ message HeroUpdatePropertyNty { |
74 | 74 | models.Activity activity = 2; |
75 | 75 | } |
76 | 76 | |
77 | -message HeroQualityUpLevelReq { | |
77 | +message HeroMemoryCompositeReq { | |
78 | + int32 memory_fragments = 1; // 兑换成的记忆碎片 | |
79 | + string memory_composite = 2; // 记忆碎片组合 | |
80 | +} | |
81 | + | |
82 | +message HeroMemoryCompositeRsp{ | |
83 | + int32 memory_fragments = 1; // 兑换成的记忆碎片 | |
84 | +} | |
85 | + | |
86 | +message HeroSetMemoryFragmentsReq { | |
78 | 87 | string hero_id = 1; |
88 | + int32 slot_index = 2; | |
89 | + int32 memory_fragments = 3; | |
79 | 90 | } |
80 | 91 | |
81 | -message HeroQualityUpLevelRsp { | |
82 | - models.Hero hero = 1; | |
92 | +message HeroSetMemoryFragmentsRsp { | |
93 | + string hero_id = 1; | |
94 | + map<int32,string> slot_memory = 2; | |
83 | 95 | } |
84 | 96 | |
85 | -message HeroMemorySlotUpLevelReq { | |
97 | +message HeroUpMemoryGradeReq { | |
86 | 98 | string hero_id = 1; |
87 | - int32 slot = 2; | |
88 | - string cost = 3; | |
89 | 99 | } |
90 | 100 | |
91 | -message HeroMemorySlotUpLevelRsp { | |
92 | - models.Hero hero = 1; | |
101 | +message HeroUpMemoryGradeRsp { | |
102 | + string hero_id = 1; | |
103 | + int32 grade = 2; | |
104 | +} | |
105 | + | |
106 | +message HeroUpMemorySlotReq { | |
107 | + string hero_id = 1; | |
108 | + int32 slot_idx = 2; | |
109 | + string costs = 3; | |
110 | +} | |
111 | + | |
112 | +message HeroUpMemorySlotRsp{ | |
113 | + string hero_id = 1; | |
114 | + map<int32,string> slot_memory = 2; | |
93 | 115 | } |
94 | 116 | \ No newline at end of file | ... | ... |
models.proto
protocode.proto
... | ... | @@ -34,8 +34,10 @@ enum ProtoCode |
34 | 34 | HeroUpLevelRpc = 204; |
35 | 35 | HeroReinRpc = 205; |
36 | 36 | HeroSkillUpLevelRpc = 206; |
37 | - HeroQualityUpLevelRpc = 207; | |
38 | - HeroMemorySlotUpLevelRpc = 208; | |
37 | + HeroMemoryCompositeRpc = 207; | |
38 | + HeroSetMemoryFragmentsRpc = 208; | |
39 | + HeroUpMemoryGradeRpc = 209; | |
40 | + HeroUpMemorySlotRpc = 210; | |
39 | 41 | |
40 | 42 | EmailListRpc = 301; |
41 | 43 | EmailDrawRpc = 302; | ... | ... |