valence_protocol/packets/play/
scoreboard_player_update_s2c.rs

1use crate::{Decode, Encode, Packet, VarInt};
2
3#[derive(Clone, Debug, Encode, Decode, Packet)]
4pub struct ScoreboardPlayerUpdateS2c<'a> {
5    pub entity_name: &'a str,
6    pub action: ScoreboardPlayerUpdateAction<'a>,
7}
8
9#[derive(Clone, PartialEq, Debug, Encode, Decode)]
10pub enum ScoreboardPlayerUpdateAction<'a> {
11    Update {
12        objective_name: &'a str,
13        objective_score: VarInt,
14    },
15    Remove {
16        objective_name: &'a str,
17    },
18}