aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/packets/status/mod.rs
blob: 3c70c9b100523b9daaaea842f82305dca6a8bdeb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
pub mod clientbound_pong_response_packet;
pub mod clientbound_status_response_packet;
pub mod serverbound_ping_request_packet;
pub mod serverbound_status_request_packet;

use azalea_protocol_macros::declare_state_packets;

declare_state_packets!(
    StatusPacket,
    Serverbound => {
        0x00: serverbound_status_request_packet::ServerboundStatusRequestPacket,
        0x01: serverbound_ping_request_packet::ServerboundPingRequestPacket,
    },
    Clientbound => {
        0x00: clientbound_status_response_packet::ClientboundStatusResponsePacket,
        0x01: clientbound_pong_response_packet::ClientboundPongResponsePacket,
    }
);