Add (not working) basis for allowing solids (entities) in recipes.
This commit is contained in:
@@ -22,8 +22,11 @@ namespace Content.Shared.Prototypes.Kitchen
|
||||
public string _name => Loc.GetString(Name);
|
||||
private string Name;
|
||||
public string _result;
|
||||
public IReadOnlyDictionary<string, int> _ingredients => Ingredients;
|
||||
private Dictionary<string, int> Ingredients;
|
||||
public IReadOnlyDictionary<string, int> _ingReagents => IngredientsReagents;
|
||||
public IReadOnlyDictionary<string, int> _ingSolids => IngredientsSolids;
|
||||
|
||||
private Dictionary<string, int> IngredientsReagents;
|
||||
private Dictionary<string, int> IngredientsSolids;
|
||||
public int _cookTime;
|
||||
|
||||
public string ID => _id;
|
||||
@@ -35,7 +38,8 @@ namespace Content.Shared.Prototypes.Kitchen
|
||||
serializer.DataField(ref _id, "id", string.Empty);
|
||||
serializer.DataField(ref Name, "name", string.Empty);
|
||||
serializer.DataField(ref _result, "result", string.Empty);
|
||||
serializer.DataField(ref Ingredients, "ingredients", new Dictionary<string, int>());
|
||||
serializer.DataField(ref IngredientsReagents, "reagents", new Dictionary<string, int>());
|
||||
serializer.DataField(ref IngredientsSolids, "solids", new Dictionary<string, int>());
|
||||
serializer.DataField(ref _cookTime, "time", 5);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user