diff options
| author | mat <github@matdoes.dev> | 2021-12-16 17:51:05 -0600 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2021-12-16 17:51:05 -0600 |
| commit | 227ba5511d50af8c7c46a47e09db7f55a0ed84b7 (patch) | |
| tree | 1067828ee2082e0f073a4d16b201b2888c55b6e8 /azalea-auth/src | |
| parent | 999116ed7c5edf113e12aae150c2e23974d539dc (diff) | |
| download | azalea-drasl-227ba5511d50af8c7c46a47e09db7f55a0ed84b7.tar.xz | |
add a few more login packets
Diffstat (limited to 'azalea-auth/src')
| -rw-r--r-- | azalea-auth/src/game_profile.rs | 20 | ||||
| -rw-r--r-- | azalea-auth/src/lib.rs | 3 |
2 files changed, 23 insertions, 0 deletions
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<String, String>, +} + +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; |
