Add typeserializer for lathe db

This commit is contained in:
metalgearsloth
2021-12-01 12:38:50 +11:00
parent ccf01d7431
commit b68ca21480

View File

@@ -8,6 +8,7 @@ using Robust.Shared.IoC;
using Robust.Shared.Prototypes;
using Robust.Shared.Serialization;
using Robust.Shared.Serialization.Manager.Attributes;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.List;
namespace Content.Shared.Lathe
{
@@ -16,7 +17,7 @@ namespace Content.Shared.Lathe
{
public override string Name => "LatheDatabase";
[DataField("recipes")] private List<string> _recipeIds = new();
[DataField("recipes", customTypeSerializer: typeof(PrototypeIdListSerializer<LatheRecipePrototype>))] private List<string> _recipeIds = new();
private readonly List<LatheRecipePrototype> _recipes = new();