player.rs 233 Bytes
Newer Older
1
#[derive(Debug, Clone)]
Rahix's avatar
Rahix committed
2
3
pub struct Player {
    pub sanity: f32,
Rahix's avatar
Rahix committed
4
    pub collected_hours: u32,
Rahix's avatar
Rahix committed
5
6
7
8
}

impl Player {
    pub fn new() -> Player {
Rahix's avatar
Rahix committed
9
10
11
12
        Player {
            sanity: 1.0,
            collected_hours: 0,
        }
Rahix's avatar
Rahix committed
13
14
    }
}