aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/packets/config
diff options
context:
space:
mode:
Diffstat (limited to 'azalea-protocol/src/packets/config')
-rw-r--r--azalea-protocol/src/packets/config/c_code_of_conduct.rs7
-rw-r--r--azalea-protocol/src/packets/config/mod.rs2
-rw-r--r--azalea-protocol/src/packets/config/s_accept_code_of_conduct.rs5
3 files changed, 14 insertions, 0 deletions
diff --git a/azalea-protocol/src/packets/config/c_code_of_conduct.rs b/azalea-protocol/src/packets/config/c_code_of_conduct.rs
new file mode 100644
index 00000000..03f133a8
--- /dev/null
+++ b/azalea-protocol/src/packets/config/c_code_of_conduct.rs
@@ -0,0 +1,7 @@
+use azalea_buf::AzBuf;
+use azalea_protocol_macros::ClientboundConfigPacket;
+
+#[derive(Clone, Debug, AzBuf, PartialEq, ClientboundConfigPacket)]
+pub struct ClientboundCodeOfConduct {
+ pub code_of_conduct: String,
+}
diff --git a/azalea-protocol/src/packets/config/mod.rs b/azalea-protocol/src/packets/config/mod.rs
index 58e00ad5..863655f2 100644
--- a/azalea-protocol/src/packets/config/mod.rs
+++ b/azalea-protocol/src/packets/config/mod.rs
@@ -24,6 +24,7 @@ declare_state_packets!(ConfigPacket,
server_links,
clear_dialog,
show_dialog,
+ code_of_conduct,
],
Serverbound => [
client_information,
@@ -35,5 +36,6 @@ declare_state_packets!(ConfigPacket,
resource_pack,
select_known_packs,
custom_click_action,
+ accept_code_of_conduct,
]
);
diff --git a/azalea-protocol/src/packets/config/s_accept_code_of_conduct.rs b/azalea-protocol/src/packets/config/s_accept_code_of_conduct.rs
new file mode 100644
index 00000000..c5fea5dd
--- /dev/null
+++ b/azalea-protocol/src/packets/config/s_accept_code_of_conduct.rs
@@ -0,0 +1,5 @@
+use azalea_buf::AzBuf;
+use azalea_protocol_macros::ServerboundConfigPacket;
+
+#[derive(Clone, Debug, AzBuf, PartialEq, ServerboundConfigPacket)]
+pub struct ServerboundAcceptCodeOfConduct;