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