From: DrSmugleaf <10968691+DrSmugleaf@users.noreply.github.com>
Date: Sat, 20 Apr 2024 07:48:38 +0000 (-0700)
Subject: Make remaining IPrototypes partial (#27157)
X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=5eae6335e1c16e5436e6e0b84410607278bfa52b;p=space-station-14.git
Make remaining IPrototypes partial (#27157)
---
diff --git a/Content.Client/Guidebook/GuideEntry.cs b/Content.Client/Guidebook/GuideEntry.cs
index b3c004267d..b7b3b3309e 100644
--- a/Content.Client/Guidebook/GuideEntry.cs
+++ b/Content.Client/Guidebook/GuideEntry.cs
@@ -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;
}
diff --git a/Content.Server/Botany/SeedPrototype.cs b/Content.Server/Botany/SeedPrototype.cs
index 1a3c0473a4..0ae56bc5fc 100644
--- a/Content.Server/Botany/SeedPrototype.cs
+++ b/Content.Server/Botany/SeedPrototype.cs
@@ -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!;
}
diff --git a/Content.Server/Worldgen/Prototypes/NoiseChannelPrototype.cs b/Content.Server/Worldgen/Prototypes/NoiseChannelPrototype.cs
index 67da4c4df1..02ca383d30 100644
--- a/Content.Server/Worldgen/Prototypes/NoiseChannelPrototype.cs
+++ b/Content.Server/Worldgen/Prototypes/NoiseChannelPrototype.cs
@@ -80,7 +80,7 @@ public class NoiseChannelConfig
}
[Prototype("noiseChannel")]
-public sealed class NoiseChannelPrototype : NoiseChannelConfig, IPrototype, IInheritingPrototype
+public sealed partial class NoiseChannelPrototype : NoiseChannelConfig, IPrototype, IInheritingPrototype
{
///
[ParentDataField(typeof(AbstractPrototypeIdArraySerializer))]
diff --git a/Content.Shared/Audio/Jukebox/JukeboxPrototype.cs b/Content.Shared/Audio/Jukebox/JukeboxPrototype.cs
index 256f22f2a6..ad690ef497 100644
--- a/Content.Shared/Audio/Jukebox/JukeboxPrototype.cs
+++ b/Content.Shared/Audio/Jukebox/JukeboxPrototype.cs
@@ -7,7 +7,7 @@ namespace Content.Shared.Audio.Jukebox;
/// Soundtrack that's visible on the jukebox list.
///
[Prototype]
-public sealed class JukeboxPrototype : IPrototype
+public sealed partial class JukeboxPrototype : IPrototype
{
[IdDataField]
public string ID { get; } = string.Empty;
diff --git a/Content.Shared/Damage/Prototypes/DamageModifierSetPrototype.cs b/Content.Shared/Damage/Prototypes/DamageModifierSetPrototype.cs
index 99e13ee284..a50856b044 100644
--- a/Content.Shared/Damage/Prototypes/DamageModifierSetPrototype.cs
+++ b/Content.Shared/Damage/Prototypes/DamageModifierSetPrototype.cs
@@ -10,7 +10,7 @@ namespace Content.Shared.Damage.Prototypes
/// just want normal data to be deserialized.
///
[Prototype("damageModifierSet")]
- public sealed class DamageModifierSetPrototype : DamageModifierSet, IPrototype
+ public sealed partial class DamageModifierSetPrototype : DamageModifierSet, IPrototype
{
[ViewVariables]
[IdDataField]
diff --git a/Content.Shared/DeviceLinking/DevicePortPrototype.cs b/Content.Shared/DeviceLinking/DevicePortPrototype.cs
index c0a419ee65..e3421dda9d 100644
--- a/Content.Shared/DeviceLinking/DevicePortPrototype.cs
+++ b/Content.Shared/DeviceLinking/DevicePortPrototype.cs
@@ -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
{
///
/// This is a set of sink ports that this source port will attempt to link to when using the
diff --git a/Content.Shared/Preferences/Loadouts/Effects/LoadoutEffectGroupPrototype.cs b/Content.Shared/Preferences/Loadouts/Effects/LoadoutEffectGroupPrototype.cs
index 0851be8d37..3bb9d8ab0a 100644
--- a/Content.Shared/Preferences/Loadouts/Effects/LoadoutEffectGroupPrototype.cs
+++ b/Content.Shared/Preferences/Loadouts/Effects/LoadoutEffectGroupPrototype.cs
@@ -6,7 +6,7 @@ namespace Content.Shared.Preferences.Loadouts.Effects;
/// Stores a group of loadout effects in a prototype for re-use.
///
[Prototype]
-public sealed class LoadoutEffectGroupPrototype : IPrototype
+public sealed partial class LoadoutEffectGroupPrototype : IPrototype
{
[IdDataField]
public string ID { get; } = string.Empty;
diff --git a/Content.Shared/Preferences/Loadouts/LoadoutGroupPrototype.cs b/Content.Shared/Preferences/Loadouts/LoadoutGroupPrototype.cs
index 63f3b73e15..1d41f8dd7f 100644
--- a/Content.Shared/Preferences/Loadouts/LoadoutGroupPrototype.cs
+++ b/Content.Shared/Preferences/Loadouts/LoadoutGroupPrototype.cs
@@ -6,7 +6,7 @@ namespace Content.Shared.Preferences.Loadouts;
/// Corresponds to a set of loadouts for a particular slot.
///
[Prototype("loadoutGroup")]
-public sealed class LoadoutGroupPrototype : IPrototype
+public sealed partial class LoadoutGroupPrototype : IPrototype
{
[IdDataField]
public string ID { get; } = string.Empty;
diff --git a/Content.Shared/Preferences/Loadouts/LoadoutPrototype.cs b/Content.Shared/Preferences/Loadouts/LoadoutPrototype.cs
index 43aedd84a1..90b000d181 100644
--- a/Content.Shared/Preferences/Loadouts/LoadoutPrototype.cs
+++ b/Content.Shared/Preferences/Loadouts/LoadoutPrototype.cs
@@ -8,7 +8,7 @@ namespace Content.Shared.Preferences.Loadouts;
/// Individual loadout item to be applied.
///
[Prototype]
-public sealed class LoadoutPrototype : IPrototype
+public sealed partial class LoadoutPrototype : IPrototype
{
[IdDataField]
public string ID { get; } = string.Empty;
diff --git a/Content.Shared/Preferences/Loadouts/RoleLoadoutPrototype.cs b/Content.Shared/Preferences/Loadouts/RoleLoadoutPrototype.cs
index 58e0279251..36619ab104 100644
--- a/Content.Shared/Preferences/Loadouts/RoleLoadoutPrototype.cs
+++ b/Content.Shared/Preferences/Loadouts/RoleLoadoutPrototype.cs
@@ -6,7 +6,7 @@ namespace Content.Shared.Preferences.Loadouts;
/// Corresponds to a Job / Antag prototype and specifies loadouts
///
[Prototype]
-public sealed class RoleLoadoutPrototype : IPrototype
+public sealed partial class RoleLoadoutPrototype : IPrototype
{
/*
* Separate to JobPrototype / AntagPrototype as they are turning into messy god classes.
diff --git a/Content.Shared/RCD/RCDPrototype.cs b/Content.Shared/RCD/RCDPrototype.cs
index 1e80abfb72..58093bbe87 100644
--- a/Content.Shared/RCD/RCDPrototype.cs
+++ b/Content.Shared/RCD/RCDPrototype.cs
@@ -9,7 +9,7 @@ namespace Content.Shared.RCD;
/// Contains the parameters for a RCD construction / operation
///
[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;
///
- /// The length of the operation
+ /// The length of the operation
///
[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;
///
- /// 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
///
///
/// Should be set assuming that the entity faces south.
@@ -106,7 +106,7 @@ public sealed class RCDPrototype : IPrototype
private Box2? _collisionBounds = null;
///
- /// The polygon shape associated with the prototype CollisionBounds (if set)
+ /// The polygon shape associated with the prototype CollisionBounds (if set)
///
[ViewVariables(VVAccess.ReadOnly)]
public PolygonShape? CollisionPolygon { get; private set; } = null;
diff --git a/Content.Shared/Salvage/SalvageMapPrototype.cs b/Content.Shared/Salvage/SalvageMapPrototype.cs
index 518b64dafa..63a3164556 100644
--- a/Content.Shared/Salvage/SalvageMapPrototype.cs
+++ b/Content.Shared/Salvage/SalvageMapPrototype.cs
@@ -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!;
diff --git a/Content.Shared/Silicons/Laws/SiliconLawPrototype.cs b/Content.Shared/Silicons/Laws/SiliconLawPrototype.cs
index f6407be5c7..5e5df448b3 100644
--- a/Content.Shared/Silicons/Laws/SiliconLawPrototype.cs
+++ b/Content.Shared/Silicons/Laws/SiliconLawPrototype.cs
@@ -58,7 +58,7 @@ public partial class SiliconLaw : IComparable
///
[Prototype("siliconLaw")]
[Serializable, NetSerializable]
-public sealed class SiliconLawPrototype : SiliconLaw, IPrototype
+public sealed partial class SiliconLawPrototype : SiliconLaw, IPrototype
{
///
[IdDataField]
diff --git a/Content.Shared/SprayPainter/Prototypes/AirlockDepartmentsPrototype.cs b/Content.Shared/SprayPainter/Prototypes/AirlockDepartmentsPrototype.cs
index 3553597c52..b61aa037cc 100644
--- a/Content.Shared/SprayPainter/Prototypes/AirlockDepartmentsPrototype.cs
+++ b/Content.Shared/SprayPainter/Prototypes/AirlockDepartmentsPrototype.cs
@@ -7,7 +7,7 @@ namespace Content.Shared.SprayPainter.Prototypes;
/// Maps airlock style names to department ids.
///
[Prototype("airlockDepartments")]
-public sealed class AirlockDepartmentsPrototype : IPrototype
+public sealed partial class AirlockDepartmentsPrototype : IPrototype
{
[IdDataField]
public string ID { get; private set; } = default!;
diff --git a/Content.Shared/StatusIcon/StatusIconPrototype.cs b/Content.Shared/StatusIcon/StatusIconPrototype.cs
index 145b443051..2bd13b9361 100644
--- a/Content.Shared/StatusIcon/StatusIconPrototype.cs
+++ b/Content.Shared/StatusIcon/StatusIconPrototype.cs
@@ -58,7 +58,7 @@ public partial class StatusIconData : IComparable
/// but in new convenient prototype form!
///
[Prototype("statusIcon")]
-public sealed class StatusIconPrototype : StatusIconData, IPrototype, IInheritingPrototype
+public sealed partial class StatusIconPrototype : StatusIconData, IPrototype, IInheritingPrototype
{
///
[ParentDataField(typeof(AbstractPrototypeIdArraySerializer))]