engine/character_window/src/inventory/map_right_side.rs

28 lines
526 B
Rust
Raw Normal View History

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