valence_protocol/packets/play/chat_message_c2s.rs
1use crate::{Bounded, Decode, Encode, FixedBitSet, Packet, VarInt};
2
3#[derive(Clone, Debug, Encode, Decode, Packet)]
4pub struct ChatMessageC2s<'a> {
5 pub message: Bounded<&'a str, 256>,
6 pub timestamp: u64,
7 pub salt: u64,
8 pub signature: Option<&'a [u8; 256]>,
9 pub message_count: VarInt,
10 // This is a bitset of 20; each bit represents one
11 // of the last 20 messages received and whether or not
12 // the message was acknowledged by the client
13 pub acknowledgement: FixedBitSet<20, 3>,
14}