mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-12-17 17:34:39 +01:00
Add cooking protos.
This commit is contained in:
16
proto/CookDataNotify.proto
Normal file
16
proto/CookDataNotify.proto
Normal file
@@ -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;
|
||||
}
|
||||
14
proto/CookGradeDataNotify.proto
Normal file
14
proto/CookGradeDataNotify.proto
Normal file
@@ -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;
|
||||
}
|
||||
7
proto/CookRecipeData.proto
Normal file
7
proto/CookRecipeData.proto
Normal file
@@ -0,0 +1,7 @@
|
||||
syntax = "proto3";
|
||||
|
||||
|
||||
message CookRecipeData {
|
||||
uint32 recipe_id = 1;
|
||||
uint32 proficiency = 2;
|
||||
}
|
||||
15
proto/CookRecipeDataNotify.proto
Normal file
15
proto/CookRecipeDataNotify.proto
Normal file
@@ -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;
|
||||
}
|
||||
16
proto/PlayerCookArgsReq.proto
Normal file
16
proto/PlayerCookArgsReq.proto
Normal file
@@ -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;
|
||||
}
|
||||
15
proto/PlayerCookArgsRsp.proto
Normal file
15
proto/PlayerCookArgsRsp.proto
Normal file
@@ -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;
|
||||
}
|
||||
18
proto/PlayerCookReq.proto
Normal file
18
proto/PlayerCookReq.proto
Normal file
@@ -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;
|
||||
}
|
||||
21
proto/PlayerCookRsp.proto
Normal file
21
proto/PlayerCookRsp.proto
Normal file
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user