Implement viewing character details in character showcase

This commit is contained in:
LDA
2022-04-30 10:04:36 -07:00
committed by Melledy
parent 2fd73e043a
commit 64930b9ba9
9 changed files with 228 additions and 23 deletions

View File

@@ -0,0 +1,16 @@
syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
message GetFriendShowAvatarInfoReq {
enum CmdId {
option allow_alias = true;
ENET_CHANNEL_ID = 0;
NONE = 0;
ENET_IS_RELIABLE = 1;
IS_ALLOW_CLIENT = 1;
CMD_ID = 4007;
}
uint32 uid = 1;
}

View File

@@ -0,0 +1,19 @@
syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
import "ShowAvatarInfo.proto";
message GetFriendShowAvatarInfoRsp {
enum CmdId {
option allow_alias = true;
NONE = 0;
ENET_CHANNEL_ID = 0;
ENET_IS_RELIABLE = 1;
CMD_ID = 4008;
}
int32 retcode = 1;
uint32 uid = 2;
repeated ShowAvatarInfo show_avatar_info_list = 3;
}

View File

@@ -0,0 +1,24 @@
syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
import "AvatarFetterInfo.proto";
import "AvatarExcelInfo.proto";
import "PropValue.proto";
import "ShowEquip.proto";
message ShowAvatarInfo {
uint32 avatar_id = 1;
map<uint32, PropValue> prop_map = 2;
repeated uint32 talent_id_list = 3;
map<uint32, float> fight_prop_map = 4;
uint32 skill_depot_id = 5;
uint32 core_proud_skill_level = 6;
repeated uint32 inherent_proud_skill_list = 7;
map<uint32, uint32> skill_level_map = 8;
map<uint32, uint32> proud_skill_extra_level_map = 9;
repeated ShowEquip equip_list = 10;
AvatarFetterInfo fetter_info = 11;
uint32 costume_id = 12;
AvatarExcelInfo excel_info = 13;
}

14
proto/ShowEquip.proto Normal file
View File

@@ -0,0 +1,14 @@
syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
import "Reliquary.proto";
import "Weapon.proto";
message ShowEquip {
oneof Detail {
Reliquary reliquary = 2;
Weapon weapon = 3;
}
uint32 item_id = 1;
}