mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-24 06:34:09 +00:00
Extract out RbxTree; more robust tree implementation
This commit is contained in:
parent
ee108e414f
commit
516246c56a
3 changed files with 96 additions and 86 deletions
|
|
@ -142,7 +142,7 @@ pub fn start(config: WebConfig) {
|
|||
Response::json(&ReadAllResponse {
|
||||
server_id: &server_id,
|
||||
message_cursor,
|
||||
instances: &rbx_session.instances,
|
||||
instances: rbx_session.tree.get_all_instances(),
|
||||
})
|
||||
},
|
||||
|
||||
|
|
@ -162,7 +162,7 @@ pub fn start(config: WebConfig) {
|
|||
let mut instances = HashMap::new();
|
||||
|
||||
for requested_id in &requested_ids {
|
||||
rbx_session.get_instance(*requested_id, &mut instances);
|
||||
rbx_session.tree.get_instance(*requested_id, &mut instances);
|
||||
}
|
||||
|
||||
Response::json(&ReadResponse {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue