Update parser

This commit is contained in:
Stefan Menner
2025-06-03 17:38:11 +02:00
parent d2589affe5
commit 8fc8dc1cc9
3 changed files with 238 additions and 446 deletions

View File

@@ -45,10 +45,17 @@ pub enum RecipeType {
Refining,
Cooking,
}
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct Duration {
pub millis: u64,
pub unit: String,
}
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct Recipe {
pub recipe_type: RecipeType,
pub resource: Ingredient,
pub duration: u64,
pub duration: Duration,
pub ingredients: Vec<Ingredient>,
}