Add type serializer for udders (#6027)

This commit is contained in:
metalgearsloth
2022-01-05 00:57:26 +11:00
committed by GitHub
parent ace591117f
commit 4fdedc880d

View File

@@ -1,9 +1,11 @@
using System;
using Content.Server.Animals.Systems;
using Content.Shared.Chemistry.Reagent;
using Content.Shared.FixedPoint;
using Robust.Shared.Analyzers;
using Robust.Shared.GameObjects;
using Robust.Shared.Serialization.Manager.Attributes;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
using Robust.Shared.ViewVariables;
namespace Content.Server.Animals.Components
@@ -17,7 +19,7 @@ namespace Content.Server.Animals.Components
/// The reagent to produce.
/// </summary>
[ViewVariables(VVAccess.ReadOnly)]
[DataField("reagentId")]
[DataField("reagentId", customTypeSerializer:typeof(PrototypeIdSerializer<ReagentPrototype>))]
public string ReagentId = "Milk";
/// <summary>