Add cooking protos.

This commit is contained in:
GanyusLeftHorn
2022-06-30 02:22:23 -07:00
committed by Melledy
parent 17c317ca1b
commit f55972577b
8 changed files with 48 additions and 72 deletions

View File

@@ -1,16 +1,13 @@
syntax = "proto3"; syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
import "CookRecipeData.proto"; import "CookRecipeData.proto";
// CmdId: 142
// EnetChannelId: 0
// EnetIsReliable: true
message CookDataNotify { message CookDataNotify {
enum CmdId { uint32 grade = 8;
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; repeated CookRecipeData recipe_data_list = 2;
} }

View File

@@ -1,14 +1,10 @@
syntax = "proto3"; syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
// CmdId: 111
// EnetChannelId: 0
// EnetIsReliable: true
message CookGradeDataNotify { message CookGradeDataNotify {
enum CmdId { uint32 grade = 6;
option allow_alias = true;
NONE = 0;
ENET_CHANNEL_ID = 0;
ENET_IS_RELIABLE = 1;
CMD_ID = 117;
}
uint32 grade = 1;
} }

View File

@@ -1,5 +1,6 @@
syntax = "proto3"; syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
message CookRecipeData { message CookRecipeData {
uint32 recipe_id = 1; uint32 recipe_id = 1;

View File

@@ -1,15 +1,12 @@
syntax = "proto3"; syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
import "CookRecipeData.proto"; import "CookRecipeData.proto";
// CmdId: 101
// EnetChannelId: 0
// EnetIsReliable: true
message CookRecipeDataNotify { 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; CookRecipeData recipe_data = 1;
} }

View File

@@ -1,16 +1,12 @@
syntax = "proto3"; syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
// CmdId: 104
// EnetChannelId: 0
// EnetIsReliable: true
// IsAllowClient: true
message PlayerCookArgsReq { message PlayerCookArgsReq {
enum CmdId { uint32 recipe_id = 3;
option allow_alias = true; uint32 assist_avatar = 15;
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;
} }

View File

@@ -1,15 +1,11 @@
syntax = "proto3"; syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
// CmdId: 105
// EnetChannelId: 0
// EnetIsReliable: true
message PlayerCookArgsRsp { message PlayerCookArgsRsp {
enum CmdId {
option allow_alias = true;
NONE = 0;
ENET_CHANNEL_ID = 0;
ENET_IS_RELIABLE = 1;
CMD_ID = 162;
}
int32 retcode = 1; int32 retcode = 1;
float qte_range_ratio = 2; float qte_range_ratio = 15;
} }

View File

@@ -1,18 +1,14 @@
syntax = "proto3"; syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
// CmdId: 158
// EnetChannelId: 0
// EnetIsReliable: true
// IsAllowClient: true
message PlayerCookReq { message PlayerCookReq {
enum CmdId { uint32 recipe_id = 6;
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 qte_quality = 2;
uint32 assist_avatar = 3; uint32 assist_avatar = 11;
uint32 cook_count = 4; uint32 cook_count = 7;
} }

View File

@@ -1,21 +1,18 @@
syntax = "proto3"; syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
import "CookRecipeData.proto"; import "CookRecipeData.proto";
import "ItemParam.proto"; import "ItemParam.proto";
// CmdId: 150
// EnetChannelId: 0
// EnetIsReliable: true
message PlayerCookRsp { message PlayerCookRsp {
enum CmdId { int32 retcode = 9;
option allow_alias = true; CookRecipeData recipe_data = 14;
NONE = 0; repeated ItemParam item_list = 13;
ENET_CHANNEL_ID = 0; uint32 qte_quality = 11;
ENET_IS_RELIABLE = 1; uint32 cook_count = 15;
CMD_ID = 180; repeated ItemParam extral_item_list = 3;
}
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;
} }