mirror of
https://github.com/mat-1/azalea.git
synced 2024-09-19 22:52:32 +00:00
create the necessary structs
This commit is contained in:
parent
c2a9acc756
commit
a4c63c7bb4
3 changed files with 27 additions and 0 deletions
|
@ -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 {}
|
|
@ -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 {}
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue