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>) {
let chunks = Layout::default()

View File

@ -69,6 +69,7 @@ impl Creature {
}
}
#[allow(dead_code)]
pub fn set_agenda(&mut 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}};

View File

@ -1,6 +1,5 @@
use std::collections::HashMap;
use std::rc::Rc;
use rand::prelude::*;
use crate::entity::{Location, EntityId};
@ -35,6 +34,7 @@ pub trait Action {
}
impl Event {
#[allow(dead_code)]
pub fn description(&self) -> String {
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)]
pub enum Terrain {