diff options
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; |
