aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/packets/login/mod.rs
blob: 1186304a38e09a27b2c22b54723e2f11a064b389 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
pub mod clientbound_custom_query_packet;
pub mod clientbound_game_profile_packet;
pub mod clientbound_hello_packet;
pub mod clientbound_login_compression_packet;
pub mod clientbound_login_disconnect_packet;
pub mod serverbound_custom_query_packet;
pub mod serverbound_hello_packet;
pub mod serverbound_key_packet;

use azalea_protocol_macros::declare_state_packets;

declare_state_packets!(
    LoginPacket,
    Serverbound => {
        0x00: serverbound_hello_packet::ServerboundHelloPacket,
        0x01: serverbound_key_packet::ServerboundKeyPacket,
        0x02: serverbound_custom_query_packet::ServerboundCustomQueryPacket,
    },
    Clientbound => {
        0x00: clientbound_login_disconnect_packet::ClientboundLoginDisconnectPacket,
        0x01: clientbound_hello_packet::ClientboundHelloPacket,
        0x02: clientbound_game_profile_packet::ClientboundGameProfilePacket,
        0x03: clientbound_login_compression_packet::ClientboundLoginCompressionPacket,
        0x04: clientbound_custom_query_packet::ClientboundCustomQueryPacket,
    }
);