]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix prototypes so they pass analyzer checks (again) (AGAIN) (#41882)
authorslarticodefast <161409025+slarticodefast@users.noreply.github.com>
Wed, 17 Dec 2025 18:15:49 +0000 (19:15 +0100)
committerGitHub <noreply@github.com>
Wed, 17 Dec 2025 18:15:49 +0000 (18:15 +0000)
fix

Content.Server/Worldgen/Prototypes/BiomePrototype.cs
Content.Server/Worldgen/Prototypes/NoiseChannelPrototype.cs
Content.Shared/Maps/ContentTileDefinition.cs
Content.Shared/Preferences/Loadouts/LoadoutGroupPrototype.cs
Content.Shared/Silicons/StationAi/StationAiCustomizationPrototype.cs

index 1c3633fb5ffd5518595b68571d5c1c6f59739f9e..75e4670e88d821382659a7d2da4add3e4ac7e4e2 100644 (file)
@@ -13,7 +13,7 @@ namespace Content.Server.Worldgen.Prototypes;
 public sealed partial class BiomePrototype : IPrototype, IInheritingPrototype
 {
     /// <inheritdoc />
-    [ParentDataField(typeof(AbstractPrototypeIdArraySerializer<EntityPrototype>))]
+    [ParentDataField(typeof(AbstractPrototypeIdArraySerializer<BiomePrototype>))]
     public string[]? Parents { get; private set; }
 
     /// <inheritdoc />
index 98ba2d5b315bdd9d7688d9f0906d307f4c6121c4..41d89cbaa72109cfa645927183f2fdb93eabb493 100644 (file)
@@ -83,7 +83,7 @@ public class NoiseChannelConfig
 public sealed partial class NoiseChannelPrototype : NoiseChannelConfig, IPrototype, IInheritingPrototype
 {
     /// <inheritdoc />
-    [ParentDataField(typeof(AbstractPrototypeIdArraySerializer<EntityPrototype>))]
+    [ParentDataField(typeof(AbstractPrototypeIdArraySerializer<NoiseChannelPrototype>))]
     public string[]? Parents { get; private set; }
 
     /// <inheritdoc />
index 64975b5616f67759a013551b21165bf7b2203c05..46ce7a212ec6c047e7375ae0448320fb061e7f80 100644 (file)
@@ -19,7 +19,7 @@ namespace Content.Shared.Maps
 
         public const string SpaceID = "Space";
 
-        [ParentDataFieldAttribute(typeof(AbstractPrototypeIdArraySerializer<ContentTileDefinition>))]
+        [ParentDataField(typeof(AbstractPrototypeIdArraySerializer<ContentTileDefinition>))]
         public string[]? Parents { get; private set; }
 
         [NeverPushInheritance]
index b65f332885ef63b35d88418b5d728cd4f56725a8..40a168c067258717a37a911c979605862bf8ac3c 100644 (file)
@@ -13,8 +13,8 @@ public sealed partial class LoadoutGroupPrototype : IPrototype, IInheritingProto
     public string ID { get; private set; } = string.Empty;
 
     /// <inheritdoc />
-    [ParentDataFieldAttribute(typeof(AbstractPrototypeIdArraySerializer<LoadoutGroupPrototype>))]
-    public string[]? Parents { get; }
+    [ParentDataField(typeof(AbstractPrototypeIdArraySerializer<LoadoutGroupPrototype>))]
+    public string[]? Parents { get; private set; }
 
     /// <inheritdoc />
     [NeverPushInheritance]
@@ -32,7 +32,7 @@ public sealed partial class LoadoutGroupPrototype : IPrototype, IInheritingProto
     /// </summary>
     [DataField]
     public int MinLimit = 1;
-    
+
     /// <summary>
     /// Number of loadouts that are selected by default.
     /// </summary>
index eae6f514778ff5ca147126e0fec804b2e8342608..a83ac79318b2260fa28fbfbd78898533fa8dc850 100644 (file)
@@ -41,7 +41,7 @@ public sealed partial class StationAiCustomizationPrototype : IPrototype, IInher
     /// The prototype we inherit from.
     /// </summary>
     [ViewVariables]
-    [ParentDataFieldAttribute(typeof(AbstractPrototypeIdArraySerializer<StationAiCustomizationPrototype>))]
+    [ParentDataField(typeof(AbstractPrototypeIdArraySerializer<StationAiCustomizationPrototype>))]
     public string[]? Parents { get; private set; }
 
     /// <summary>