Microwave rework (#6470)
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using System.Collections.Generic;
|
||||
using Content.Shared.Chemistry.Reagent;
|
||||
using Content.Shared.FixedPoint;
|
||||
using Robust.Shared.Localization;
|
||||
using Robust.Shared.Prototypes;
|
||||
using Robust.Shared.Serialization.Manager.Attributes;
|
||||
@@ -22,11 +23,11 @@ namespace Content.Shared.Kitchen
|
||||
[DataField("name")]
|
||||
private string _name = string.Empty;
|
||||
|
||||
[DataField("reagents", customTypeSerializer:typeof(PrototypeIdDictionarySerializer<uint, ReagentPrototype>))]
|
||||
private readonly Dictionary<string, uint> _ingsReagents = new();
|
||||
[DataField("reagents", customTypeSerializer:typeof(PrototypeIdDictionarySerializer<FixedPoint2, ReagentPrototype>))]
|
||||
private readonly Dictionary<string, FixedPoint2> _ingsReagents = new();
|
||||
|
||||
[DataField("solids", customTypeSerializer: typeof(PrototypeIdDictionarySerializer<uint, EntityPrototype>))]
|
||||
private readonly Dictionary<string, uint> _ingsSolids = new ();
|
||||
[DataField("solids", customTypeSerializer: typeof(PrototypeIdDictionarySerializer<FixedPoint2, EntityPrototype>))]
|
||||
private readonly Dictionary<string, FixedPoint2> _ingsSolids = new ();
|
||||
|
||||
[DataField("result", customTypeSerializer: typeof(PrototypeIdSerializer<EntityPrototype>))]
|
||||
public string Result { get; } = string.Empty;
|
||||
@@ -36,7 +37,7 @@ namespace Content.Shared.Kitchen
|
||||
|
||||
public string Name => Loc.GetString(_name);
|
||||
|
||||
public IReadOnlyDictionary<string, uint> IngredientsReagents => _ingsReagents;
|
||||
public IReadOnlyDictionary<string, uint> IngredientsSolids => _ingsSolids;
|
||||
public IReadOnlyDictionary<string, FixedPoint2> IngredientsReagents => _ingsReagents;
|
||||
public IReadOnlyDictionary<string, FixedPoint2> IngredientsSolids => _ingsSolids;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user