use crate::*; use std::sync::Arc; use super::super::traits::*; pub struct MapRightSide { snippet: Arc, } impl MapRightSide { pub fn new(game_handle: &GameHandle, path: &str) -> Result { let snippet = game_handle.gui_snippet(path)?; Ok(Self { snippet }) } } impl RightSide for MapRightSide { fn refresh(&mut self, _game_handle: &GameHandle, _hero: Entity) -> Result<()> { Ok(()) } fn base(&self) -> &Arc { &self.snippet } }