chunkedge_protocol/packets/login/login_finished_s2c.rs
1use std::borrow::Cow;
2
3use chunkedge_binary::{Bounded, Decode, Encode};
4use uuid::Uuid;
5
6use crate::profile::Property;
7use crate::{Packet, PacketState};
8
9#[derive(Clone, Debug, Encode, Decode, Packet)]
10#[packet(state = PacketState::Login)]
11/// Sent by the server to the client to send the game profile of the player.
12/// This packet is sent after the client has successfully logged in. This packet
13/// is used to send data about the player such as their UUID, username, skin,
14/// and cape.
15pub struct LoginFinishedS2c<'a> {
16 pub uuid: Uuid,
17 pub username: Bounded<&'a str, 16>,
18 pub properties: Cow<'a, [Property<&'a str>]>,
19}