From b5eff2aed66d2211de2e4460bb3edfe0a132fd48 Mon Sep 17 00:00:00 2001 From: zqj <582132116@qq.com> Date: Tue, 12 Jul 2022 18:33:50 +0800 Subject: [PATCH] feat: 任务系统 --- game.proto | 6 ++++++ models.proto | 8 +++++++- protocode.proto | 13 +++++++------ 3 files changed, 20 insertions(+), 7 deletions(-) diff --git a/game.proto b/game.proto index 3956253..9490cdc 100644 --- a/game.proto +++ b/game.proto @@ -88,6 +88,12 @@ message RoleEndBattleRsp { repeated models.Hero hero = 6; } +message RoleTaskRar { + int32 task_id = 1; + int32 task_type = 2; + map reward = 3; +} + message EquipmentDelRar { repeated string id = 1; } diff --git a/models.proto b/models.proto index b228e5e..1be877c 100644 --- a/models.proto +++ b/models.proto @@ -108,4 +108,10 @@ message Role { uint32 materiallimit = 20; map passchapters = 21; // 通关记录 -} + map time_reset = 22; // 重置记录 {1=1,2=1,3=1} 1=CrossDay,2=CrossWeek,3=CrossMonth + + uint32 activity = 23; + map daily_task = 24; + map week_task = 25; + map month_task = 26; +} \ No newline at end of file diff --git a/protocode.proto b/protocode.proto index 1742afc..0cda714 100644 --- a/protocode.proto +++ b/protocode.proto @@ -14,12 +14,13 @@ enum ProtoCode RoleClearItemsRpc = 506; RoleStartBattleRpc = 507; RoleEndBattleRpc = 508; - EquipmentDelRpc = 509; - HeroUpLevelRpc = 510; - EmailListRpc = 511; - EmailDrawRpc = 512; - EmailCheckRpc = 513; - EmailDelRpc = 514; + RoleTaskRpc = 509; + EquipmentDelRpc = 510; + HeroUpLevelRpc = 511; + EmailListRpc = 512; + EmailDrawRpc = 513; + EmailCheckRpc = 514; + EmailDelRpc = 515; DisConnectNty = 1001; RoleUpdatePropertyNty = 1002; -- libgit2 0.21.2