From 13027738c02e607fec94ece1e0edec37a2db3431 Mon Sep 17 00:00:00 2001
From: Yuuki <6851027-yukiz@users.noreply.gitlab.com>
Date: Mon, 23 Oct 2023 18:59:25 +0800
Subject: [PATCH] add miss proto * DungeonDie
---
proto/DungeonDieOptionReq.proto | 25 +++++++++++++++++++++++++
proto/DungeonDieOptionRsp.proto | 26 ++++++++++++++++++++++++++
proto/PlayerDieOption.proto | 25 +++++++++++++++++++++++++
3 files changed, 76 insertions(+)
create mode 100644 proto/DungeonDieOptionReq.proto
create mode 100644 proto/DungeonDieOptionRsp.proto
create mode 100644 proto/PlayerDieOption.proto
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;
+}