chunkedge_protocol/packets/play/
light_update_s2c.rs

1use std::borrow::Cow;
2
3use chunkedge_binary::array::FixedArray;
4use chunkedge_binary::{Decode, Encode, VarInt};
5
6use crate::{Packet, VariableBitSet};
7#[derive(Clone, Debug, Encode, Decode, Packet)]
8pub struct LightUpdateS2c<'a> {
9    pub chunk_x: VarInt,
10    pub chunk_z: VarInt,
11    pub sky_light_mask: Cow<'a, VariableBitSet>,
12    pub block_light_mask: Cow<'a, VariableBitSet>,
13    pub empty_sky_light_mask: Cow<'a, VariableBitSet>,
14    pub empty_block_light_mask: Cow<'a, VariableBitSet>,
15    pub sky_light_arrays: Cow<'a, [FixedArray<u8, 2048>]>,
16    pub block_light_arrays: Cow<'a, [FixedArray<u8, 2048>]>,
17}