Implement native inventory manager workflows (#62)
All checks were successful
Native code generation / deterministic (push) Successful in 13m14s
Imaging and meshing gate / native (push) Successful in 4m13s
Native Rust workspace compile / compile (push) Successful in 4m19s

This commit is contained in:
2026-08-10 06:00:28 +00:00
parent eb7be428c6
commit 61d6721287
15 changed files with 5564 additions and 576 deletions

View File

@@ -1462,6 +1462,16 @@ impl Inventory {
.and_then(|value| value.clone_as::<T>()))
}
/// Returns the shared item portion regardless of the concrete inventory
/// subclass stored for the UUID.
pub(crate) fn native_item_value(&self, uuid: UUID) -> Option<InventoryItem> {
read(&self.inner.state)
.items
.get(&uuid)
.and_then(InventoryNode::value)
.and_then(|value| value.item().cloned())
}
pub fn try_get_value_with_uuid_inventory_base(
&self,
uuid: UUID,