feat: complete stable OpenSim live interactions
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user