Refactor gaamestates

This commit is contained in:
2026-03-16 21:58:43 +01:00
parent 53a713b5ea
commit aaa2c90426
11 changed files with 124 additions and 108 deletions
-14
View File
@@ -2,7 +2,6 @@ use crate::{
app::{GameStates, handle_keybindings, view::View},
cli::Cli,
};
use clap::ValueEnum;
use ratatui::{
DefaultTerminal, Frame,
crossterm::event::{self, KeyEvent},
@@ -24,19 +23,6 @@ pub struct App {
pub states: GameStates,
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, ValueEnum)]
pub enum GameMode {
LastManStanding,
FrontLines,
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, ValueEnum)]
pub enum PerkDecks {
Silesian,
BogeyMan,
Anteater,
}
impl App {
pub fn new(args: Cli) -> Self {
Self {