create the necessary structs

This commit is contained in:
mat 2022-04-27 23:48:53 -05:00
parent c2a9acc756
commit a4c63c7bb4
3 changed files with 27 additions and 0 deletions

View file

@ -0,0 +1,12 @@
use azalea_core::{game_type::GameType, resource_location::ResourceLocation};
use packet_macros::GamePacket;
#[derive(Clone, Debug, GamePacket)]
pub struct ClientboundLevelChunkWithLightPacket {
pub x: i32,
pub z: i32,
pub chunk_data: ClientboundLevelChunkPacketData,
pub light_data: ClientboundLightUpdatePacketData,
}
struct ClientboundLevelChunkPacketData {}

View file

@ -0,0 +1,11 @@
use azalea_core::{game_type::GameType, resource_location::ResourceLocation};
use packet_macros::GamePacket;
#[derive(Clone, Debug, GamePacket)]
pub struct ClientboundLightUpdatePacket {
pub x: i32,
pub z: i32,
pub light_data: ClientboundLightUpdatePacketData,
}
pub struct ClientboundLightUpdatePacketData {}

View file

@ -3,6 +3,8 @@ pub mod clientbound_custom_payload_packet;
pub mod clientbound_declare_commands_packet;
pub mod clientbound_disconnect_packet;
pub mod clientbound_entity_event_packet;
pub mod clientbound_level_chunk_with_light_packet;
pub mod clientbound_light_update_packet;
pub mod clientbound_login_packet;
pub mod clientbound_player_abilities_packet;
pub mod clientbound_player_info_packet;
@ -25,6 +27,8 @@ declare_state_packets!(
0x1a: clientbound_disconnect_packet::ClientboundDisconnectPacket,
0x1b: clientbound_entity_event_packet::ClientboundEntityEventPacket,
0x18: clientbound_custom_payload_packet::ClientboundCustomPayloadPacket,
0x22: clientbound_level_chunk_with_light_packet::ClientboundLevelChunkWithLightPacket,
0x25: clientbound_light_update_packet::ClientboundLightUpdatePacket,
0x26: clientbound_login_packet::ClientboundLoginPacket,
0x32: clientbound_player_abilities_packet::ClientboundPlayerAbilitiesPacket,
0x36: clientbound_player_info_packet::ClientboundPlayerInfoPacket,