steel_protocol/packets/game/c_clear_titles.rs
1use steel_macros::{ClientPacket, WriteTo};
2use steel_registry::packets::play::C_CLEAR_TITLES;
3
4/// Clears the title display state on the client.
5#[derive(ClientPacket, WriteTo, Clone, Debug)]
6#[packet_id(Play = C_CLEAR_TITLES)]
7pub struct CClearTitles {
8 /// Whether the client also resets the title animation times to defaults.
9 pub reset_times: bool,
10}
11
12impl CClearTitles {
13 /// Creates a packet that clears the client's title display state.
14 #[must_use]
15 pub const fn new(reset_times: bool) -> Self {
16 Self { reset_times }
17 }
18}