use serde_json::{Value, json}; use crate::template::Template; use crate::{ componentwrapper::{ComponentWrapper, PreEntity}, PlayerId, RoomId, components::{Visible, Player, Inventory, Health, Item} }; #[derive(Debug, Clone)] pub struct PlayerState { pub id: PlayerId, pub room: Option, pub inventory_capacity: usize, pub inventory: Vec