feat: session restore!

This commit is contained in:
Nova
2024-02-20 03:02:57 -05:00
parent c41179a437
commit 8e317a8e08
6 changed files with 242 additions and 81 deletions

View File

@@ -95,11 +95,10 @@ impl Root {
spatial.set_local_transform(transform);
}
pub async fn save_state(&self) -> Result<ClientStateInternal> {
Ok(self
.node
self.node
.execute_remote_method_typed("save_state", (), Vec::new())
.await?
.0)
.await
.map(|(m, _)| m)
}
}