~starkingdoms/starkingdoms

ref: a6342c7d29ba5e79a479036ae036fc89c787e939 starkingdoms/crates/unified/src/config/recipe.rs -rw-r--r-- 421 bytes
a6342c7dghostly_zsh fix: planets rely purely on springs now, so it should be possible to push them around now 17 days ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::collections::HashMap;

use serde::{Deserialize, Serialize};

use crate::prelude::*;

#[derive(Deserialize, Asset, TypePath, Component, Serialize, Clone, Debug)]
#[require(Replicated)]
pub struct RecipesConfig {
    pub recipes: HashMap<String, Vec<Recipe>>,
}

#[derive(Deserialize, TypePath, Component, Serialize, Clone, Debug)]
pub struct Recipe {
    pub order: usize,
    pub inputs: HashMap<String, u32>,
}