From 17c317ca1bbe5fa87ed009646dc9ffe2a0009793 Mon Sep 17 00:00:00 2001 From: GanyusLeftHorn <1244229+GanyusLeftHorn@users.noreply.github.com> Date: Thu, 30 Jun 2022 02:13:27 -0700 Subject: [PATCH] Add cooking protos. --- proto/CookDataNotify.proto | 16 ++++++++++++++++ proto/CookGradeDataNotify.proto | 14 ++++++++++++++ proto/CookRecipeData.proto | 7 +++++++ proto/CookRecipeDataNotify.proto | 15 +++++++++++++++ proto/PlayerCookArgsReq.proto | 16 ++++++++++++++++ proto/PlayerCookArgsRsp.proto | 15 +++++++++++++++ proto/PlayerCookReq.proto | 18 ++++++++++++++++++ proto/PlayerCookRsp.proto | 21 +++++++++++++++++++++ 8 files changed, 122 insertions(+) create mode 100644 proto/CookDataNotify.proto create mode 100644 proto/CookGradeDataNotify.proto create mode 100644 proto/CookRecipeData.proto create mode 100644 proto/CookRecipeDataNotify.proto create mode 100644 proto/PlayerCookArgsReq.proto create mode 100644 proto/PlayerCookArgsRsp.proto create mode 100644 proto/PlayerCookReq.proto create mode 100644 proto/PlayerCookRsp.proto diff --git a/proto/CookDataNotify.proto b/proto/CookDataNotify.proto new file mode 100644 index 000000000..ce1cddabc --- /dev/null +++ b/proto/CookDataNotify.proto @@ -0,0 +1,16 @@ +syntax = "proto3"; + +import "CookRecipeData.proto"; + +message CookDataNotify { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 156; + } + + uint32 grade = 1; + repeated CookRecipeData recipe_data_list = 2; +} diff --git a/proto/CookGradeDataNotify.proto b/proto/CookGradeDataNotify.proto new file mode 100644 index 000000000..268c260d1 --- /dev/null +++ b/proto/CookGradeDataNotify.proto @@ -0,0 +1,14 @@ +syntax = "proto3"; + + +message CookGradeDataNotify { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 117; + } + + uint32 grade = 1; +} diff --git a/proto/CookRecipeData.proto b/proto/CookRecipeData.proto new file mode 100644 index 000000000..5afba55a8 --- /dev/null +++ b/proto/CookRecipeData.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; + + +message CookRecipeData { + uint32 recipe_id = 1; + uint32 proficiency = 2; +} diff --git a/proto/CookRecipeDataNotify.proto b/proto/CookRecipeDataNotify.proto new file mode 100644 index 000000000..be48a8972 --- /dev/null +++ b/proto/CookRecipeDataNotify.proto @@ -0,0 +1,15 @@ +syntax = "proto3"; + +import "CookRecipeData.proto"; + +message CookRecipeDataNotify { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 192; + } + + CookRecipeData recipe_data = 1; +} diff --git a/proto/PlayerCookArgsReq.proto b/proto/PlayerCookArgsReq.proto new file mode 100644 index 000000000..6b6d43eef --- /dev/null +++ b/proto/PlayerCookArgsReq.proto @@ -0,0 +1,16 @@ +syntax = "proto3"; + + +message PlayerCookArgsReq { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 105; + } + + uint32 recipe_id = 1; + uint32 assist_avatar = 2; +} diff --git a/proto/PlayerCookArgsRsp.proto b/proto/PlayerCookArgsRsp.proto new file mode 100644 index 000000000..ba5d9a33b --- /dev/null +++ b/proto/PlayerCookArgsRsp.proto @@ -0,0 +1,15 @@ +syntax = "proto3"; + + +message PlayerCookArgsRsp { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 162; + } + + int32 retcode = 1; + float qte_range_ratio = 2; +} diff --git a/proto/PlayerCookReq.proto b/proto/PlayerCookReq.proto new file mode 100644 index 000000000..feacd2fa8 --- /dev/null +++ b/proto/PlayerCookReq.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + + +message PlayerCookReq { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 176; + } + + uint32 recipe_id = 1; + uint32 qte_quality = 2; + uint32 assist_avatar = 3; + uint32 cook_count = 4; +} diff --git a/proto/PlayerCookRsp.proto b/proto/PlayerCookRsp.proto new file mode 100644 index 000000000..1af43563e --- /dev/null +++ b/proto/PlayerCookRsp.proto @@ -0,0 +1,21 @@ +syntax = "proto3"; + +import "CookRecipeData.proto"; +import "ItemParam.proto"; + +message PlayerCookRsp { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 180; + } + + int32 retcode = 1; + CookRecipeData recipe_data = 2; + repeated ItemParam item_list = 3; + uint32 qte_quality = 4; + uint32 cook_count = 5; + repeated ItemParam extral_item_list = 6; +}