split game struct
This commit is contained in:
parent
3468fff882
commit
e07fac4211
1 changed files with 218 additions and 188 deletions
|
|
@ -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,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue