chunkedge_protocol/packets/login/login_compression_s2c.rs
1use chunkedge_binary::{Decode, Encode, VarInt};
2
3use crate::{Packet, PacketState};
4
5#[derive(Copy, Clone, Debug, Encode, Decode, Packet)]
6#[packet(state = PacketState::Login)]
7// Optionally sent by the server to the client to enable compression for the
8// connection.
9pub struct LoginCompressionS2c {
10 pub threshold: VarInt,
11}