use crate::*; use std::sync::Arc; use super::super::traits::*; pub struct MapRightSide { snippet: Arc, } impl MapRightSide { pub fn new(engine: &Arc, file: &str) -> Result { let snippet = GuiSnippet::from_str(engine.gui_handler(), file)?; Ok(Self { snippet }) } } impl RightSide for MapRightSide { fn refresh(&mut self, _engine: &Engine, _hero: Entity) -> Result<()> { Ok(()) } fn base(&self) -> &Arc { &self.snippet } }