From 227ba5511d50af8c7c46a47e09db7f55a0ed84b7 Mon Sep 17 00:00:00 2001 From: mat Date: Thu, 16 Dec 2021 17:51:05 -0600 Subject: add a few more login packets --- azalea-auth/src/game_profile.rs | 20 ++++++++++++++++++++ azalea-auth/src/lib.rs | 3 +++ 2 files changed, 23 insertions(+) create mode 100644 azalea-auth/src/game_profile.rs create mode 100644 azalea-auth/src/lib.rs (limited to 'azalea-auth/src') diff --git a/azalea-auth/src/game_profile.rs b/azalea-auth/src/game_profile.rs new file mode 100644 index 00000000..a186a208 --- /dev/null +++ b/azalea-auth/src/game_profile.rs @@ -0,0 +1,20 @@ +use std::collections::HashMap; + +use uuid::Uuid; + +#[derive(Hash, Clone, Debug)] +pub struct GameProfile { + pub uuid: Uuid, + pub name: String, + pub properties: HashMap, +} + +impl GameProfile { + pub fn new(uuid: Uuid, name: String) -> Self { + GameProfile { + uuid, + name, + properties: HashMap::new(), + } + } +} diff --git a/azalea-auth/src/lib.rs b/azalea-auth/src/lib.rs new file mode 100644 index 00000000..773ea1d9 --- /dev/null +++ b/azalea-auth/src/lib.rs @@ -0,0 +1,3 @@ +//! Handle Minecraft authentication. + +pub mod game_profile; -- cgit v1.2.3