steel_protocol/packets/common/c_pong_response.rs
1use steel_macros::{ClientPacket, WriteTo};
2use steel_registry::packets::{play, status};
3
4#[derive(ClientPacket, WriteTo, Clone, Debug)]
5#[packet_id(Status = status::C_PONG_RESPONSE, Play = play::C_PONG_RESPONSE)]
6pub struct CPongResponse {
7 pub time: i64,
8}
9
10impl CPongResponse {
11 #[must_use]
12 pub const fn new(time: i64) -> Self {
13 Self { time }
14 }
15}