azalea_protocol/packets/game/c_set_score.rs
1use azalea_buf::AzBuf;
2use azalea_chat::FormattedText;
3use azalea_protocol_macros::ClientboundGamePacket;
4
5use crate::common::number_formatting::NumberFormat;
6
7#[derive(AzBuf, ClientboundGamePacket, Clone, Debug, PartialEq)]
8pub struct ClientboundSetScore {
9 pub owner: String,
10 pub objective_name: String,
11 #[var]
12 pub score: u32,
13 pub display: Option<FormattedText>,
14 pub number_format: Option<NumberFormat>,
15}