Add typeserializer for lathe db
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user