diff --git a/proto/DungeonDieOptionReq.proto b/proto/DungeonDieOptionReq.proto new file mode 100644 index 00000000..46ca8296 --- /dev/null +++ b/proto/DungeonDieOptionReq.proto @@ -0,0 +1,25 @@ +// 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 . + +syntax = "proto3"; +option java_package = "emu.grasscutter.net.proto"; +import "PlayerDieOption.proto"; +// CmdId: 3884 +// Obf: MOHIGAEGAKN +message DungeonDieOptionReq { + bool is_quit_immediately = 13; + PlayerDieOption die_option = 8; +} diff --git a/proto/DungeonDieOptionRsp.proto b/proto/DungeonDieOptionRsp.proto new file mode 100644 index 00000000..25591999 --- /dev/null +++ b/proto/DungeonDieOptionRsp.proto @@ -0,0 +1,26 @@ +// 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 . + +syntax = "proto3"; +option java_package = "emu.grasscutter.net.proto"; +import "PlayerDieOption.proto"; +// CmdId: 28454 +// Obf: JBMMJNEGEKF +message DungeonDieOptionRsp { + uint32 revive_count = 5; + int32 retcode = 10; + PlayerDieOption die_option = 1; +} diff --git a/proto/PlayerDieOption.proto b/proto/PlayerDieOption.proto new file mode 100644 index 00000000..8ef72bbf --- /dev/null +++ b/proto/PlayerDieOption.proto @@ -0,0 +1,25 @@ +// 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 . + +syntax = "proto3"; +option java_package = "emu.grasscutter.net.proto"; +// Obf: FEBNBMEEDHK +enum PlayerDieOption { + DIE_OPT_NONE = 0; + DIE_OPT_REPLAY = 1; + DIE_OPT_CANCEL = 2; + DIE_OPT_REVIVE = 3; +}