rogue_runtime/api/
inventory.rs

1use crate::{self as rogue_runtime, InventoryItem, prelude::*};
2
3rpc! {
4    pub struct Inventory;
5
6    impl Inventory {
7        pub async fn list() -> Vec<InventoryItem> {
8            let ctx = rogue_runtime::CONTEXT.get();
9            ctx.runtime.inventory().await
10        }
11    }
12}