aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/packets/game/s_chat.rs
diff options
context:
space:
mode:
Diffstat (limited to 'azalea-protocol/src/packets/game/s_chat.rs')
-rwxr-xr-xazalea-protocol/src/packets/game/s_chat.rs20
1 files changed, 20 insertions, 0 deletions
diff --git a/azalea-protocol/src/packets/game/s_chat.rs b/azalea-protocol/src/packets/game/s_chat.rs
new file mode 100755
index 00000000..03bafd11
--- /dev/null
+++ b/azalea-protocol/src/packets/game/s_chat.rs
@@ -0,0 +1,20 @@
+use azalea_buf::AzBuf;
+use azalea_core::bitset::FixedBitSet;
+use azalea_crypto::MessageSignature;
+use azalea_protocol_macros::ServerboundGamePacket;
+
+#[derive(Clone, Debug, AzBuf, ServerboundGamePacket)]
+pub struct ServerboundChat {
+ pub message: String,
+ pub timestamp: u64,
+ pub salt: u64,
+ pub signature: Option<MessageSignature>,
+ pub last_seen_messages: LastSeenMessagesUpdate,
+}
+
+#[derive(Clone, Debug, AzBuf, Default)]
+pub struct LastSeenMessagesUpdate {
+ #[var]
+ pub messages: u32,
+ pub acknowledged: FixedBitSet<20>,
+}