Add type serializer for udders (#6027)
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user