From 91d2976c443bf0ccd01a6494d64041f864e98339 Mon Sep 17 00:00:00 2001 From: Leon Friedrich <60421075+ElectroJr@users.noreply.github.com> Date: Sat, 19 Mar 2022 18:34:56 +1300 Subject: [PATCH] Add custom type serializer to destruction spawn (#7190) --- .../Thresholds/Behaviors/SpawnEntitiesBehavior.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Content.Server/Destructible/Thresholds/Behaviors/SpawnEntitiesBehavior.cs b/Content.Server/Destructible/Thresholds/Behaviors/SpawnEntitiesBehavior.cs index 82cacfce3d..689bd9b8fa 100644 --- a/Content.Server/Destructible/Thresholds/Behaviors/SpawnEntitiesBehavior.cs +++ b/Content.Server/Destructible/Thresholds/Behaviors/SpawnEntitiesBehavior.cs @@ -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 /// /// Entities spawned on reaching this threshold, from a min to a max. /// - [DataField("spawn")] + [DataField("spawn", customTypeSerializer:typeof(PrototypeIdDictionarySerializer))] public Dictionary Spawn { get; set; } = new(); [DataField("offset")]