more clean up

This commit is contained in:
Niko Abeler 2023-01-04 19:02:44 +01:00
parent a1579442e1
commit 62565bd2d1
5 changed files with 5 additions and 5 deletions

View File

@ -122,7 +122,7 @@ impl<'a> App<'a> {
} }
pub fn draw_initial<B: Backend>(&mut self, f: &mut Frame<B>) {} pub fn draw_initial<B: Backend>(&mut self, _f: &mut Frame<B>) {}
pub fn draw_guest_selection<B: Backend>(&mut self, f: &mut Frame<B>) { pub fn draw_guest_selection<B: Backend>(&mut self, f: &mut Frame<B>) {
let chunks = Layout::default() let chunks = Layout::default()

View File

@ -69,6 +69,7 @@ impl Creature {
} }
} }
#[allow(dead_code)]
pub fn set_agenda(&mut self, agenda: Agenda) { pub fn set_agenda(&mut self, agenda: Agenda) {
self.agenda = agenda; self.agenda = agenda;
} }

View File

@ -1,4 +1,3 @@
use std::rc::Rc;
use crate::{state::{GameState, Action}, site::{Structure, Tavern, Site}, entity::{Location, Entity}}; use crate::{state::{GameState, Action}, site::{Structure, Tavern, Site}, entity::{Location, Entity}};

View File

@ -1,6 +1,5 @@
use std::collections::HashMap; use std::collections::HashMap;
use std::rc::Rc;
use rand::prelude::*; use rand::prelude::*;
use crate::entity::{Location, EntityId}; use crate::entity::{Location, EntityId};
@ -35,6 +34,7 @@ pub trait Action {
} }
impl Event { impl Event {
#[allow(dead_code)]
pub fn description(&self) -> String { pub fn description(&self) -> String {
format!("{}: {}", self.time, self.effect.description()) format!("{}: {}", self.time, self.effect.description())
} }

View File

@ -1,6 +1,6 @@
use std::{rc::Rc, collections::HashMap, fmt}; use std::collections::HashMap;
use crate::{generators::TownNameGenerator, entity::{Location, Entity, EntityId}, site::Site}; use crate::{entity::{Location, EntityId}, site::Site};
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub enum Terrain { pub enum Terrain {