mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-23 05:51:39 +00:00
Expose RbxSession creation and initialization
This commit is contained in:
parent
81d232fac5
commit
a8588834af
1 changed files with 6 additions and 1 deletions
|
|
@ -96,7 +96,7 @@ fn file_to_instance(file_item: &FileItem, partition: &Partition) -> (Id, HashMap
|
|||
}
|
||||
|
||||
impl RbxSession {
|
||||
fn new() -> RbxSession {
|
||||
pub fn new() -> RbxSession {
|
||||
RbxSession {
|
||||
partitions: HashMap::new(),
|
||||
partition_instances: HashMap::new(),
|
||||
|
|
@ -105,6 +105,11 @@ impl RbxSession {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn init(&mut self) {
|
||||
self.load_files();
|
||||
self.load_instances();
|
||||
}
|
||||
|
||||
fn load_files(&mut self) {
|
||||
for partition_name in self.partitions.keys() {
|
||||
let route = FileRoute {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue