aboutsummaryrefslogtreecommitdiff
path: root/azalea-auth/src
diff options
context:
space:
mode:
Diffstat (limited to 'azalea-auth/src')
-rwxr-xr-xazalea-auth/src/game_profile.rs12
1 files changed, 9 insertions, 3 deletions
diff --git a/azalea-auth/src/game_profile.rs b/azalea-auth/src/game_profile.rs
index d75f60a4..333f926f 100755
--- a/azalea-auth/src/game_profile.rs
+++ b/azalea-auth/src/game_profile.rs
@@ -1,12 +1,12 @@
+use azalea_buf::McBuf;
use std::collections::HashMap;
-
use uuid::Uuid;
-#[derive(Clone, Debug)]
+#[derive(McBuf, Debug, Clone)]
pub struct GameProfile {
pub uuid: Uuid,
pub name: String,
- pub properties: HashMap<String, String>,
+ pub properties: HashMap<String, ProfilePropertyValue>,
}
impl GameProfile {
@@ -18,3 +18,9 @@ impl GameProfile {
}
}
}
+
+#[derive(McBuf, Debug, Clone)]
+pub struct ProfilePropertyValue {
+ pub value: String,
+ pub signature: Option<String>,
+}