More work

This commit is contained in:
User Jlusiardi
2023-12-09 22:43:06 +01:00
parent 206a49fb08
commit 643f3b76f9
4 changed files with 50 additions and 37 deletions

View File

@@ -3,7 +3,6 @@ use ratatui::layout::Rect;
use ratatui::style::Color;
use ratatui::widgets::{StatefulWidget, Widget};
use crate::artifacts::Artifact;
use crate::game::Game;
use crate::level::StructureElement;
@@ -66,7 +65,7 @@ impl StatefulWidget for LevelWidget {
}
}
}
(_, Some(t), _) => {
(_, Some(_), _) => {
self.set_cell(buf, x, y, "M", Color::Red, Color::Gray);
}
(_, _, Some(t)) => {
@@ -89,5 +88,5 @@ impl StatefulWidget for LevelWidget {
}
impl Widget for LevelWidget {
fn render(self, area: Rect, buf: &mut Buffer) {}
}
fn render(self, _area: Rect, _buf: &mut Buffer) {}
}