]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Make remaining IPrototypes partial (#27157)
authorDrSmugleaf <10968691+DrSmugleaf@users.noreply.github.com>
Sat, 20 Apr 2024 07:48:38 +0000 (00:48 -0700)
committerGitHub <noreply@github.com>
Sat, 20 Apr 2024 07:48:38 +0000 (17:48 +1000)
15 files changed:
Content.Client/Guidebook/GuideEntry.cs
Content.Server/Botany/SeedPrototype.cs
Content.Server/Worldgen/Prototypes/NoiseChannelPrototype.cs
Content.Shared/Audio/Jukebox/JukeboxPrototype.cs
Content.Shared/Damage/Prototypes/DamageModifierSetPrototype.cs
Content.Shared/DeviceLinking/DevicePortPrototype.cs
Content.Shared/Preferences/Loadouts/Effects/LoadoutEffectGroupPrototype.cs
Content.Shared/Preferences/Loadouts/LoadoutGroupPrototype.cs
Content.Shared/Preferences/Loadouts/LoadoutPrototype.cs
Content.Shared/Preferences/Loadouts/RoleLoadoutPrototype.cs
Content.Shared/RCD/RCDPrototype.cs
Content.Shared/Salvage/SalvageMapPrototype.cs
Content.Shared/Silicons/Laws/SiliconLawPrototype.cs
Content.Shared/SprayPainter/Prototypes/AirlockDepartmentsPrototype.cs
Content.Shared/StatusIcon/StatusIconPrototype.cs

index b3c004267db20512a51de4ff9377f00219c7adcf..b7b3b3309e6d77475b50b5668a379511429f45a3 100644 (file)
@@ -42,7 +42,7 @@ public class GuideEntry
 }
 
 [Prototype("guideEntry")]
-public sealed class GuideEntryPrototype : GuideEntry, IPrototype
+public sealed partial class GuideEntryPrototype : GuideEntry, IPrototype
 {
     public string ID => Id;
 }
index 1a3c0473a48211eb7781e887d57335860dd4fae4..0ae56bc5fc652845b17c100284b951ccd1f39b3b 100644 (file)
@@ -2,16 +2,16 @@ using Content.Server.Botany.Components;
 using Content.Server.Botany.Systems;
 using Content.Shared.Atmos;
 using Content.Shared.Chemistry.Reagent;
+using Robust.Shared.Audio;
 using Robust.Shared.Prototypes;
 using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
 using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.List;
 using Robust.Shared.Utility;
-using Robust.Shared.Audio;
 
 namespace Content.Server.Botany;
 
 [Prototype("seed")]
-public sealed class SeedPrototype : SeedData, IPrototype
+public sealed partial class SeedPrototype : SeedData, IPrototype
 {
     [IdDataField] public string ID { get; private init; } = default!;
 }
index 67da4c4df1863aed08d10c6b1883b4dd6322bd8a..02ca383d300ef471a1f3ed291d179dbec50b71fa 100644 (file)
@@ -80,7 +80,7 @@ public class NoiseChannelConfig
 }
 
 [Prototype("noiseChannel")]
-public sealed class NoiseChannelPrototype : NoiseChannelConfig, IPrototype, IInheritingPrototype
+public sealed partial class NoiseChannelPrototype : NoiseChannelConfig, IPrototype, IInheritingPrototype
 {
     /// <inheritdoc />
     [ParentDataField(typeof(AbstractPrototypeIdArraySerializer<EntityPrototype>))]
index 256f22f2a6ea66efe2b33fd40e022ab35bf99340..ad690ef497374c0680aded6d861751b451b2c1eb 100644 (file)
@@ -7,7 +7,7 @@ namespace Content.Shared.Audio.Jukebox;
 /// Soundtrack that's visible on the jukebox list.
 /// </summary>
 [Prototype]
-public sealed class JukeboxPrototype : IPrototype
+public sealed partial class JukeboxPrototype : IPrototype
 {
     [IdDataField]
     public string ID { get; } = string.Empty;
index 99e13ee28425e5b7b1c9ff632314a14a16e1c0b9..a50856b04480a1a494ee2539a367168214a4373f 100644 (file)
@@ -10,7 +10,7 @@ namespace Content.Shared.Damage.Prototypes
     ///     just want normal data to be deserialized.
     /// </remarks>
     [Prototype("damageModifierSet")]
-    public sealed class DamageModifierSetPrototype : DamageModifierSet, IPrototype
+    public sealed partial class DamageModifierSetPrototype : DamageModifierSet, IPrototype
     {
         [ViewVariables]
         [IdDataField]
index c0a419ee653d3a6b46bce73c9ae5380b8f15b49b..e3421dda9dbb291b6bffd89ceae8d51468ce3e03 100644 (file)
@@ -29,13 +29,13 @@ public abstract class DevicePortPrototype
 
 [Prototype("sinkPort")]
 [Serializable, NetSerializable]
-public sealed class SinkPortPrototype : DevicePortPrototype, IPrototype
+public sealed partial class SinkPortPrototype : DevicePortPrototype, IPrototype
 {
 }
 
 [Prototype("sourcePort")]
 [Serializable, NetSerializable]
-public sealed class SourcePortPrototype : DevicePortPrototype, IPrototype
+public sealed partial class SourcePortPrototype : DevicePortPrototype, IPrototype
 {
     /// <summary>
     ///     This is a set of sink ports that this source port will attempt to link to when using the
index 0851be8d37f2ba0fc1787dce043ae39b9b973db5..3bb9d8ab0a3a93db63742a60e88780bf52c5e45a 100644 (file)
@@ -6,7 +6,7 @@ namespace Content.Shared.Preferences.Loadouts.Effects;
 /// Stores a group of loadout effects in a prototype for re-use.
 /// </summary>
 [Prototype]
-public sealed class LoadoutEffectGroupPrototype : IPrototype
+public sealed partial class LoadoutEffectGroupPrototype : IPrototype
 {
     [IdDataField]
     public string ID { get; } = string.Empty;
index 63f3b73e15f3ff3bbf5143091ab4379b443ad7cb..1d41f8dd7f9b53817a051f1317f69197a55979c8 100644 (file)
@@ -6,7 +6,7 @@ namespace Content.Shared.Preferences.Loadouts;
 /// Corresponds to a set of loadouts for a particular slot.
 /// </summary>
 [Prototype("loadoutGroup")]
-public sealed class LoadoutGroupPrototype : IPrototype
+public sealed partial class LoadoutGroupPrototype : IPrototype
 {
     [IdDataField]
     public string ID { get; } = string.Empty;
index 43aedd84a146099e82b4c856fa4a70b50a8b6754..90b000d181df39e1e49cf9a0a5f9cb9eeb9ddefc 100644 (file)
@@ -8,7 +8,7 @@ namespace Content.Shared.Preferences.Loadouts;
 /// Individual loadout item to be applied.
 /// </summary>
 [Prototype]
-public sealed class LoadoutPrototype : IPrototype
+public sealed partial class LoadoutPrototype : IPrototype
 {
     [IdDataField]
     public string ID { get; } = string.Empty;
index 58e027925186df627dbee2fd66403cb8f32a8030..36619ab1046c4bf5f647f1a95fec4d64922fdc15 100644 (file)
@@ -6,7 +6,7 @@ namespace Content.Shared.Preferences.Loadouts;
 /// Corresponds to a Job / Antag prototype and specifies loadouts
 /// </summary>
 [Prototype]
-public sealed class RoleLoadoutPrototype : IPrototype
+public sealed partial class RoleLoadoutPrototype : IPrototype
 {
     /*
      * Separate to JobPrototype / AntagPrototype as they are turning into messy god classes.
index 1e80abfb723b6812844197d1a47a5da63b90b48d..58093bbe87a06685fea84f9172ac276c486e56bb 100644 (file)
@@ -9,7 +9,7 @@ namespace Content.Shared.RCD;
 /// Contains the parameters for a RCD construction / operation
 /// </summary>
 [Prototype("rcd")]
-public sealed class RCDPrototype : IPrototype
+public sealed partial class RCDPrototype : IPrototype
 {
     [IdDataField]
     public string ID { get; private set; } = default!;
@@ -51,7 +51,7 @@ public sealed class RCDPrototype : IPrototype
     public int Cost { get; private set; } = 1;
 
     /// <summary>
-    /// The length of the operation 
+    /// The length of the operation
     /// </summary>
     [DataField, ViewVariables(VVAccess.ReadOnly)]
     public float Delay { get; private set; } = 1f;
@@ -75,7 +75,7 @@ public sealed class RCDPrototype : IPrototype
     public CollisionGroup CollisionMask { get; private set; } = CollisionGroup.None;
 
     /// <summary>
-    /// Specifies a set of custom collision bounds for determining whether the entity prototype will fit into a target tile 
+    /// Specifies a set of custom collision bounds for determining whether the entity prototype will fit into a target tile
     /// </summary>
     /// <remarks>
     /// Should be set assuming that the entity faces south.
@@ -106,7 +106,7 @@ public sealed class RCDPrototype : IPrototype
     private Box2? _collisionBounds = null;
 
     /// <summary>
-    /// The polygon shape associated with the prototype CollisionBounds (if set) 
+    /// The polygon shape associated with the prototype CollisionBounds (if set)
     /// </summary>
     [ViewVariables(VVAccess.ReadOnly)]
     public PolygonShape? CollisionPolygon { get; private set; } = null;
index 518b64dafa943546b924b34eba6064fe6ad28b13..63a3164556e7b94290fa1ba453a03beeeeb3b1f1 100644 (file)
@@ -4,7 +4,7 @@ using Robust.Shared.Utility;
 namespace Content.Shared.Salvage;
 
 [Prototype]
-public sealed class SalvageMapPrototype : IPrototype
+public sealed partial class SalvageMapPrototype : IPrototype
 {
     [ViewVariables] [IdDataField] public string ID { get; } = default!;
 
index f6407be5c7b51b67471924b4fa1618fbb987e042..5e5df448b33d9e9304eda7e7489347e52706142c 100644 (file)
@@ -58,7 +58,7 @@ public partial class SiliconLaw : IComparable<SiliconLaw>
 /// </summary>
 [Prototype("siliconLaw")]
 [Serializable, NetSerializable]
-public sealed class SiliconLawPrototype : SiliconLaw, IPrototype
+public sealed partial class SiliconLawPrototype : SiliconLaw, IPrototype
 {
     /// <inheritdoc/>
     [IdDataField]
index 3553597c52665fefe68424b3c9f4b4f013674b5a..b61aa037cc93d861fbc80a4a209fbb5c58fbb7cd 100644 (file)
@@ -7,7 +7,7 @@ namespace Content.Shared.SprayPainter.Prototypes;
 /// Maps airlock style names to department ids.
 /// </summary>
 [Prototype("airlockDepartments")]
-public sealed class AirlockDepartmentsPrototype : IPrototype
+public sealed partial class AirlockDepartmentsPrototype : IPrototype
 {
     [IdDataField]
     public string ID { get; private set; } = default!;
index 145b443051cbccac26a2ecddbca56d86fd9601e9..2bd13b9361d354542830aadb0fbda355446aefe4 100644 (file)
@@ -58,7 +58,7 @@ public partial class StatusIconData : IComparable<StatusIconData>
 /// <see cref="StatusIconData"/> but in new convenient prototype form!
 /// </summary>
 [Prototype("statusIcon")]
-public sealed class StatusIconPrototype : StatusIconData, IPrototype, IInheritingPrototype
+public sealed partial class StatusIconPrototype : StatusIconData, IPrototype, IInheritingPrototype
 {
     /// <inheritdoc />
     [ParentDataField(typeof(AbstractPrototypeIdArraySerializer<StatusIconPrototype>))]