From a4deb9c69dac3d104547cbb9d5d5106092618c95 Mon Sep 17 00:00:00 2001 From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Tue, 27 Dec 2022 07:19:17 +1100 Subject: [PATCH] Remove damagespecifier warnings (#13192) --- Content.Shared/Damage/DamageSpecifier.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Content.Shared/Damage/DamageSpecifier.cs b/Content.Shared/Damage/DamageSpecifier.cs index 1bc5b052d9..341e3bb76b 100644 --- a/Content.Shared/Damage/DamageSpecifier.cs +++ b/Content.Shared/Damage/DamageSpecifier.cs @@ -1,6 +1,7 @@ using System.Text.Json.Serialization; using Content.Shared.Damage.Prototypes; using Content.Shared.FixedPoint; +using JetBrains.Annotations; using Robust.Shared.Prototypes; using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.Dictionary; using Robust.Shared.Utility; @@ -20,12 +21,14 @@ namespace Content.Shared.Damage // These exist solely so the wiki works. Please do not touch them or use them. [JsonPropertyName("types")] [DataField("types", customTypeSerializer: typeof(PrototypeIdDictionarySerializer))] + [UsedImplicitly] private readonly Dictionary? _damageTypeDictionary; [JsonPropertyName("groups")] [DataField("groups", customTypeSerializer: typeof(PrototypeIdDictionarySerializer))] + [UsedImplicitly] private readonly Dictionary? _damageGroupDictionary; - + /// /// Main DamageSpecifier dictionary. Most DamageSpecifier functions exist to somehow modifying this. ///