Add miss proto

Note: this is an old proto not 3.4 so it doesn't necessarily work, then in 3.5 the music event changes so maybe it's removed in the future and includes the fireworks function?
This commit is contained in:
Akbar Yahya 2023-02-23 09:23:31 +08:00
parent b9e9ec9865
commit af7b97985f
34 changed files with 1668 additions and 52 deletions

View File

@ -0,0 +1,24 @@
// Proto has been converted from Sorapointa to Grasscutter format
// Sorapointa - A server software re-implementation for a certain anime game, and avoid sorapointa.
// Copyright (C) 2022 Sorapointa 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";
option java_package = "emu.grasscutter.net.proto";
message AbilityMixinCostStamina {
bool is_swim = 7;
}

11
proto/FireWorkData.proto Normal file
View File

@ -0,0 +1,11 @@
// Proto has been converted from Sorapointa to Grasscutter format
syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
import "FireWorkInstance.proto";
message FireWorkData {
uint32 id = 1;
repeated FireWorkInstance fireWorkInstance = 2;
}

View File

@ -0,0 +1,11 @@
// Proto has been converted from Sorapointa to Grasscutter format
syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
import "FireWorkType.proto";
message FireWorkInstance {
FireWorkType type = 1;
int32 value = 2;
}

View File

@ -0,0 +1,13 @@
// Proto has been converted from Sorapointa to Grasscutter format
syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
import "FireWorkData.proto";
// CmdId: 6079
// EnetChannelId: 0
// EnetIsReliable: true
message FireWorkNotify {
repeated FireWorkData fireWorkData = 1;
}

14
proto/FireWorkReq.proto Normal file
View File

@ -0,0 +1,14 @@
// Proto has been converted from Sorapointa to Grasscutter format
syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
import "FireWorkData.proto";
// CmdId: 6068
// EnetChannelId: 0
// EnetIsReliable: true
// IsAllowClient: true
message FireWorkReq {
FireWorkData fireWorkData = 7;
}

13
proto/FireWorkType.proto Normal file
View File

@ -0,0 +1,13 @@
// Proto has been converted from Sorapointa to Grasscutter format
syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
enum FireWorkType {
FireWorkType_ODJKANKMPPJ = 0;
FireWorkType_EFGLHEIODFN = 1;
FireWorkType_JPBBBCFGHAK = 2;
FireWorkType_IDCMGHBHBFH = 3;
FireWorkType_ODDBNNDFMBO = 4;
FireWorkType_AGIDMOGJOBD = 5;
}

View File

@ -0,0 +1,12 @@
// Proto has been converted from Sorapointa to Grasscutter format
syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
import "FireWorkInstance.proto";
message FireworkSetData {
uint32 id = 1;
repeated uint32 _unknown_field_ = 2;
repeated FireWorkInstance fireWorkInstance = 3;
}

View File

@ -0,0 +1,14 @@
// Proto has been converted from Sorapointa to Grasscutter format
syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
import "FireworkSetData.proto";
// CmdId: 5934
// EnetChannelId: 0
// EnetIsReliable: true
message FireworkSetNotify {
uint32 code = 1;
repeated FireworkSetData data = 9;
}

View File

@ -0,0 +1,14 @@
// Proto has been converted from Sorapointa to Grasscutter format
syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
import "FireworkSetData.proto";
// CmdId: 6099
// EnetChannelId: 0
// EnetIsReliable: true
// IsAllowClient: true
message FireworkSetReq {
FireworkSetData data = 2;
}

View File

@ -0,0 +1,11 @@
// Proto has been converted from Sorapointa to Grasscutter format
syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
// CmdId: 5969
// EnetChannelId: 0
// EnetIsReliable: true
message NBFJOJPCCEK_Rsp {
int32 retcode = 7;
}

11
proto/MusicBeatmap.proto Normal file
View File

@ -0,0 +1,11 @@
// Proto has been converted from Sorapointa to Grasscutter format
syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
import "MusicBeatmapList.proto";
message MusicBeatmap {
uint32 music_id = 1;
repeated MusicBeatmapList beatmap_item_list = 2;
}

View File

@ -0,0 +1,10 @@
// Proto has been converted from Sorapointa to Grasscutter format
syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
import "MusicBeatmapNote.proto";
message MusicBeatmapList {
repeated MusicBeatmapNote beatmap_note_list = 1;
}

View File

@ -0,0 +1,9 @@
// Proto has been converted from Sorapointa to Grasscutter format
syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
message MusicBeatmapNote {
uint32 start_time = 1;
uint32 end_time = 2;
}

View File

@ -1,12 +1,10 @@
syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
import "MusicBriefInfo.proto";
import "MusicGameRecord.proto";
option java_package = "emu.grasscutter.net.proto";
message MusicGameActivityDetailInfo {
repeated MusicBriefInfo Unk3300_AAGCDCOIPJM = 2;
repeated MusicBriefInfo Unk3300_OKHAACGHMAP = 6;

View File

@ -0,0 +1,22 @@
// Proto has been converted from Sorapointa to Grasscutter format
syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
import "MusicBeatmap.proto";
import "MusicBriefInfo.proto";
import "MusicGameUnknown1Enum.proto";
// CmdId: 6326
// EnetChannelId: 0
// EnetIsReliable: true
// IsAllowClient: true
message MusicGameCreateBeatmapReq {
MusicGameUnknown1Enum unknown_enum1 = 12;
oneof beatmap {
MusicBeatmap music_record = 10;
}
oneof brief_info {
MusicBriefInfo music_brief_info = 1021;
}
}

View File

@ -0,0 +1,16 @@
// Proto has been converted from Sorapointa to Grasscutter format
syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
import "MusicGameUnknown1Enum.proto";
// CmdId: 6347
// EnetChannelId: 0
// EnetIsReliable: true
message MusicGameCreateBeatmapRsp {
int32 retcode = 10;
MusicGameUnknown1Enum unknown_enum1 = 12;
uint64 music_share_id = 5;
}

View File

@ -0,0 +1,20 @@
// Proto has been converted from Sorapointa to Grasscutter format
syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
import "MusicGameUnknown2Enum.proto";
import "MusicGameGetBeatmapReqType.proto";
import "MusicGameUnknown1Enum.proto";
// CmdId: 6318
// EnetChannelId: 0
// EnetIsReliable: true
// IsAllowClient: true
message MusicGameGetBeatmapReq {
MusicGameUnknown1Enum unknown_enum1 = 1;
uint64 music_share_id = 10;
MusicGameUnknown2Enum unknown_enum2 = 12;
bool CDFOGGDLKNA = 15;
MusicGameGetBeatmapReqType req_type = 11;
}

View File

@ -0,0 +1,15 @@
// Proto has been converted from Sorapointa to Grasscutter format
syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
enum MusicGameGetBeatmapReqType {
MusicGameGetBeatmapReqType_u1 = 0;
// edit_beatmap
MusicGameGetBeatmapReqType_u2 = 1;
// play_others
MusicGameGetBeatmapReqType_u3 = 2;
// try
MusicGameGetBeatmapReqType_u4 = 3;
MusicGameGetBeatmapReqType_u5 = 4;
}

View File

@ -0,0 +1,25 @@
// Proto has been converted from Sorapointa to Grasscutter format
syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
import "MusicGameGetBeatmapReqType.proto";
import "MusicBeatmap.proto";
import "MusicBriefInfo.proto";
import "MusicGameUnknown1Enum.proto";
// CmdId: 6309
// EnetChannelId: 0
// EnetIsReliable: true
message MusicGameGetBeatmapRsp {
int32 retcode = 13;
MusicGameUnknown1Enum unknown_enum1 = 1;
uint64 music_share_id = 5;
MusicGameGetBeatmapReqType req_type = 2;
oneof beatmap {
MusicBeatmap music_record = 9;
}
oneof brief_info {
MusicBriefInfo music_brief_info = 953;
}
}

View File

@ -2,9 +2,6 @@ syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
message MusicGameRecord {
bool isUnlock = 8;
uint32 maxScore = 15;

View File

@ -0,0 +1,15 @@
// Proto has been converted from Sorapointa to Grasscutter format
syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
import "MusicGameUnknown1Enum.proto";
// CmdId: 6343
// EnetChannelId: 0
// EnetIsReliable: true
// IsAllowClient: true
message MusicGameSearchBeatmapReq {
MusicGameUnknown1Enum unknown_enum1 = 10;
uint64 music_share_id = 6;
}

View File

@ -0,0 +1,19 @@
// Proto has been converted from Sorapointa to Grasscutter format
syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
import "MusicBriefInfo.proto";
import "MusicGameUnknown1Enum.proto";
// CmdId: 6304
// EnetChannelId: 0
// EnetIsReliable: true
message MusicGameSearchBeatmapRsp {
int32 retcode = 9;
MusicGameUnknown1Enum unknown_enum1 = 3;
uint64 music_share_id = 4;
oneof ELBEIFGDBMM {
MusicBriefInfo music_brief_info = 11;
}
}

View File

@ -2,18 +2,7 @@ syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
message MusicGameSettleReq {
//enum COBMENDFOKN {
// option allow_alias= true;
// NONE = 0;
// PEPPOHPHJOJ = 8066;
// DCDNILFDFLB = 0;
// NNBKOLMPOEA = 1;
// EAJIABGAOCI = 1;
//}
uint64 ugcGuid = 4;
repeated uint32 Unk3300_HHBCEPNLCLL = 1626;

View File

@ -2,17 +2,7 @@ syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
message MusicGameSettleRsp {
//enum EHMCDJNMHDC {
// option allow_alias= true;
// NONE = 0;
// PEPPOHPHJOJ = 8735;
// DCDNILFDFLB = 0;
// NNBKOLMPOEA = 1;
//}
int32 retcode = 9;
bool isUnlockNextLevel = 1;

View File

@ -2,20 +2,9 @@ syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
message MusicGameStartReq {
//enum EMDPLMFEJCP {
// option allow_alias= true;
// NONE = 0;
// PEPPOHPHJOJ = 8536;
// DCDNILFDFLB = 0;
// NNBKOLMPOEA = 1;
// EAJIABGAOCI = 1;
//}
uint64 ugcGuid = 5;
uint64 ugcGuid = 5;
uint32 musicBasicId = 7;
bool isSaveScore = 15;
}

View File

@ -2,19 +2,8 @@ syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
message MusicGameStartRsp {
//enum PFNNLOBODEB {
// option allow_alias= true;
// NONE = 0;
// PEPPOHPHJOJ = 8893;
// DCDNILFDFLB = 0;
// NNBKOLMPOEA = 1;
//}
int32 retcode = 10;
int32 retcode = 10;
uint64 ugcGuid = 8;
uint32 musicBasicId = 15;
}

View File

@ -0,0 +1,14 @@
// Proto has been converted from Sorapointa to Grasscutter format
syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
import "MusicGameUnknown1Enum.proto";
// CmdId: 6302
// EnetChannelId: 0
// EnetIsReliable: true
// IsAllowClient: true
message MusicGameStartToPlayOthersBeatmapReq {
MusicGameUnknown1Enum unknown_enum1 = 12;
}

View File

@ -0,0 +1,15 @@
// Proto has been converted from Sorapointa to Grasscutter format
syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
import "MusicGameUnknown1Enum.proto";
// CmdId: 6313
// EnetChannelId: 0
// EnetIsReliable: true
message MusicGameStartToPlayOthersBeatmapRsp {
int32 retcode = 2;
MusicGameUnknown1Enum unknown_enum1 = 11;
repeated uint64 AMNODOLNOIM = 6;
}

View File

@ -0,0 +1,9 @@
// Proto has been converted from Sorapointa to Grasscutter format
syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
enum MusicGameUnknown1Enum {
MusicGameUnknown1Enum_NONE = 0;
MusicGameUnknown1Enum_u2 = 1;
}

View File

@ -0,0 +1,10 @@
// Proto has been converted from Sorapointa to Grasscutter format
syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
enum MusicGameUnknown2Enum {
MusicGameUnknown2Enum_u1 = 0;
MusicGameUnknown2Enum_MINE = 1;
MusicGameUnknown2Enum_u3 = 2;
}

41
proto/PacketHead.proto Normal file
View File

@ -0,0 +1,41 @@
// Proto has been converted from Sorapointa to Grasscutter format
// Sorapointa - A server software re-implementation for a certain anime game, and avoid sorapointa.
// Copyright (C) 2022 Sorapointa 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";
option java_package = "emu.grasscutter.net.proto";
message PacketHead {
uint32 packet_id = 1;
uint32 rpc_id = 2;
uint32 client_sequence_id = 3;
uint32 enet_channel_id = 4;
uint32 enet_is_reliable = 5;
uint64 sent_ms = 6;
uint32 user_id = 11;
uint32 user_ip = 12;
uint32 user_session_id = 13;
uint64 recv_time_ms = 21;
uint32 rpc_begin_time_ms = 22;
map<uint32, uint32> ext_map = 23;
uint32 sender_app_id = 24;
uint32 source_service = 31;
uint32 target_service = 32;
map<uint32, uint32> service_app_id_map = 33;
bool is_set_game_thread = 34;
uint32 game_thread_index = 35;
}

View File

@ -0,0 +1,30 @@
// Proto has been converted from Sorapointa to Grasscutter format
// Sorapointa - A server software re-implementation for a certain anime game, and avoid sorapointa.
// Copyright (C) 2022 Sorapointa 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";
import "RegionSimpleInfo.proto";
option java_package = "emu.grasscutter.net.proto";
message QueryRegionListHttpRsp {
int32 retcode = 1;
repeated RegionSimpleInfo region_list = 2;
bytes client_secret_key = 5;
bytes client_custom_config_encrypted = 6;
bool enable_login_pc = 7;
}

View File

@ -0,0 +1,27 @@
// Proto has been converted from Sorapointa to Grasscutter format
// Sorapointa - A server software re-implementation for a certain anime game, and avoid sorapointa.
// Copyright (C) 2022 Sorapointa 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";
option java_package = "emu.grasscutter.net.proto";
message RegionSimpleInfo {
string name = 1;
string title = 2;
string type = 3;
string dispatch_url = 4;
}

1219
proto/Retcode.proto Normal file

File diff suppressed because it is too large Load Diff