mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-21 03:36:06 +00:00
Flip LiveSession::session_id private, add getter
This commit is contained in:
parent
16f8975b18
commit
eb97e925e6
2 changed files with 9 additions and 5 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue