Add type serializer for udders (#6027)
This commit is contained in:
parent
ace591117f
commit
4fdedc880d
|
|
@ -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>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue