Add attributes parsing

This commit is contained in:
vagola
2020-01-03 15:28:45 +03:00
parent a4b7f100a8
commit 6d50407670
3 changed files with 65 additions and 7 deletions

View File

@@ -170,6 +170,7 @@ impl LoginDisconnect {
#[derive(Packet, Debug)]
pub struct EncryptionRequest {
#[packet(max_length = 20)]
pub server_id: String,
pub public_key: Vec<u8>,
pub verify_token: Vec<u8>,
@@ -207,6 +208,7 @@ impl LoginSuccess {
#[derive(Packet, Debug)]
pub struct SetCompression {
#[packet(with = "varint")]
pub threshold: i32,
}