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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

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