Update parser
This commit is contained in:
@@ -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>,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user