feat: complete stable OpenSim live interactions
Some checks failed
CI / rust-skia (Rust only) (push) Has been cancelled
CI / required (push) Has been cancelled

This commit is contained in:
2026-08-22 00:48:58 +02:00
parent e4e84dcdcb
commit 2f5f03ac6f
11 changed files with 396 additions and 100 deletions

View File

@@ -514,6 +514,17 @@ impl GridManager {
) -> Subscription {
self.inner.events.coarse.subscribe(h)
}
#[must_use]
pub fn native_coarse_position(
&self,
simulator_handle: u64,
avatar_id: UUID,
) -> Option<Vector3> {
read(&self.inner.coarse_positions)
.get(&simulator_handle)
.and_then(|positions| positions.get(&avatar_id))
.copied()
}
pub fn subscribe_grid_items(&self, h: EventHandler<GridItemsEventArgs>) -> Subscription {
self.inner.events.items.subscribe(h)
}