steel_protocol/packets/game/s_change_difficulty.rs
1use steel_macros::{ReadFrom, ServerPacket};
2use steel_utils::types::Difficulty;
3
4/// Serverbound packet sent when the client requests a difficulty change.
5///
6/// This is sent when the player changes the difficulty in the settings screen.
7/// The server should validate permissions before applying the change.
8#[derive(ReadFrom, ServerPacket, Clone, Debug)]
9pub struct SChangeDifficulty {
10 /// The requested difficulty level.
11 pub difficulty: Difficulty,
12}