Flip LiveSession::session_id private, add getter

This commit is contained in:
Lucien Greathouse
2019-02-27 14:54:05 -08:00
parent 16f8975b18
commit eb97e925e6
2 changed files with 9 additions and 5 deletions

View File

@@ -34,7 +34,7 @@ impl_from!(LiveSessionError {
/// Contains all of the state for a Rojo live-sync session.
pub struct LiveSession {
project: Arc<Project>,
pub session_id: SessionId,
session_id: SessionId,
pub message_queue: Arc<MessageQueue<InstanceChanges>>,
pub rbx_session: Arc<Mutex<RbxSession>>,
pub imfs: Arc<Mutex<Imfs>>,
@@ -85,6 +85,10 @@ impl LiveSession {
Ok(())
}
pub fn session_id(&self) -> SessionId {
self.session_id
}
pub fn serve_place_ids(&self) -> &Option<HashSet<u64>> {
&self.project.serve_place_ids
}