mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-12-22 03:45:10 +01:00
Implement viewing character details in character showcase
This commit is contained in:
16
proto/GetFriendShowAvatarInfoReq.proto
Normal file
16
proto/GetFriendShowAvatarInfoReq.proto
Normal 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;
|
||||
}
|
||||
19
proto/GetFriendShowAvatarInfoRsp.proto
Normal file
19
proto/GetFriendShowAvatarInfoRsp.proto
Normal 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;
|
||||
}
|
||||
24
proto/ShowAvatarInfo.proto
Normal file
24
proto/ShowAvatarInfo.proto
Normal 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
14
proto/ShowEquip.proto
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user