Add custom type serializer to destruction spawn (#7190)

This commit is contained in:
Leon Friedrich
2022-03-19 18:34:56 +13:00
committed by GitHub
parent 06745e4586
commit 91d2976c44

View File

@@ -1,5 +1,7 @@
using Content.Server.Stack;
using Content.Shared.Prototypes;
using Robust.Shared.Prototypes;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.Dictionary;
namespace Content.Server.Destructible.Thresholds.Behaviors
{
@@ -10,7 +12,7 @@ namespace Content.Server.Destructible.Thresholds.Behaviors
/// <summary>
/// Entities spawned on reaching this threshold, from a min to a max.
/// </summary>
[DataField("spawn")]
[DataField("spawn", customTypeSerializer:typeof(PrototypeIdDictionarySerializer<MinMax, EntityPrototype>))]
public Dictionary<string, MinMax> Spawn { get; set; } = new();
[DataField("offset")]