From a3a9a417adc0e6f9ace100682fc0c62553050395 Mon Sep 17 00:00:00 2001 From: Moony Date: Thu, 15 Dec 2022 15:40:58 -0600 Subject: [PATCH] Update DamageSpecifier.cs (#13044) * Update DamageSpecifier.cs * Update DamageSpecifier.cs --- Content.Shared/Damage/DamageSpecifier.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Content.Shared/Damage/DamageSpecifier.cs b/Content.Shared/Damage/DamageSpecifier.cs index 33d18e1b06..1bc5b052d9 100644 --- a/Content.Shared/Damage/DamageSpecifier.cs +++ b/Content.Shared/Damage/DamageSpecifier.cs @@ -2,6 +2,7 @@ using System.Text.Json.Serialization; using Content.Shared.Damage.Prototypes; using Content.Shared.FixedPoint; using Robust.Shared.Prototypes; +using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.Dictionary; using Robust.Shared.Utility; namespace Content.Shared.Damage @@ -16,6 +17,15 @@ namespace Content.Shared.Damage [DataDefinition] public sealed class DamageSpecifier : IEquatable { + // These exist solely so the wiki works. Please do not touch them or use them. + [JsonPropertyName("types")] + [DataField("types", customTypeSerializer: typeof(PrototypeIdDictionarySerializer))] + private readonly Dictionary? _damageTypeDictionary; + + [JsonPropertyName("groups")] + [DataField("groups", customTypeSerializer: typeof(PrototypeIdDictionarySerializer))] + private readonly Dictionary? _damageGroupDictionary; + /// /// Main DamageSpecifier dictionary. Most DamageSpecifier functions exist to somehow modifying this. ///