feature(serenitea pot): Implementation of enter

Ugly hard code
This commit is contained in:
Yazawazi
2022-05-14 03:20:20 +08:00
committed by Melledy
parent 27e817a6ce
commit 295f15eece
15 changed files with 371 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
message HomeChooseModuleReq {
enum CmdId {
option allow_alias = true;
ENET_CHANNEL_ID = 0;
NONE = 0;
ENET_IS_RELIABLE = 1;
IS_ALLOW_CLIENT = 1;
CMD_ID = 4530;
}
uint32 module_id = 1;
}

View File

@@ -0,0 +1,17 @@
syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
message HomeChooseModuleRsp {
enum CmdId {
option allow_alias = true;
NONE = 0;
ENET_CHANNEL_ID = 0;
ENET_IS_RELIABLE = 1;
CMD_ID = 4653;
}
int32 retcode = 1;
uint32 module_id = 2;
}

View File

@@ -0,0 +1,17 @@
syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
import "HomeModuleComfortInfo.proto";
message HomeComfortInfoNotify {
enum CmdId {
option allow_alias = true;
NONE = 0;
ENET_CHANNEL_ID = 0;
ENET_IS_RELIABLE = 1;
CMD_ID = 4557;
}
repeated HomeModuleComfortInfo module_info_list = 1;
}

View File

@@ -0,0 +1,10 @@
syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
message HomeModuleComfortInfo {
uint32 module_id = 1;
repeated uint32 world_scene_block_comfort_value_list = 2;
uint32 room_scene_comfort_value = 3;
}

View File

@@ -0,0 +1,12 @@
syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
import "FriendEnterHomeOption.proto";
message PlayerHomeCompInfo {
FriendEnterHomeOption friend_enter_home_option = 1;
repeated uint32 unlocked_module_id_list = 2;
repeated uint32 levelup_reward_got_level_list = 3;
repeated uint32 seen_module_id_list = 4;
}

View File

@@ -0,0 +1,17 @@
syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
import "PlayerHomeCompInfo.proto";
message PlayerHomeCompInfoNotify {
enum CmdId {
option allow_alias = true;
NONE = 0;
ENET_CHANNEL_ID = 0;
ENET_IS_RELIABLE = 1;
CMD_ID = 4628;
}
PlayerHomeCompInfo comp_info = 1;
}

View File

@@ -0,0 +1,18 @@
syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
message TryEnterHomeReq {
enum CmdId {
option allow_alias = true;
ENET_CHANNEL_ID = 0;
NONE = 0;
ENET_IS_RELIABLE = 1;
IS_ALLOW_CLIENT = 1;
CMD_ID = 4792;
}
uint32 target_uid = 1;
uint32 target_point = 2;
}

View File

@@ -0,0 +1,18 @@
syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
message TryEnterHomeRsp {
enum CmdId {
option allow_alias = true;
NONE = 0;
ENET_CHANNEL_ID = 0;
ENET_IS_RELIABLE = 1;
CMD_ID = 4690;
}
int32 retcode = 1;
uint32 target_uid = 2;
repeated uint32 param_list = 3;
}