diff options
Diffstat (limited to 'server/src/data.rs')
| -rw-r--r-- | server/src/data.rs | 11 | 
1 files changed, 7 insertions, 4 deletions
| diff --git a/server/src/data.rs b/server/src/data.rs index fd6f266d..17b508ec 100644 --- a/server/src/data.rs +++ b/server/src/data.rs @@ -19,13 +19,15 @@ pub enum Action {  #[derive(Debug, Clone, Deserialize, Serialize)]  pub struct RecipeDecl {      #[serde(default)] -    pub tile: Option<String>, +    tile: Option<String>,      #[serde(default)] -    pub inputs: Vec<String>, +    inputs: Vec<String>,      #[serde(default)] -    pub outputs: Vec<String>, +    outputs: Vec<String>,      #[serde(default)] -    pub action: Action, +    action: Action, +    #[serde(default)] +    warn: bool,  }  #[derive(Debug, Clone, Deserialize)] @@ -92,6 +94,7 @@ pub fn build_gamedata(              Action::Never => {}              Action::Passive(duration) => recipes.push(Recipe::Passive {                  duration, +                warn: r.warn,                  tile,                  input: inputs.next().expect("passive recipe without input"),                  output: outputs.next(), | 
