Commit 6985096a3f34cdf77f9a264e27e071ea618a3831
1 parent
f96ecc65
feat: 排行榜
Showing
3 changed files
with
39 additions
and
18 deletions
Show diff stats
game.proto
| @@ -195,6 +195,14 @@ message RoleEndClimbRsp { | @@ -195,6 +195,14 @@ message RoleEndClimbRsp { | ||
| 195 | int64 timestamp = 3; | 195 | int64 timestamp = 3; |
| 196 | } | 196 | } |
| 197 | 197 | ||
| 198 | +message RoleRankClimbReq { | ||
| 199 | + int32 chapter_id = 1; | ||
| 200 | +} | ||
| 201 | + | ||
| 202 | +message RoleRankClimbRsp { | ||
| 203 | + repeated models.RankClimb rank = 1; | ||
| 204 | +} | ||
| 205 | + | ||
| 198 | message EquipmentDelReq { | 206 | message EquipmentDelReq { |
| 199 | repeated string id = 1; | 207 | repeated string id = 1; |
| 200 | } | 208 | } |
models.proto
| @@ -86,6 +86,18 @@ message GemSlot { | @@ -86,6 +86,18 @@ message GemSlot { | ||
| 86 | int32 group_id = 8; | 86 | int32 group_id = 8; |
| 87 | } | 87 | } |
| 88 | 88 | ||
| 89 | +message RankTeam { | ||
| 90 | + repeated int32 hero_ids = 1; | ||
| 91 | + repeated int32 child_ids = 2; | ||
| 92 | +} | ||
| 93 | + | ||
| 94 | +message RankClimb { | ||
| 95 | + string name = 1; | ||
| 96 | + int32 layer = 2; | ||
| 97 | + int32 spend = 3; | ||
| 98 | + RankTeam team = 4; | ||
| 99 | +} | ||
| 100 | + | ||
| 89 | message Role { | 101 | message Role { |
| 90 | string id = 1; // @inject_tag: index:"unique" pri:"1" | 102 | string id = 1; // @inject_tag: index:"unique" pri:"1" |
| 91 | string uid = 2; // @inject_tag: index:"unique" | 103 | string uid = 2; // @inject_tag: index:"unique" |
| @@ -122,6 +134,6 @@ message Role { | @@ -122,6 +134,6 @@ message Role { | ||
| 122 | int64 otime = 27; // 离线时间 | 134 | int64 otime = 27; // 离线时间 |
| 123 | int64 ctime = 28; // 创建时间 | 135 | int64 ctime = 28; // 创建时间 |
| 124 | string channel = 29; | 136 | string channel = 29; |
| 125 | - string climb_reward = 30; | 137 | + map<string,string> climb_rs = 30; // reward and start |
| 126 | map<int32,int32> climb_hishigh = 31; | 138 | map<int32,int32> climb_hishigh = 31; |
| 127 | } | 139 | } |
| 128 | \ No newline at end of file | 140 | \ No newline at end of file |
protocode.proto
| @@ -27,23 +27,24 @@ enum ProtoCode | @@ -27,23 +27,24 @@ enum ProtoCode | ||
| 27 | RoleStartClimbRpc = 519; | 27 | RoleStartClimbRpc = 519; |
| 28 | RoleMiddleClimbRpc = 520; | 28 | RoleMiddleClimbRpc = 520; |
| 29 | RoleEndClimbRpc = 521; | 29 | RoleEndClimbRpc = 521; |
| 30 | - EquipmentDelRpc = 522; | ||
| 31 | - EquipmentEnhanceRpc = 523; | ||
| 32 | - EquipmentSetGemRpc = 524; | ||
| 33 | - EquipmentDelGemRpc = 525; | ||
| 34 | - HeroUpLevelRpc = 526; | ||
| 35 | - HeroReinRpc = 527; | ||
| 36 | - HeroSkillUpLevelRpc = 528; | ||
| 37 | - EmailListRpc = 529; | ||
| 38 | - EmailDrawRpc = 530; | ||
| 39 | - EmailCheckRpc = 531; | ||
| 40 | - EmailDelRpc = 532; | ||
| 41 | - StoreBuyRpc = 533; | ||
| 42 | - ItemGemCompoundRpc = 534; | ||
| 43 | - GemSliceRpc = 535; | ||
| 44 | - GemSliceStopRpc = 536; | ||
| 45 | - GemAttentionRpc = 537; | ||
| 46 | - GemSliceRewardRpc = 538; | 30 | + RoleRankClimbRpc = 522; |
| 31 | + EquipmentDelRpc = 523; | ||
| 32 | + EquipmentEnhanceRpc = 524; | ||
| 33 | + EquipmentSetGemRpc = 525; | ||
| 34 | + EquipmentDelGemRpc = 526; | ||
| 35 | + HeroUpLevelRpc = 527; | ||
| 36 | + HeroReinRpc = 528; | ||
| 37 | + HeroSkillUpLevelRpc = 529; | ||
| 38 | + EmailListRpc = 530; | ||
| 39 | + EmailDrawRpc = 531; | ||
| 40 | + EmailCheckRpc = 532; | ||
| 41 | + EmailDelRpc = 533; | ||
| 42 | + StoreBuyRpc = 534; | ||
| 43 | + ItemGemCompoundRpc = 535; | ||
| 44 | + GemSliceRpc = 536; | ||
| 45 | + GemSliceStopRpc = 537; | ||
| 46 | + GemAttentionRpc = 538; | ||
| 47 | + GemSliceRewardRpc = 539; | ||
| 47 | 48 | ||
| 48 | DisConnectNty = 1001; | 49 | DisConnectNty = 1001; |
| 49 | RoleUpdatePropertyNty = 1002; | 50 | RoleUpdatePropertyNty = 1002; |