blob: 2f677d7cf03fe9aca8075779e33c656485f0642b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
use data::{build_gamedata, Gamedata};
use std::fs::File;
pub mod customer;
pub mod data;
pub mod game;
pub mod interaction;
pub mod protocol;
pub fn load_gamedata() -> Gamedata {
build_gamedata(
serde_yaml::from_reader(File::open("data/recipes.yaml").unwrap()).unwrap(),
serde_yaml::from_reader(File::open("data/map.yaml").unwrap()).unwrap(),
serde_yaml::from_reader(File::open("data/demands.yaml").unwrap()).unwrap(),
)
}
|