graphite_mc_protocol 0.1.0

Implementation of the Minecraft protocol for the graphite_minecraft project
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use graphite_binary::slice_serialization::*;

use crate::identify_packets;
use crate::types::GameProfile;
use crate::IdentifiedPacket;
use num_enum::TryFromPrimitive;

identify_packets! {
    PacketId,
    LoginSuccess = 0x02
}

slice_serializable! {
    #[derive(Debug)]
    pub struct LoginSuccess {
        pub profile: GameProfile
    }
}