proto for friendship p2

This commit is contained in:
Yuuki 2024-08-21 05:45:19 +08:00
parent 444f5ce0f9
commit 914007d231
33 changed files with 185 additions and 484 deletions

View File

@ -1,22 +1,7 @@
// https://github.com/SlushinPS/beach-simulator
// Copyright (C) 2023 Slushy Team
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
syntax = "proto3"; syntax = "proto3";
option java_package = "emu.grasscutter.net.proto"; option java_package = "emu.grasscutter.net.proto";
// CmdId: 22083 // 4.7.0
// Obf: PDKOLMGNNBP // CmdId: 22689
// Obf: IOBLPIFEACE
message AddBackupAvatarTeamReq { message AddBackupAvatarTeamReq {
} }

View File

@ -1,25 +1,10 @@
// https://github.com/SlushinPS/beach-simulator
// Copyright (C) 2023 Slushy Team
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
syntax = "proto3"; syntax = "proto3";
option java_package = "emu.grasscutter.net.proto"; option java_package = "emu.grasscutter.net.proto";
import "FriendBrief.proto"; import "FriendBrief.proto";
// CmdId: 27323 // 4.7.0
// Obf: NADOGBCLNJI // CmdId: 27545?,147
// Obf: GGACHDHALAE
message AskAddFriendNotify { message AskAddFriendNotify {
uint32 target_uid = 3; uint32 target_uid = 12;
FriendBrief target_friend_brief = 7; FriendBrief target_friend_brief = 9;
} }

View File

@ -1,23 +1,8 @@
// https://github.com/SlushinPS/beach-simulator
// Copyright (C) 2023 Slushy Team
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
syntax = "proto3"; syntax = "proto3";
option java_package = "emu.grasscutter.net.proto"; option java_package = "emu.grasscutter.net.proto";
// CmdId: 9257 // 4.7.0
// Obf: DHLNDCPMCPG // CmdId: 4872
// Obf: BDGPNIDOEIB
message AskAddFriendReq { message AskAddFriendReq {
uint32 target_uid = 8; uint32 target_uid = 11;
} }

View File

@ -1,25 +1,10 @@
// https://github.com/SlushinPS/beach-simulator
// Copyright (C) 2023 Slushy Team
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
syntax = "proto3"; syntax = "proto3";
option java_package = "emu.grasscutter.net.proto"; option java_package = "emu.grasscutter.net.proto";
// CmdId: 1146 // 4.7.0
// Obf: DGNBHNPCBNC // CmdId: 3297
// Obf: ?
message AskAddFriendRsp { message AskAddFriendRsp {
uint32 target_uid = 3; uint32 target_uid = 14;
int32 retcode = 15; int32 retcode = 15; // OK
uint32 param = 7; uint32 param = 13;
} }

View File

@ -1,11 +1,11 @@
syntax = "proto3"; syntax = "proto3";
option java_package = "emu.grasscutter.net.proto"; option java_package = "emu.grasscutter.net.proto";
// 4.7.0
// 4.6.0
enum ChangeHpDebts { enum ChangeHpDebts {
CHANGE_HP_DEBTS_NONE = 0; CHANGE_HP_DEBTS_NONE = 0;
CHANGE_HP_DEBTS_PAY = 1; CHANGE_HP_DEBTS_PAY = 1;
CHANGE_HP_DEBTS_PAYFINISH = 2; CHANGE_HP_DEBTS_PAY_FINISH = 2;
CHANGE_HP_DEBTS_CLEAR = 21; CHANGE_HP_DEBTS_CLEAR = 21;
CHANGE_HP_DEBTS_ADDABILiTY = 51; CHANGE_HP_DEBTS_REDUCE_ABILITY = 41;
CHANGE_HP_DEBTS_ADD_ABILITY = 51;
} }

View File

@ -1,7 +1,7 @@
syntax = "proto3"; syntax = "proto3";
option java_package = "emu.grasscutter.net.proto"; option java_package = "emu.grasscutter.net.proto";
//obf: MKHKMLCFAAJ // 4.7.0
enum ChangeHpReason { enum ChangeHpReason {
CHANGE_HP_REASON_NONE = 0; CHANGE_HP_REASON_NONE = 0;
CHANGE_HP_REASON_SUB_AVATAR = 1; CHANGE_HP_REASON_SUB_AVATAR = 1;

View File

@ -1,24 +1,9 @@
// https://github.com/SlushinPS/beach-simulator
// Copyright (C) 2023 Slushy Team
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
syntax = "proto3"; syntax = "proto3";
option java_package = "emu.grasscutter.net.proto"; option java_package = "emu.grasscutter.net.proto";
// CmdId: 29260 // 4.7.0
// Obf: GIEGGDAJFBE // CmdId: 26305
// Obf: MOANBPAGANO
message ChangeMpTeamAvatarReq { message ChangeMpTeamAvatarReq {
uint64 cur_avatar_guid = 2; uint64 cur_avatar_guid = 2; // OK
repeated uint64 avatar_guid_list = 12; repeated uint64 avatar_guid_list = 11;
} }

View File

@ -1,25 +1,10 @@
// https://github.com/SlushinPS/beach-simulator
// Copyright (C) 2023 Slushy Team
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
syntax = "proto3"; syntax = "proto3";
option java_package = "emu.grasscutter.net.proto"; option java_package = "emu.grasscutter.net.proto";
// CmdId: 352 // 4.7.0
// Obf: LFHCFAFFODE // CmdId: 23226
// Obf: GJEGHGGGHDN
message ChangeMpTeamAvatarRsp { message ChangeMpTeamAvatarRsp {
repeated uint64 avatar_guid_list = 10; repeated uint64 avatar_guid_list = 4;
uint64 cur_avatar_guid = 13; uint64 cur_avatar_guid = 3;
int32 retcode = 9; int32 retcode = 14;
} }

View File

@ -1,12 +1,10 @@
syntax = "proto3"; syntax = "proto3";
option java_package = "emu.grasscutter.net.proto"; option java_package = "emu.grasscutter.net.proto";
// CmdId: 22940
// CmdId: 9147 // Version: 4.7.0
// Version: 4.6.0 // Obfs: DAJOOCKKLLJ ?
// Obfs: LOCACCFEBLN
message ClientLoadingCostumeVerificationNotify { message ClientLoadingCostumeVerificationNotify {
uint64 prefab_hash = 2; uint64 prefab_hash = 15;
uint32 costume_id = 4; uint32 costume_id = 2;
uint64 guid = 6; uint64 guid = 10;
} }

View File

@ -1,26 +1,11 @@
// https://github.com/SlushinPS/beach-simulator
// Copyright (C) 2023 Slushy Team
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
syntax = "proto3"; syntax = "proto3";
option java_package = "emu.grasscutter.net.proto"; option java_package = "emu.grasscutter.net.proto";
// CmdId: 3165 // 4.7.0
// Obf: KPKNHHAMCOG // CmdId: 1503
// Obf: ?
message ClientScriptEventNotify { message ClientScriptEventNotify {
uint32 source_entity_id = 14; uint32 source_entity_id = 5;
uint32 target_entity_id = 1; uint32 target_entity_id = 2;
uint32 event_type = 4; uint32 event_type = 10;
repeated int32 param_list = 2; repeated int32 param_list = 4;
} }

View File

@ -1,25 +1,9 @@
// https://github.com/SlushinPS/beach-simulator
// Copyright (C) 2023 Slushy Team
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
syntax = "proto3"; syntax = "proto3";
option java_package = "emu.grasscutter.net.proto"; option java_package = "emu.grasscutter.net.proto";
import "DealAddFriendResultType.proto"; import "DealAddFriendResultType.proto";
// CmdId: 25212 // CmdId: 1458
// Obf: FAIFBJNFCAG // Obf: MDIDNIHDCCK
message DealAddFriendReq { message DealAddFriendReq {
DealAddFriendResultType deal_add_friend_result = 11; DealAddFriendResultType deal_add_friend_result = 1;
uint32 target_uid = 1; uint32 target_uid = 7;
} }

View File

@ -1,26 +1,10 @@
// https://github.com/SlushinPS/beach-simulator
// Copyright (C) 2023 Slushy Team
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
syntax = "proto3"; syntax = "proto3";
option java_package = "emu.grasscutter.net.proto"; option java_package = "emu.grasscutter.net.proto";
import "DealAddFriendResultType.proto"; import "DealAddFriendResultType.proto";
// CmdId: 9178 // CmdId: 29333
// Obf: BCEPNMLPFLB // Obf: BPBCKIEJHOO
message DealAddFriendRsp { message DealAddFriendRsp {
int32 retcode = 6; int32 retcode = 3;
uint32 target_uid = 12; uint32 target_uid = 8;
DealAddFriendResultType deal_add_friend_result = 7; DealAddFriendResultType deal_add_friend_result = 4;
} }

View File

@ -1,23 +1,8 @@
// https://github.com/SlushinPS/beach-simulator
// Copyright (C) 2023 Slushy Team
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
syntax = "proto3"; syntax = "proto3";
option java_package = "emu.grasscutter.net.proto"; option java_package = "emu.grasscutter.net.proto";
// CmdId: 9455 // 4.7.0
// Obf: KIFNLHMNCMM // CmdId: 20273
// Obf: GIMKMOAJCLA
message DelBackupAvatarTeamReq { message DelBackupAvatarTeamReq {
uint32 backup_avatar_team_id = 10; uint32 backup_avatar_team_id = 9;
} }

View File

@ -1,24 +1,9 @@
// https://github.com/SlushinPS/beach-simulator
// Copyright (C) 2023 Slushy Team
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
syntax = "proto3"; syntax = "proto3";
option java_package = "emu.grasscutter.net.proto"; option java_package = "emu.grasscutter.net.proto";
// CmdId: 3661 // 4.7.0
// Obf: FFNGPJOGGAC // CmdId: 5780
// Obf: PIDEENPNKFG
message DelBackupAvatarTeamRsp { message DelBackupAvatarTeamRsp {
int32 retcode = 6; int32 retcode = 1;
uint32 backup_avatar_team_id = 14; uint32 backup_avatar_team_id = 15;
} }

View File

@ -1,23 +1,7 @@
// https://github.com/SlushinPS/beach-simulator
// Copyright (C) 2023 Slushy Team
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
syntax = "proto3"; syntax = "proto3";
option java_package = "emu.grasscutter.net.proto"; option java_package = "emu.grasscutter.net.proto";
// CmdId: 3037 // CmdId: 26120
// Obf: PALNPHNIHDF // Obf: BPDICGMOACG
message DeleteFriendReq { message DeleteFriendReq {
uint32 target_uid = 11; uint32 target_uid = 4;
} }

View File

@ -1,23 +1,8 @@
// https://github.com/SlushinPS/beach-simulator
// Copyright (C) 2023 Slushy Team
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
syntax = "proto3"; syntax = "proto3";
option java_package = "emu.grasscutter.net.proto"; option java_package = "emu.grasscutter.net.proto";
import "MotionInfo.proto"; import "MotionInfo.proto";
// Obf: LHBMDEAGHFD // 4.7.0 ?
// Obf: ?
message EntityMoveInfo { message EntityMoveInfo {
uint32 entity_id = 1; uint32 entity_id = 1;
MotionInfo motion_info = 2; MotionInfo motion_info = 2;

View File

@ -1,34 +1,19 @@
// https://github.com/SlushinPS/beach-simulator
// Copyright (C) 2023 Slushy Team
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
syntax = "proto3"; syntax = "proto3";
option java_package = "emu.grasscutter.net.proto"; option java_package = "emu.grasscutter.net.proto";
import "ForwardType.proto"; import "ForwardType.proto";
import "HitColliderType.proto"; import "HitColliderType.proto";
import "Vector.proto"; import "Vector.proto";
// CmdId: 23746 // 4.7.0
// Obf: LAFKEDKPKIM // CmdId: 5735
// Obf: ?
message EvtBulletHitNotify { message EvtBulletHitNotify {
ForwardType forward_type = 3; ForwardType forward_type = 1;
HitColliderType hit_collider_type = 5; HitColliderType hit_collider_type = 7;
uint32 KDBDDHAOOME = 6; Vector hit_point = 5; // sus
Vector hit_point = 1; Vector hit_normal = 11; // sus
uint32 HNMABCLIAMB = 7; uint32 entity_id = 6;
Vector hit_normal = 4; int32 hit_box_index = 14;
uint32 entity_id = 9; uint32 forward_peer = 9;
int32 hit_box_index = 12; uint32 uk1 = 8;
uint32 forward_peer = 8; uint32 uk2 = 15;
} }

View File

@ -1,28 +1,13 @@
// https://github.com/SlushinPS/beach-simulator
// Copyright (C) 2023 Slushy Team
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
syntax = "proto3"; syntax = "proto3";
option java_package = "emu.grasscutter.net.proto"; option java_package = "emu.grasscutter.net.proto";
// CmdId: 21665 // 4.7.0
// Obf: DNNMIGPCKOH // CmdId: 4777
// Obf: ?
message GetOnlinePlayerInfoReq { message GetOnlinePlayerInfoReq {
bool is_online_id = 7; bool is_online_id = 9;
oneof player_id { oneof player_id {
uint32 target_uid = 3; uint32 target_uid = 10;
string online_id = 11; string online_id = 8;
string psn_id = 4; string psn_id = 3;
} }
} }

View File

@ -1,27 +1,12 @@
// https://github.com/SlushinPS/beach-simulator
// Copyright (C) 2023 Slushy Team
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
syntax = "proto3"; syntax = "proto3";
option java_package = "emu.grasscutter.net.proto"; option java_package = "emu.grasscutter.net.proto";
import "OnlinePlayerInfo.proto"; import "OnlinePlayerInfo.proto";
// CmdId: 8759 // 4.7.0
// Obf: LDNOEIHGGKN // CmdId: 1490
// Obf: ACFKBEAGCNK
message GetOnlinePlayerInfoRsp { message GetOnlinePlayerInfoRsp {
uint32 target_uid = 2; uint32 target_uid = 2; // OK
OnlinePlayerInfo target_player_info = 14; OnlinePlayerInfo target_player_info = 12;
uint32 param = 5; uint32 param = 7;
int32 retcode = 6; int32 retcode = 13;
} }

View File

@ -1,22 +1,7 @@
// https://github.com/SlushinPS/beach-simulator
// Copyright (C) 2023 Slushy Team
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
syntax = "proto3"; syntax = "proto3";
option java_package = "emu.grasscutter.net.proto"; option java_package = "emu.grasscutter.net.proto";
// CmdId: 3520 // 4.7.0
// Obf: FHNBEAINLJA // CmdId: 23308
// Obf: ?
message GetPlayerAskFriendListReq { message GetPlayerAskFriendListReq {
} }

View File

@ -1,25 +1,9 @@
// https://github.com/SlushinPS/beach-simulator
// Copyright (C) 2023 Slushy Team
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
syntax = "proto3"; syntax = "proto3";
option java_package = "emu.grasscutter.net.proto"; option java_package = "emu.grasscutter.net.proto";
import "FriendBrief.proto"; import "FriendBrief.proto";
// CmdId: 20085 // CmdId: 8429
// Obf: JGLDEDHOMNL // Obf: ?
message GetPlayerAskFriendListRsp { message GetPlayerAskFriendListRsp {
repeated FriendBrief ask_friend_list = 12; repeated FriendBrief ask_friend_list = 6;
int32 retcode = 13; int32 retcode = 12;
} }

View File

@ -1,6 +1,5 @@
syntax = "proto3"; syntax = "proto3";
option java_package = "emu.grasscutter.net.proto"; option java_package = "emu.grasscutter.net.proto";
// 4.7.0 ?
// 4.6.0
message GetPlayerFriendListReq { message GetPlayerFriendListReq {
} }

View File

@ -1,8 +1,6 @@
syntax = "proto3"; syntax = "proto3";
option java_package = "emu.grasscutter.net.proto"; option java_package = "emu.grasscutter.net.proto";
import "FriendBrief.proto"; import "FriendBrief.proto";
// 4.7.0 // 4.7.0
message GetPlayerFriendListRsp { message GetPlayerFriendListRsp {
repeated FriendBrief friend_list = 1; repeated FriendBrief friend_list = 1;

View File

@ -4,7 +4,7 @@ import "OnlinePlayerInfo.proto";
// CmdId: 7182 ? (4.7.0) // CmdId: 7182 ? (4.7.0)
// Obf: HKDJLHPMDFP // Obf: HKDJLHPMDFP
message PlayerApplyEnterMpNotify { message PlayerApplyEnterMpNotify {
uint32 src_app_id = 15; uint32 src_app_id = 9;
uint32 src_thread_index = 9; uint32 src_thread_index = 15;
OnlinePlayerInfo src_player_info = 14; OnlinePlayerInfo src_player_info = 14;
} }

View File

@ -1,7 +1,7 @@
syntax = "proto3"; syntax = "proto3";
option java_package = "emu.grasscutter.net.proto"; option java_package = "emu.grasscutter.net.proto";
// CmdId: 1143 (4.7.0) // CmdId: 27203 (4.7.0)
// Obf: BFHAGEOJCPG // Obf: BPINAIKKBEL
message PlayerApplyEnterMpResultNotify { message PlayerApplyEnterMpResultNotify {
enum Reason { enum Reason {

View File

@ -1,11 +1,10 @@
syntax = "proto3"; syntax = "proto3";
option java_package = "emu.grasscutter.net.proto"; option java_package = "emu.grasscutter.net.proto";
import "ChatInfo.proto"; import "ChatInfo.proto";
// 4.7.0
// 4.6.0 // CmdId: 1772
// CmdId: 9695 // OJDDKJJMMKK
message PlayerChatNotify { message PlayerChatNotify {
ChatInfo chat_info = 9; ChatInfo chat_info = 6;
uint32 channel_id = 12; uint32 channel_id = 2;
} }

View File

@ -1,11 +1,9 @@
syntax = "proto3"; syntax = "proto3";
option java_package = "emu.grasscutter.net.proto"; option java_package = "emu.grasscutter.net.proto";
import "ChatInfo.proto"; import "ChatInfo.proto";
// 4.7.0
// 4.6.0 // CmdId: 5171?
// CmdId: 26464
message PlayerChatReq { message PlayerChatReq {
uint32 channel_id = 9; uint32 channel_id = 1;
ChatInfo chat_info = 10; ChatInfo chat_info = 9;
} }

View File

@ -7,23 +7,23 @@ import "MapLayerInfo.proto";
// 4.7.0 // 4.7.0
message PlayerEnterSceneNotify { message PlayerEnterSceneNotify {
uint32 target_uid = 7; uint32 target_uid = 7; // OK
uint64 scene_begin_time = 6; uint64 scene_begin_time = 6; // OK
uint32 scene_id = 13; uint32 scene_id = 13; // OK
uint32 enter_scene_token = 15; uint32 enter_scene_token = 15; // OK
string scene_transaction = 607; string scene_transaction = 607; // OK
repeated uint32 scene_tag_id_list = 9; repeated uint32 scene_tag_id_list = 9; // OK
Vector pos = 10; Vector pos = 10; // OK
EnterType type = 1; EnterType type = 1; // OK
uint32 create_player_uid = 1749; uint32 create_player_uid = 1749; // OK
MapLayerInfo map_layer_info = 1413; MapLayerInfo map_layer_info = 1413; // OK
bool is_skip_ui = 237; bool is_skip_ui = 237;
bool is_first_login_enter_scene = 289; bool is_first_login_enter_scene = 289;
Vector prev_pos = 1414; Vector prev_pos = 1414;
uint32 prev_scene_id = 81; uint32 prev_scene_id = 81;
uint32 world_type = 1327; uint32 world_type = 1327;
uint32 enter_reason = 670; uint32 enter_reason = 670;
uint32 LAJGLCIFKCP = 1820; // uint32 LAJGLCIFKCP = 1820;
uint32 world_level = 5; uint32 world_level = 5;
uint32 dungeon_id = 11; uint32 dungeon_id = 11;
} }

View File

@ -1,32 +1,15 @@
// https://github.com/SlushinPS/beach-simulator
// Copyright (C) 2023 Slushy Team
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
syntax = "proto3"; syntax = "proto3";
option java_package = "emu.grasscutter.net.proto"; option java_package = "emu.grasscutter.net.proto";
// CmdId: 23905 // 4.7.0
// Obf: ONELCJDDCIP // CmdId: 22149
// Obf: GPMDAELMECF
message PlayerPreEnterMpNotify { message PlayerPreEnterMpNotify {
// Obf: CIAEAJLPCDG
enum State { enum State {
INVALID = 0; INVALID = 0;
START = 1; START = 1;
TIMEOUT = 2; TIMEOUT = 2;
} }
State state = 7;
State state = 11; string nickname = 2;
string nickname = 10; uint32 uid = 3;
uint32 uid = 5;
} }

View File

@ -1,9 +1,9 @@
syntax = "proto3"; syntax = "proto3";
option java_package = "emu.grasscutter.net.proto"; option java_package = "emu.grasscutter.net.proto";
import "ChatInfo.proto"; import "ChatInfo.proto";
// 4.7.0 // 4.7.0
// CmdId: 7936
// ?
message PrivateChatNotify { message PrivateChatNotify {
ChatInfo chat_info = 14; ChatInfo chat_info = 14;
} }

View File

@ -1,9 +1,9 @@
syntax = "proto3"; syntax = "proto3";
option java_package = "emu.grasscutter.net.proto"; option java_package = "emu.grasscutter.net.proto";
import "ChatInfo.proto"; import "ChatInfo.proto";
// 4.7.0 // 4.7.0
// CmdId: 23154
// ?
message PullPrivateChatRsp { message PullPrivateChatRsp {
repeated ChatInfo chat_info = 1; repeated ChatInfo chat_info = 1;
int32 retcode = 9; int32 retcode = 9;

View File

@ -1,9 +1,9 @@
syntax = "proto3"; syntax = "proto3";
option java_package = "emu.grasscutter.net.proto"; option java_package = "emu.grasscutter.net.proto";
import "ChatInfo.proto"; import "ChatInfo.proto";
// 4.7.0 // 4.7.0
// CmdId: 523
// ?
message PullRecentChatRsp { message PullRecentChatRsp {
repeated ChatInfo chat_info = 9; repeated ChatInfo chat_info = 9;
int32 retcode = 14; int32 retcode = 14;

View File

@ -2,11 +2,11 @@ syntax = "proto3";
option java_package = "emu.grasscutter.net.proto"; option java_package = "emu.grasscutter.net.proto";
import "MotionInfo.proto"; import "MotionInfo.proto";
// 4.7.0 // 4.7.0
// CmdId: 6446 // CmdId: 28352, 6446X
// Obf: CNFNMBHLHEK // Obf: CNFNMBHLHEK
message SceneEntityMoveNotify { message SceneEntityMoveNotify {
MotionInfo motion_info = 3; MotionInfo motion_info = 1;
uint32 entity_id = 15; uint32 entity_id = 15; // OK
uint32 reliable_seq = 12; uint32 reliable_seq = 3;
uint32 scene_time = 8; uint32 scene_time = 4;
} }