aboutsummaryrefslogtreecommitdiff
path: root/src/matchmaking.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/matchmaking.rs')
-rw-r--r--src/matchmaking.rs12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/matchmaking.rs b/src/matchmaking.rs
index 5f02834..22486d1 100644
--- a/src/matchmaking.rs
+++ b/src/matchmaking.rs
@@ -11,6 +11,7 @@ pub struct Matchmaking<Manager> {
const CALLBACK_BASE_ID: i32 = 500;
/// The visibility of a lobby
+#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, Serialize, Deserialize)]
pub enum LobbyType {
Private,
FriendsOnly,
@@ -18,7 +19,7 @@ pub enum LobbyType {
Invisible,
}
-#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
+#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, Serialize, Deserialize)]
pub struct LobbyId(pub(crate) u64);
impl LobbyId {
@@ -65,7 +66,8 @@ impl <Manager> Matchmaking<Manager> {
}
Ok(out)
})
- });
+ }
+ );
}
}
@@ -101,7 +103,8 @@ impl <Manager> Matchmaking<Manager> {
} else {
Ok(LobbyId(v.m_ulSteamIDLobby))
})
- });
+ }
+ );
}
}
@@ -121,7 +124,8 @@ impl <Manager> Matchmaking<Manager> {
} else {
Ok(LobbyId(v.m_ulSteamIDLobby))
})
- });
+ }
+ );
}
}