valence_protocol/packets/play/
command_execution_c2s.rs

1use crate::{Bounded, Decode, Encode, FixedBitSet, Packet, VarInt};
2
3#[derive(Clone, Debug, Encode, Decode, Packet)]
4pub struct CommandExecutionC2s<'a> {
5    pub command: Bounded<&'a str, 256>,
6    pub timestamp: u64,
7    pub salt: u64,
8    pub argument_signatures: Vec<CommandArgumentSignature<'a>>,
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}
15
16#[derive(Copy, Clone, Debug, Encode, Decode)]
17pub struct CommandArgumentSignature<'a> {
18    pub argument_name: Bounded<&'a str, 16>,
19    pub signature: &'a [u8; 256],
20}