split game struct

This commit is contained in:
Vinzenz Schroeter 2025-07-06 00:17:52 +02:00
commit e07fac4211

View file

@ -1,12 +1,12 @@
use crate::{Currency, Progressable};
use crate::Currency;
use servicepoint::{CharGridMutExt, GridMut, WindowMut};
use std::time::Duration;
#[derive(Debug, Clone, Copy)]
pub struct Bar {
name: &'static str,
pub(crate) enabled: bool,
progress: f64,
pub(crate) enabled: bool,
pub(crate) speed: f64,
pub(crate) productivity: f64,
}
@ -15,10 +15,10 @@ impl Bar {
pub(crate) fn new(productivity: f64, speed: f64, name: &'static str) -> Self {
Self {
name,
enabled: false,
productivity,
progress: 0f64,
speed,
enabled: false,
progress: 0f64,
}
}
}