From 2d58d19b0794610bf2c970797d6e98c786b38b21 Mon Sep 17 00:00:00 2001 From: DrSmugleaf Date: Wed, 1 Nov 2023 19:56:23 -0700 Subject: [PATCH] Make all prototype types partial (#21374) --- Content.Client/Parallax/Data/ParallaxPrototype.cs | 7 +------ .../Advertisements/AdvertisementsPackPrototype.cs | 2 +- Content.Server/AlertLevel/AlertLevelPrototype.cs | 2 +- Content.Server/Announcements/RoundAnnouncementPrototype.cs | 4 +--- Content.Server/Atmos/Reactions/GasReactionPrototype.cs | 2 +- Content.Server/GameTicking/Presets/GamePresetPrototype.cs | 2 +- .../GameTicking/Prototypes/LobbyBackgroundPrototype.cs | 2 +- Content.Server/GameTicking/Rules/GameRulePrototype.cs | 2 +- Content.Server/Holiday/HolidayPrototype.cs | 2 +- Content.Server/Maps/GameMapPoolPrototype.cs | 2 +- Content.Server/NPC/Components/NpcFactionPrototype.cs | 2 +- Content.Server/NPC/HTN/HTNCompoundPrototype.cs | 2 +- .../NPC/Queries/Curves/UtilityCurvePresetPrototype.cs | 2 +- Content.Server/NPC/Queries/UtilityQueryPrototype.cs | 2 +- Content.Server/Salvage/SalvageMapPrototype.cs | 2 +- .../Speech/Components/ReplacementAccentComponent.cs | 2 +- Content.Server/Wires/WireLayout.cs | 3 +-- Content.Server/Worldgen/Prototypes/BiomePrototype.cs | 2 +- .../Worldgen/Prototypes/WorldgenConfigPrototype.cs | 2 +- Content.Shared/Access/AccessGroupPrototype.cs | 2 +- Content.Shared/Access/AccessLevelPrototype.cs | 2 +- Content.Shared/Alert/AlertPrototype.cs | 2 +- Content.Shared/Atmos/Monitor/AtmosAlarmThreshold.cs | 2 +- Content.Shared/Atmos/Prototypes/GasPrototype.cs | 2 +- Content.Shared/Audio/AmbientMusicPrototype.cs | 2 +- Content.Shared/BarSign/BarSignPrototype.cs | 2 +- Content.Shared/Body/Prototypes/BodyPrototype.cs | 2 +- Content.Shared/Body/Prototypes/MetabolismGroupPrototype.cs | 2 +- Content.Shared/Body/Prototypes/MetabolizerTypePrototype.cs | 2 +- Content.Shared/Cargo/Prototypes/CargoBountyPrototype.cs | 2 +- Content.Shared/Cargo/Prototypes/CargoProductPrototype.cs | 3 +-- Content.Shared/Chat/Prototypes/AutoEmotePrototype.cs | 6 +++--- Content.Shared/Chat/Prototypes/EmotePrototype.cs | 2 +- Content.Shared/Chat/Prototypes/EmoteSoundsPrototype.cs | 2 +- .../Chat/TypingIndicator/TypingIndicatorPrototype.cs | 2 +- .../Dispenser/ReagentDispenserInventoryPrototype.cs | 2 +- Content.Shared/Chemistry/Reaction/ReactionPrototype.cs | 2 +- .../Chemistry/Reaction/ReactiveGroupPrototype.cs | 2 +- Content.Shared/Communications/CommsHackerComponent.cs | 2 +- .../Construction/Prototypes/ConstructionGraphPrototype.cs | 2 +- .../Construction/Prototypes/ConstructionPrototype.cs | 2 +- .../Construction/Prototypes/MachinePartPrototype.cs | 2 +- .../Damage/Prototypes/DamageContainerPrototype.cs | 2 +- Content.Shared/Damage/Prototypes/DamageGroupPrototype.cs | 2 +- Content.Shared/Damage/Prototypes/DamageTypePrototype.cs | 2 +- .../Damage/Prototypes/ExaminableDamagePrototype.cs | 2 +- Content.Shared/Dataset/DatasetPrototype.cs | 2 +- Content.Shared/Decals/ColorPalettePrototype.cs | 2 +- Content.Shared/Decals/DecalPrototype.cs | 2 +- Content.Shared/DeviceNetwork/DeviceFrequencyPrototype.cs | 2 +- Content.Shared/EntityList/EntityListPrototype.cs | 2 +- Content.Shared/EntityList/EntityLootTablePrototype.cs | 2 +- Content.Shared/Explosion/ExplosionPrototype.cs | 2 +- Content.Shared/HUD/HudThemePrototype.cs | 2 +- Content.Shared/Humanoid/Markings/MarkingPoints.cs | 2 +- Content.Shared/Humanoid/Markings/MarkingPrototype.cs | 2 +- .../Humanoid/Prototypes/HumanoidProfilePrototype.cs | 2 +- .../Humanoid/Prototypes/HumanoidSpritePrototypes.cs | 5 ++--- .../Humanoid/Prototypes/RandomHumanoidSettingsPrototype.cs | 2 +- Content.Shared/Humanoid/Prototypes/SpeciesPrototype.cs | 2 +- Content.Shared/Inventory/InventoryTemplatePrototype.cs | 2 +- Content.Shared/Kitchen/MicrowaveMealRecipePrototype.cs | 2 +- Content.Shared/Maps/ContentTileDefinition.cs | 2 +- Content.Shared/Materials/MaterialPrototype.cs | 2 +- Content.Shared/Mining/OrePrototype.cs | 2 +- .../NameIdentifier/NameIdentifierGroupPrototype.cs | 2 +- Content.Shared/Nutrition/Flavor.cs | 2 +- Content.Shared/Parallax/Biomes/BiomeTemplatePrototype.cs | 3 +-- .../Players/PlayTimeTracking/PlayTimeTrackerPrototype.cs | 2 +- Content.Shared/Procedural/DungeonConfigPrototype.cs | 2 +- Content.Shared/Procedural/DungeonPresetPrototype.cs | 2 +- Content.Shared/Procedural/DungeonRoomPackPrototype.cs | 2 +- Content.Shared/Procedural/DungeonRoomPrototype.cs | 2 +- Content.Shared/Procedural/Loot/SalvageLootPrototype.cs | 2 +- Content.Shared/Procedural/SalvageDifficultyPrototype.cs | 2 +- Content.Shared/Radio/RadioChannelPrototype.cs | 4 ++-- Content.Shared/Random/RulesPrototype.cs | 2 +- .../Random/WeightedRandomFillSolutionPrototype.cs | 2 +- Content.Shared/Research/Prototypes/LatheRecipePrototype.cs | 2 +- .../Research/Prototypes/TechDisciplinePrototype.cs | 2 +- Content.Shared/Research/Prototypes/TechnologyPrototype.cs | 2 +- Content.Shared/Roles/AntagPrototype.cs | 2 +- Content.Shared/Roles/DepartmentPrototype.cs | 3 +-- Content.Shared/Roles/JobPrototype.cs | 2 +- Content.Shared/Roles/StartingGearPrototype.cs | 2 +- .../Salvage/Expeditions/Modifiers/SalvageAirMod.cs | 2 +- .../Expeditions/Modifiers/SalvageBiomeModPrototype.cs | 2 +- .../Expeditions/Modifiers/SalvageDungeonModPrototype.cs | 2 +- .../Salvage/Expeditions/Modifiers/SalvageLightMod.cs | 2 +- Content.Shared/Salvage/Expeditions/Modifiers/SalvageMod.cs | 2 +- .../Salvage/Expeditions/Modifiers/SalvageTemperatureMod.cs | 3 +-- .../Salvage/Expeditions/Modifiers/SalvageWeatherMod.cs | 2 +- .../Salvage/Expeditions/SalvageFactionPrototype.cs | 4 +--- Content.Shared/Speech/SpeechSoundsPrototype.cs | 2 +- Content.Shared/Speech/SpeechVerbPrototype.cs | 3 +-- .../SprayPainter/Prototypes/AirlockGroupPrototype.cs | 2 +- Content.Shared/Spreader/EdgeSpreaderPrototype.cs | 2 +- Content.Shared/Stacks/StackPrototype.cs | 2 +- Content.Shared/StatusEffect/StatusEffectPrototype.cs | 2 +- Content.Shared/Tag/TagPrototype.cs | 2 +- Content.Shared/Tools/ToolQualityPrototype.cs | 2 +- Content.Shared/Traits/TraitPrototype.cs | 5 +++-- .../VendingMachines/VendingMachineInventoryPrototype.cs | 2 +- Content.Shared/Weapons/Ranged/HitscanPrototype.cs | 2 +- Content.Shared/Weather/WeatherPrototype.cs | 2 +- 105 files changed, 111 insertions(+), 126 deletions(-) diff --git a/Content.Client/Parallax/Data/ParallaxPrototype.cs b/Content.Client/Parallax/Data/ParallaxPrototype.cs index 32b79717c76fcf..034d8a3da97234 100644 --- a/Content.Client/Parallax/Data/ParallaxPrototype.cs +++ b/Content.Client/Parallax/Data/ParallaxPrototype.cs @@ -1,9 +1,4 @@ -using System.Collections.Generic; using Robust.Shared.Prototypes; -using Robust.Shared.Serialization.Manager.Attributes; -using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.Dictionary; -using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.List; -using Robust.Shared.Utility; namespace Content.Client.Parallax.Data; @@ -11,7 +6,7 @@ namespace Content.Client.Parallax.Data; /// Prototype data for a parallax. /// [Prototype("parallax")] -public sealed class ParallaxPrototype : IPrototype +public sealed partial class ParallaxPrototype : IPrototype { /// [IdDataField] diff --git a/Content.Server/Advertisements/AdvertisementsPackPrototype.cs b/Content.Server/Advertisements/AdvertisementsPackPrototype.cs index 31443573d34a2a..56086d39a4fdf8 100644 --- a/Content.Server/Advertisements/AdvertisementsPackPrototype.cs +++ b/Content.Server/Advertisements/AdvertisementsPackPrototype.cs @@ -3,7 +3,7 @@ namespace Content.Server.Advertisements { [Serializable, Prototype("advertisementsPack")] - public sealed class AdvertisementsPackPrototype : IPrototype + public sealed partial class AdvertisementsPackPrototype : IPrototype { [ViewVariables] [IdDataField] diff --git a/Content.Server/AlertLevel/AlertLevelPrototype.cs b/Content.Server/AlertLevel/AlertLevelPrototype.cs index 6716203b25cbc2..c6740c16cc5bb1 100644 --- a/Content.Server/AlertLevel/AlertLevelPrototype.cs +++ b/Content.Server/AlertLevel/AlertLevelPrototype.cs @@ -4,7 +4,7 @@ namespace Content.Server.AlertLevel; [Prototype("alertLevels")] -public sealed class AlertLevelPrototype : IPrototype +public sealed partial class AlertLevelPrototype : IPrototype { [IdDataField] public string ID { get; } = default!; diff --git a/Content.Server/Announcements/RoundAnnouncementPrototype.cs b/Content.Server/Announcements/RoundAnnouncementPrototype.cs index 928c279a87da10..11984196f1c7ae 100644 --- a/Content.Server/Announcements/RoundAnnouncementPrototype.cs +++ b/Content.Server/Announcements/RoundAnnouncementPrototype.cs @@ -1,7 +1,5 @@ -using Content.Server.GameTicking.Presets; using Robust.Shared.Audio; using Robust.Shared.Prototypes; -using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.List; namespace Content.Server.Announcements; @@ -9,7 +7,7 @@ namespace Content.Server.Announcements; /// Used for any announcements on the start of a round. /// [Prototype("roundAnnouncement")] -public sealed class RoundAnnouncementPrototype : IPrototype +public sealed partial class RoundAnnouncementPrototype : IPrototype { [IdDataField] public string ID { get; private set; } = default!; diff --git a/Content.Server/Atmos/Reactions/GasReactionPrototype.cs b/Content.Server/Atmos/Reactions/GasReactionPrototype.cs index 6db99d80d83221..30f9b72f8df608 100644 --- a/Content.Server/Atmos/Reactions/GasReactionPrototype.cs +++ b/Content.Server/Atmos/Reactions/GasReactionPrototype.cs @@ -18,7 +18,7 @@ public enum GasReaction : byte } [Prototype("gasReaction")] - public sealed class GasReactionPrototype : IPrototype + public sealed partial class GasReactionPrototype : IPrototype { [ViewVariables] [IdDataField] diff --git a/Content.Server/GameTicking/Presets/GamePresetPrototype.cs b/Content.Server/GameTicking/Presets/GamePresetPrototype.cs index aff42cb4a7d159..4731364ace2a42 100644 --- a/Content.Server/GameTicking/Presets/GamePresetPrototype.cs +++ b/Content.Server/GameTicking/Presets/GamePresetPrototype.cs @@ -10,7 +10,7 @@ namespace Content.Server.GameTicking.Presets /// A round-start setup preset, such as which antagonists to spawn. /// [Prototype("gamePreset")] - public sealed class GamePresetPrototype : IPrototype + public sealed partial class GamePresetPrototype : IPrototype { [IdDataField] public string ID { get; private set; } = default!; diff --git a/Content.Server/GameTicking/Prototypes/LobbyBackgroundPrototype.cs b/Content.Server/GameTicking/Prototypes/LobbyBackgroundPrototype.cs index 27f9930df5c7f1..4370c22b7ff81b 100644 --- a/Content.Server/GameTicking/Prototypes/LobbyBackgroundPrototype.cs +++ b/Content.Server/GameTicking/Prototypes/LobbyBackgroundPrototype.cs @@ -7,7 +7,7 @@ namespace Content.Server.GameTicking.Prototypes; /// Prototype for a lobby background the game can choose. /// [Prototype("lobbyBackground")] -public sealed class LobbyBackgroundPrototype : IPrototype +public sealed partial class LobbyBackgroundPrototype : IPrototype { /// [IdDataField] diff --git a/Content.Server/GameTicking/Rules/GameRulePrototype.cs b/Content.Server/GameTicking/Rules/GameRulePrototype.cs index d4872fdcad2304..47f99184f73b1d 100644 --- a/Content.Server/GameTicking/Rules/GameRulePrototype.cs +++ b/Content.Server/GameTicking/Rules/GameRulePrototype.cs @@ -4,7 +4,7 @@ namespace Content.Server.GameTicking.Rules; /* [Prototype("gameRule")] -public sealed class GameRulePrototype : IPrototype +public sealed partial class GameRulePrototype : IPrototype { [IdDataField] public string ID { get; private set; } = default!; diff --git a/Content.Server/Holiday/HolidayPrototype.cs b/Content.Server/Holiday/HolidayPrototype.cs index 20414ad939ac6e..749423402b5ae0 100644 --- a/Content.Server/Holiday/HolidayPrototype.cs +++ b/Content.Server/Holiday/HolidayPrototype.cs @@ -6,7 +6,7 @@ namespace Content.Server.Holiday { [Prototype("holiday")] - public sealed class HolidayPrototype : IPrototype + public sealed partial class HolidayPrototype : IPrototype { [DataField("name")] public string Name { get; private set; } = string.Empty; diff --git a/Content.Server/Maps/GameMapPoolPrototype.cs b/Content.Server/Maps/GameMapPoolPrototype.cs index 4c439d44a68650..7f45314b7a4775 100644 --- a/Content.Server/Maps/GameMapPoolPrototype.cs +++ b/Content.Server/Maps/GameMapPoolPrototype.cs @@ -8,7 +8,7 @@ namespace Content.Server.Maps; /// Prototype that holds a pool of maps that can be indexed based on the map pool CCVar. /// [Prototype("gameMapPool"), PublicAPI] -public sealed class GameMapPoolPrototype : IPrototype +public sealed partial class GameMapPoolPrototype : IPrototype { /// [IdDataField] diff --git a/Content.Server/NPC/Components/NpcFactionPrototype.cs b/Content.Server/NPC/Components/NpcFactionPrototype.cs index dba51c6a60f03f..fe5774710afcf9 100644 --- a/Content.Server/NPC/Components/NpcFactionPrototype.cs +++ b/Content.Server/NPC/Components/NpcFactionPrototype.cs @@ -7,7 +7,7 @@ namespace Content.Server.NPC.Components /// Contains data about this faction's relations with other factions. /// [Prototype("npcFaction")] - public sealed class NpcFactionPrototype : IPrototype + public sealed partial class NpcFactionPrototype : IPrototype { [ViewVariables] [IdDataField] diff --git a/Content.Server/NPC/HTN/HTNCompoundPrototype.cs b/Content.Server/NPC/HTN/HTNCompoundPrototype.cs index 82d6f029a7edcb..29cfb96f977b96 100644 --- a/Content.Server/NPC/HTN/HTNCompoundPrototype.cs +++ b/Content.Server/NPC/HTN/HTNCompoundPrototype.cs @@ -6,7 +6,7 @@ namespace Content.Server.NPC.HTN; /// Represents a network of multiple tasks. This gets expanded out to its relevant nodes. /// [Prototype("htnCompound")] -public sealed class HTNCompoundPrototype : IPrototype +public sealed partial class HTNCompoundPrototype : IPrototype { [IdDataField] public string ID { get; } = string.Empty; diff --git a/Content.Server/NPC/Queries/Curves/UtilityCurvePresetPrototype.cs b/Content.Server/NPC/Queries/Curves/UtilityCurvePresetPrototype.cs index 5ac127c05301bd..7a6e9152c6c795 100644 --- a/Content.Server/NPC/Queries/Curves/UtilityCurvePresetPrototype.cs +++ b/Content.Server/NPC/Queries/Curves/UtilityCurvePresetPrototype.cs @@ -3,7 +3,7 @@ namespace Content.Server.NPC.Queries.Curves; [Prototype("utilityCurvePreset")] -public sealed class UtilityCurvePresetPrototype : IPrototype +public sealed partial class UtilityCurvePresetPrototype : IPrototype { [IdDataField] public string ID { get; } = string.Empty; diff --git a/Content.Server/NPC/Queries/UtilityQueryPrototype.cs b/Content.Server/NPC/Queries/UtilityQueryPrototype.cs index e9b7e244fd631f..76750dbe9b7bd1 100644 --- a/Content.Server/NPC/Queries/UtilityQueryPrototype.cs +++ b/Content.Server/NPC/Queries/UtilityQueryPrototype.cs @@ -10,7 +10,7 @@ namespace Content.Server.NPC.Queries; /// These results are then run through the considerations. /// [Prototype("utilityQuery")] -public sealed class UtilityQueryPrototype : IPrototype +public sealed partial class UtilityQueryPrototype : IPrototype { [IdDataField] public string ID { get; private set; } = default!; diff --git a/Content.Server/Salvage/SalvageMapPrototype.cs b/Content.Server/Salvage/SalvageMapPrototype.cs index 1f40870c60e82c..b951c47d7a7dee 100644 --- a/Content.Server/Salvage/SalvageMapPrototype.cs +++ b/Content.Server/Salvage/SalvageMapPrototype.cs @@ -4,7 +4,7 @@ namespace Content.Server.Salvage; [Prototype("salvageMap")] -public sealed class SalvageMapPrototype : IPrototype +public sealed partial class SalvageMapPrototype : IPrototype { [ViewVariables] [IdDataField] public string ID { get; } = default!; diff --git a/Content.Server/Speech/Components/ReplacementAccentComponent.cs b/Content.Server/Speech/Components/ReplacementAccentComponent.cs index cbec2e84645c82..ac4e9fbafef780 100644 --- a/Content.Server/Speech/Components/ReplacementAccentComponent.cs +++ b/Content.Server/Speech/Components/ReplacementAccentComponent.cs @@ -4,7 +4,7 @@ namespace Content.Server.Speech.Components { [Prototype("accent")] - public sealed class ReplacementAccentPrototype : IPrototype + public sealed partial class ReplacementAccentPrototype : IPrototype { [ViewVariables] [IdDataField] diff --git a/Content.Server/Wires/WireLayout.cs b/Content.Server/Wires/WireLayout.cs index ed4381822fc845..ecafba013e0cd9 100644 --- a/Content.Server/Wires/WireLayout.cs +++ b/Content.Server/Wires/WireLayout.cs @@ -1,5 +1,4 @@ using Robust.Shared.Prototypes; -using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype; using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.Array; namespace Content.Server.Wires; @@ -12,7 +11,7 @@ namespace Content.Server.Wires; /// WiresSystem as a functional wire set. /// [Prototype("wireLayout")] -public sealed class WireLayoutPrototype : IPrototype, IInheritingPrototype +public sealed partial class WireLayoutPrototype : IPrototype, IInheritingPrototype { [IdDataField] public string ID { get; private set; } = default!; diff --git a/Content.Server/Worldgen/Prototypes/BiomePrototype.cs b/Content.Server/Worldgen/Prototypes/BiomePrototype.cs index 4f097d04e2e680..db1b5e2a160956 100644 --- a/Content.Server/Worldgen/Prototypes/BiomePrototype.cs +++ b/Content.Server/Worldgen/Prototypes/BiomePrototype.cs @@ -10,7 +10,7 @@ namespace Content.Server.Worldgen.Prototypes; /// of noise channels at that location. /// [Prototype("spaceBiome")] -public sealed class BiomePrototype : IPrototype, IInheritingPrototype +public sealed partial class BiomePrototype : IPrototype, IInheritingPrototype { /// [ParentDataField(typeof(AbstractPrototypeIdArraySerializer))] diff --git a/Content.Server/Worldgen/Prototypes/WorldgenConfigPrototype.cs b/Content.Server/Worldgen/Prototypes/WorldgenConfigPrototype.cs index d6dda9fb747ad9..49e9e1ed9d2e1d 100644 --- a/Content.Server/Worldgen/Prototypes/WorldgenConfigPrototype.cs +++ b/Content.Server/Worldgen/Prototypes/WorldgenConfigPrototype.cs @@ -8,7 +8,7 @@ namespace Content.Server.Worldgen.Prototypes; /// The components included are applied to the map that world generation is configured on. /// [Prototype("worldgenConfig")] -public sealed class WorldgenConfigPrototype : IPrototype +public sealed partial class WorldgenConfigPrototype : IPrototype { /// [IdDataField] diff --git a/Content.Shared/Access/AccessGroupPrototype.cs b/Content.Shared/Access/AccessGroupPrototype.cs index f32c8ffbca6ae9..8d3ed8feea1f42 100644 --- a/Content.Shared/Access/AccessGroupPrototype.cs +++ b/Content.Shared/Access/AccessGroupPrototype.cs @@ -9,7 +9,7 @@ namespace Content.Shared.Access; /// Used by to avoid boilerplate. /// [Prototype("accessGroup")] -public sealed class AccessGroupPrototype : IPrototype +public sealed partial class AccessGroupPrototype : IPrototype { [IdDataField] public string ID { get; private set; } = default!; diff --git a/Content.Shared/Access/AccessLevelPrototype.cs b/Content.Shared/Access/AccessLevelPrototype.cs index 4d3e4884b6bfa0..8cc59271585480 100644 --- a/Content.Shared/Access/AccessLevelPrototype.cs +++ b/Content.Shared/Access/AccessLevelPrototype.cs @@ -6,7 +6,7 @@ namespace Content.Shared.Access /// Defines a single access level that can be stored on ID cards and checked for. /// [Prototype("accessLevel")] - public sealed class AccessLevelPrototype : IPrototype + public sealed partial class AccessLevelPrototype : IPrototype { [ViewVariables] [IdDataField] diff --git a/Content.Shared/Alert/AlertPrototype.cs b/Content.Shared/Alert/AlertPrototype.cs index ba37e5133295cd..c24ac8582b01e4 100644 --- a/Content.Shared/Alert/AlertPrototype.cs +++ b/Content.Shared/Alert/AlertPrototype.cs @@ -8,7 +8,7 @@ namespace Content.Shared.Alert /// An alert popup with associated icon, tooltip, and other data. /// [Prototype("alert")] - public sealed class AlertPrototype : IPrototype, ISerializationHooks + public sealed partial class AlertPrototype : IPrototype, ISerializationHooks { [ViewVariables] string IPrototype.ID => AlertType.ToString(); diff --git a/Content.Shared/Atmos/Monitor/AtmosAlarmThreshold.cs b/Content.Shared/Atmos/Monitor/AtmosAlarmThreshold.cs index 7ad0e0f5022c05..c37c70a3abed65 100644 --- a/Content.Shared/Atmos/Monitor/AtmosAlarmThreshold.cs +++ b/Content.Shared/Atmos/Monitor/AtmosAlarmThreshold.cs @@ -5,7 +5,7 @@ namespace Content.Shared.Atmos.Monitor; [Prototype("alarmThreshold")] -public sealed class AtmosAlarmThresholdPrototype : IPrototype +public sealed partial class AtmosAlarmThresholdPrototype : IPrototype { [IdDataField] public string ID { get; private set; } = default!; diff --git a/Content.Shared/Atmos/Prototypes/GasPrototype.cs b/Content.Shared/Atmos/Prototypes/GasPrototype.cs index 75416db3f99565..dd474f424d8b53 100644 --- a/Content.Shared/Atmos/Prototypes/GasPrototype.cs +++ b/Content.Shared/Atmos/Prototypes/GasPrototype.cs @@ -5,7 +5,7 @@ namespace Content.Shared.Atmos.Prototypes { [Prototype("gas")] - public sealed class GasPrototype : IPrototype + public sealed partial class GasPrototype : IPrototype { [DataField("name")] public string Name { get; set; } = ""; diff --git a/Content.Shared/Audio/AmbientMusicPrototype.cs b/Content.Shared/Audio/AmbientMusicPrototype.cs index ad6f67b175ea70..54f70f57280f31 100644 --- a/Content.Shared/Audio/AmbientMusicPrototype.cs +++ b/Content.Shared/Audio/AmbientMusicPrototype.cs @@ -9,7 +9,7 @@ namespace Content.Shared.Audio; /// Attaches a rules prototype to sound files to play ambience. /// [Prototype("ambientMusic")] -public sealed class AmbientMusicPrototype : IPrototype +public sealed partial class AmbientMusicPrototype : IPrototype { [IdDataField] public string ID { get; } = string.Empty; diff --git a/Content.Shared/BarSign/BarSignPrototype.cs b/Content.Shared/BarSign/BarSignPrototype.cs index 6b8fec1275c720..a0566d9f4647db 100644 --- a/Content.Shared/BarSign/BarSignPrototype.cs +++ b/Content.Shared/BarSign/BarSignPrototype.cs @@ -3,7 +3,7 @@ namespace Content.Shared.BarSign { [Prototype("barSign")] - public sealed class BarSignPrototype : IPrototype + public sealed partial class BarSignPrototype : IPrototype { [ViewVariables] [IdDataField] diff --git a/Content.Shared/Body/Prototypes/BodyPrototype.cs b/Content.Shared/Body/Prototypes/BodyPrototype.cs index a1105dae5ca86f..123638f099b57b 100644 --- a/Content.Shared/Body/Prototypes/BodyPrototype.cs +++ b/Content.Shared/Body/Prototypes/BodyPrototype.cs @@ -3,7 +3,7 @@ namespace Content.Shared.Body.Prototypes; [Prototype("body")] -public sealed class BodyPrototype : IPrototype +public sealed partial class BodyPrototype : IPrototype { [IdDataField] public string ID { get; } = default!; diff --git a/Content.Shared/Body/Prototypes/MetabolismGroupPrototype.cs b/Content.Shared/Body/Prototypes/MetabolismGroupPrototype.cs index 2bf2c5110e491c..162b5f2d6c2613 100644 --- a/Content.Shared/Body/Prototypes/MetabolismGroupPrototype.cs +++ b/Content.Shared/Body/Prototypes/MetabolismGroupPrototype.cs @@ -3,7 +3,7 @@ namespace Content.Shared.Body.Prototypes { [Prototype("metabolismGroup")] - public sealed class MetabolismGroupPrototype : IPrototype + public sealed partial class MetabolismGroupPrototype : IPrototype { [IdDataField] public string ID { get; private set; } = default!; diff --git a/Content.Shared/Body/Prototypes/MetabolizerTypePrototype.cs b/Content.Shared/Body/Prototypes/MetabolizerTypePrototype.cs index 4add9738f30a65..c840983ca0c332 100644 --- a/Content.Shared/Body/Prototypes/MetabolizerTypePrototype.cs +++ b/Content.Shared/Body/Prototypes/MetabolizerTypePrototype.cs @@ -3,7 +3,7 @@ namespace Content.Shared.Body.Prototypes { [Prototype("metabolizerType")] - public sealed class MetabolizerTypePrototype : IPrototype + public sealed partial class MetabolizerTypePrototype : IPrototype { [IdDataField] public string ID { get; private set; } = default!; diff --git a/Content.Shared/Cargo/Prototypes/CargoBountyPrototype.cs b/Content.Shared/Cargo/Prototypes/CargoBountyPrototype.cs index e9c64ec99093a3..89c1d153acb096 100644 --- a/Content.Shared/Cargo/Prototypes/CargoBountyPrototype.cs +++ b/Content.Shared/Cargo/Prototypes/CargoBountyPrototype.cs @@ -10,7 +10,7 @@ namespace Content.Shared.Cargo.Prototypes; /// to receive a monetary reward. /// [Prototype("cargoBounty"), Serializable, NetSerializable] -public sealed class CargoBountyPrototype : IPrototype +public sealed partial class CargoBountyPrototype : IPrototype { /// [IdDataField] diff --git a/Content.Shared/Cargo/Prototypes/CargoProductPrototype.cs b/Content.Shared/Cargo/Prototypes/CargoProductPrototype.cs index a2dc9b516daca9..54876183094af9 100644 --- a/Content.Shared/Cargo/Prototypes/CargoProductPrototype.cs +++ b/Content.Shared/Cargo/Prototypes/CargoProductPrototype.cs @@ -1,12 +1,11 @@ using Robust.Shared.Prototypes; -using Robust.Shared.Serialization; using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype; using Robust.Shared.Utility; namespace Content.Shared.Cargo.Prototypes { [Prototype("cargoProduct")] - public sealed class CargoProductPrototype : IPrototype + public sealed partial class CargoProductPrototype : IPrototype { [DataField("name")] private string _name = string.Empty; diff --git a/Content.Shared/Chat/Prototypes/AutoEmotePrototype.cs b/Content.Shared/Chat/Prototypes/AutoEmotePrototype.cs index bfa98fa243dea5..ba818efb4d32e7 100644 --- a/Content.Shared/Chat/Prototypes/AutoEmotePrototype.cs +++ b/Content.Shared/Chat/Prototypes/AutoEmotePrototype.cs @@ -1,10 +1,10 @@ -namespace Content.Shared.Chat.Prototypes; - using Robust.Shared.Prototypes; using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype; +namespace Content.Shared.Chat.Prototypes; + [Prototype("autoEmote")] -public sealed class AutoEmotePrototype : IPrototype +public sealed partial class AutoEmotePrototype : IPrototype { /// [IdDataField] diff --git a/Content.Shared/Chat/Prototypes/EmotePrototype.cs b/Content.Shared/Chat/Prototypes/EmotePrototype.cs index d9d6a6344193bc..08f209d28d3601 100644 --- a/Content.Shared/Chat/Prototypes/EmotePrototype.cs +++ b/Content.Shared/Chat/Prototypes/EmotePrototype.cs @@ -8,7 +8,7 @@ namespace Content.Shared.Chat.Prototypes; /// Entities can activate emotes by chat input or code. /// [Prototype("emote")] -public sealed class EmotePrototype : IPrototype +public sealed partial class EmotePrototype : IPrototype { [IdDataField] public string ID { get; private set; } = default!; diff --git a/Content.Shared/Chat/Prototypes/EmoteSoundsPrototype.cs b/Content.Shared/Chat/Prototypes/EmoteSoundsPrototype.cs index 769bc7b20538b5..c9a78e7d6d7ffd 100644 --- a/Content.Shared/Chat/Prototypes/EmoteSoundsPrototype.cs +++ b/Content.Shared/Chat/Prototypes/EmoteSoundsPrototype.cs @@ -9,7 +9,7 @@ namespace Content.Shared.Chat.Prototypes; /// Different entities may use different sounds collections. /// [Prototype("emoteSounds")] -public sealed class EmoteSoundsPrototype : IPrototype +public sealed partial class EmoteSoundsPrototype : IPrototype { [IdDataField] public string ID { get; private set; } = default!; diff --git a/Content.Shared/Chat/TypingIndicator/TypingIndicatorPrototype.cs b/Content.Shared/Chat/TypingIndicator/TypingIndicatorPrototype.cs index 2cd114fde7e187..8cbfe7bb2e4f2b 100644 --- a/Content.Shared/Chat/TypingIndicator/TypingIndicatorPrototype.cs +++ b/Content.Shared/Chat/TypingIndicator/TypingIndicatorPrototype.cs @@ -8,7 +8,7 @@ namespace Content.Shared.Chat.TypingIndicator; /// Prototype to store chat typing indicator visuals. /// [Prototype("typingIndicator")] -public sealed class TypingIndicatorPrototype : IPrototype +public sealed partial class TypingIndicatorPrototype : IPrototype { [IdDataField] public string ID { get; private set; } = default!; diff --git a/Content.Shared/Chemistry/Dispenser/ReagentDispenserInventoryPrototype.cs b/Content.Shared/Chemistry/Dispenser/ReagentDispenserInventoryPrototype.cs index 84578168381a6d..c362535e4f585e 100644 --- a/Content.Shared/Chemistry/Dispenser/ReagentDispenserInventoryPrototype.cs +++ b/Content.Shared/Chemistry/Dispenser/ReagentDispenserInventoryPrototype.cs @@ -12,7 +12,7 @@ namespace Content.Shared.Chemistry.Dispenser /// machines define their inventory. /// [Serializable, NetSerializable, Prototype("reagentDispenserInventory")] - public sealed class ReagentDispenserInventoryPrototype : IPrototype + public sealed partial class ReagentDispenserInventoryPrototype : IPrototype { // TODO use ReagentId [DataField("inventory", customTypeSerializer: typeof(PrototypeIdListSerializer))] diff --git a/Content.Shared/Chemistry/Reaction/ReactionPrototype.cs b/Content.Shared/Chemistry/Reaction/ReactionPrototype.cs index 2ad0ff5e1d5c4d..37b5d4414074d7 100644 --- a/Content.Shared/Chemistry/Reaction/ReactionPrototype.cs +++ b/Content.Shared/Chemistry/Reaction/ReactionPrototype.cs @@ -11,7 +11,7 @@ namespace Content.Shared.Chemistry.Reaction /// Prototype for chemical reaction definitions /// [Prototype("reaction")] - public sealed class ReactionPrototype : IPrototype, IComparable + public sealed partial class ReactionPrototype : IPrototype, IComparable { [ViewVariables] [IdDataField] diff --git a/Content.Shared/Chemistry/Reaction/ReactiveGroupPrototype.cs b/Content.Shared/Chemistry/Reaction/ReactiveGroupPrototype.cs index 329353681507e8..906c01467cebae 100644 --- a/Content.Shared/Chemistry/Reaction/ReactiveGroupPrototype.cs +++ b/Content.Shared/Chemistry/Reaction/ReactiveGroupPrototype.cs @@ -3,7 +3,7 @@ namespace Content.Shared.Chemistry.Reaction; [Prototype("reactiveGroup")] -public sealed class ReactiveGroupPrototype : IPrototype +public sealed partial class ReactiveGroupPrototype : IPrototype { [IdDataField] public string ID { get; private set; } = default!; diff --git a/Content.Shared/Communications/CommsHackerComponent.cs b/Content.Shared/Communications/CommsHackerComponent.cs index 810058f1ce57bd..b199e64d7e4cb4 100644 --- a/Content.Shared/Communications/CommsHackerComponent.cs +++ b/Content.Shared/Communications/CommsHackerComponent.cs @@ -30,7 +30,7 @@ public sealed partial class CommsHackerComponent : Component /// You wouldn't do that, right? /// [Prototype("ninjaHackingThreat")] -public sealed class NinjaHackingThreatPrototype : IPrototype +public sealed partial class NinjaHackingThreatPrototype : IPrototype { [IdDataField] public string ID { get; private set; } = default!; diff --git a/Content.Shared/Construction/Prototypes/ConstructionGraphPrototype.cs b/Content.Shared/Construction/Prototypes/ConstructionGraphPrototype.cs index 050f8b6c18869f..7ac02371ebcd4f 100644 --- a/Content.Shared/Construction/Prototypes/ConstructionGraphPrototype.cs +++ b/Content.Shared/Construction/Prototypes/ConstructionGraphPrototype.cs @@ -6,7 +6,7 @@ namespace Content.Shared.Construction.Prototypes { [Prototype("constructionGraph")] - public sealed class ConstructionGraphPrototype : IPrototype, ISerializationHooks + public sealed partial class ConstructionGraphPrototype : IPrototype, ISerializationHooks { private readonly Dictionary _nodes = new(); private readonly Dictionary<(string, string), ConstructionGraphNode[]?> _paths = new(); diff --git a/Content.Shared/Construction/Prototypes/ConstructionPrototype.cs b/Content.Shared/Construction/Prototypes/ConstructionPrototype.cs index e4e28b11b51769..bd6dc096adda80 100644 --- a/Content.Shared/Construction/Prototypes/ConstructionPrototype.cs +++ b/Content.Shared/Construction/Prototypes/ConstructionPrototype.cs @@ -6,7 +6,7 @@ namespace Content.Shared.Construction.Prototypes; [Prototype("construction")] -public sealed class ConstructionPrototype : IPrototype +public sealed partial class ConstructionPrototype : IPrototype { [DataField("conditions")] private List _conditions = new(); diff --git a/Content.Shared/Construction/Prototypes/MachinePartPrototype.cs b/Content.Shared/Construction/Prototypes/MachinePartPrototype.cs index 707dc5dc23f6f3..7a080c94a3f782 100644 --- a/Content.Shared/Construction/Prototypes/MachinePartPrototype.cs +++ b/Content.Shared/Construction/Prototypes/MachinePartPrototype.cs @@ -8,7 +8,7 @@ namespace Content.Shared.Construction.Prototypes; /// different types of machine parts. /// [Prototype("machinePart")] -public sealed class MachinePartPrototype : IPrototype +public sealed partial class MachinePartPrototype : IPrototype { /// [IdDataField] diff --git a/Content.Shared/Damage/Prototypes/DamageContainerPrototype.cs b/Content.Shared/Damage/Prototypes/DamageContainerPrototype.cs index 0bcb95294bd875..a77bf992c8906c 100644 --- a/Content.Shared/Damage/Prototypes/DamageContainerPrototype.cs +++ b/Content.Shared/Damage/Prototypes/DamageContainerPrototype.cs @@ -14,7 +14,7 @@ namespace Content.Shared.Damage.Prototypes /// [Prototype("damageContainer")] [Serializable, NetSerializable] - public sealed class DamageContainerPrototype : IPrototype + public sealed partial class DamageContainerPrototype : IPrototype { [ViewVariables] [IdDataField] diff --git a/Content.Shared/Damage/Prototypes/DamageGroupPrototype.cs b/Content.Shared/Damage/Prototypes/DamageGroupPrototype.cs index 2a508a03e625b1..807f143708c7af 100644 --- a/Content.Shared/Damage/Prototypes/DamageGroupPrototype.cs +++ b/Content.Shared/Damage/Prototypes/DamageGroupPrototype.cs @@ -13,7 +13,7 @@ namespace Content.Shared.Damage.Prototypes /// [Prototype("damageGroup", 2)] [Serializable, NetSerializable] - public sealed class DamageGroupPrototype : IPrototype + public sealed partial class DamageGroupPrototype : IPrototype { [IdDataField] public string ID { get; } = default!; diff --git a/Content.Shared/Damage/Prototypes/DamageTypePrototype.cs b/Content.Shared/Damage/Prototypes/DamageTypePrototype.cs index 592de5acf34e29..cde7a8617f5baa 100644 --- a/Content.Shared/Damage/Prototypes/DamageTypePrototype.cs +++ b/Content.Shared/Damage/Prototypes/DamageTypePrototype.cs @@ -6,7 +6,7 @@ namespace Content.Shared.Damage.Prototypes /// A single damage type. These types are grouped together in s. /// [Prototype("damageType")] - public sealed class DamageTypePrototype : IPrototype + public sealed partial class DamageTypePrototype : IPrototype { [IdDataField] public string ID { get; private set; } = default!; diff --git a/Content.Shared/Damage/Prototypes/ExaminableDamagePrototype.cs b/Content.Shared/Damage/Prototypes/ExaminableDamagePrototype.cs index c4191f4d1370b4..563834b372689d 100644 --- a/Content.Shared/Damage/Prototypes/ExaminableDamagePrototype.cs +++ b/Content.Shared/Damage/Prototypes/ExaminableDamagePrototype.cs @@ -6,7 +6,7 @@ namespace Content.Shared.Damage.Prototypes; /// Prototype for examinable damage messages. /// [Prototype("examinableDamage")] -public sealed class ExaminableDamagePrototype : IPrototype +public sealed partial class ExaminableDamagePrototype : IPrototype { [IdDataField] public string ID { get; private set; } = default!; diff --git a/Content.Shared/Dataset/DatasetPrototype.cs b/Content.Shared/Dataset/DatasetPrototype.cs index b41886429940a7..08ae380bc5dcd1 100644 --- a/Content.Shared/Dataset/DatasetPrototype.cs +++ b/Content.Shared/Dataset/DatasetPrototype.cs @@ -3,7 +3,7 @@ namespace Content.Shared.Dataset { [Prototype("dataset")] - public sealed class DatasetPrototype : IPrototype + public sealed partial class DatasetPrototype : IPrototype { [ViewVariables] [IdDataField] diff --git a/Content.Shared/Decals/ColorPalettePrototype.cs b/Content.Shared/Decals/ColorPalettePrototype.cs index a42e0a0ff3a009..cef776d0c99536 100644 --- a/Content.Shared/Decals/ColorPalettePrototype.cs +++ b/Content.Shared/Decals/ColorPalettePrototype.cs @@ -3,7 +3,7 @@ namespace Content.Shared.Decals; [Prototype("palette")] -public sealed class ColorPalettePrototype : IPrototype +public sealed partial class ColorPalettePrototype : IPrototype { [IdDataField] public string ID { get; } = null!; [DataField("name")] public string Name { get; private set; } = null!; diff --git a/Content.Shared/Decals/DecalPrototype.cs b/Content.Shared/Decals/DecalPrototype.cs index 1fc223b2075230..2721f5d2d257a2 100644 --- a/Content.Shared/Decals/DecalPrototype.cs +++ b/Content.Shared/Decals/DecalPrototype.cs @@ -4,7 +4,7 @@ namespace Content.Shared.Decals { [Prototype("decal")] - public sealed class DecalPrototype : IPrototype + public sealed partial class DecalPrototype : IPrototype { [IdDataField] public string ID { get; } = null!; [DataField("sprite")] public SpriteSpecifier Sprite { get; private set; } = SpriteSpecifier.Invalid; diff --git a/Content.Shared/DeviceNetwork/DeviceFrequencyPrototype.cs b/Content.Shared/DeviceNetwork/DeviceFrequencyPrototype.cs index 2e6ef4d1a0297a..b34d5b67a869b2 100644 --- a/Content.Shared/DeviceNetwork/DeviceFrequencyPrototype.cs +++ b/Content.Shared/DeviceNetwork/DeviceFrequencyPrototype.cs @@ -8,7 +8,7 @@ namespace Content.Shared.DeviceNetwork; /// [Prototype("deviceFrequency")] [Serializable, NetSerializable] -public sealed class DeviceFrequencyPrototype : IPrototype +public sealed partial class DeviceFrequencyPrototype : IPrototype { [IdDataField] public string ID { get; private set; } = default!; diff --git a/Content.Shared/EntityList/EntityListPrototype.cs b/Content.Shared/EntityList/EntityListPrototype.cs index 4ba6dbd7cafaa1..241712eff7773b 100644 --- a/Content.Shared/EntityList/EntityListPrototype.cs +++ b/Content.Shared/EntityList/EntityListPrototype.cs @@ -5,7 +5,7 @@ namespace Content.Shared.EntityList { [Prototype("entityList")] - public sealed class EntityListPrototype : IPrototype + public sealed partial class EntityListPrototype : IPrototype { [ViewVariables] [IdDataField] diff --git a/Content.Shared/EntityList/EntityLootTablePrototype.cs b/Content.Shared/EntityList/EntityLootTablePrototype.cs index da535d570c4f5c..418a584af5c43e 100644 --- a/Content.Shared/EntityList/EntityLootTablePrototype.cs +++ b/Content.Shared/EntityList/EntityLootTablePrototype.cs @@ -6,7 +6,7 @@ namespace Content.Shared.EntityList; [Prototype("entityLootTable")] -public sealed class EntityLootTablePrototype : IPrototype +public sealed partial class EntityLootTablePrototype : IPrototype { [IdDataField] public string ID { get; private set; } = default!; diff --git a/Content.Shared/Explosion/ExplosionPrototype.cs b/Content.Shared/Explosion/ExplosionPrototype.cs index a2fa7d632e845e..37d0b2b4212ffe 100644 --- a/Content.Shared/Explosion/ExplosionPrototype.cs +++ b/Content.Shared/Explosion/ExplosionPrototype.cs @@ -14,7 +14,7 @@ namespace Content.Shared.Explosion; /// that map of airtight entities. This could be done, but is just not yet implemented. /// [Prototype("explosion")] -public sealed class ExplosionPrototype : IPrototype +public sealed partial class ExplosionPrototype : IPrototype { [IdDataField] public string ID { get; private set; } = default!; diff --git a/Content.Shared/HUD/HudThemePrototype.cs b/Content.Shared/HUD/HudThemePrototype.cs index bdf6f056dc9271..deb62c9b66c236 100644 --- a/Content.Shared/HUD/HudThemePrototype.cs +++ b/Content.Shared/HUD/HudThemePrototype.cs @@ -3,7 +3,7 @@ namespace Content.Shared.HUD { [Prototype("hudTheme")] - public sealed class HudThemePrototype : IPrototype + public sealed partial class HudThemePrototype : IPrototype { [DataField("name", required: true)] public string Name { get; private set; } = string.Empty; diff --git a/Content.Shared/Humanoid/Markings/MarkingPoints.cs b/Content.Shared/Humanoid/Markings/MarkingPoints.cs index 41009f95c0ddbd..c9784728e79c3f 100644 --- a/Content.Shared/Humanoid/Markings/MarkingPoints.cs +++ b/Content.Shared/Humanoid/Markings/MarkingPoints.cs @@ -35,7 +35,7 @@ public static Dictionary CloneMarkingPointDict } [Prototype("markingPoints")] -public sealed class MarkingPointsPrototype : IPrototype +public sealed partial class MarkingPointsPrototype : IPrototype { [IdDataField] public string ID { get; } = default!; diff --git a/Content.Shared/Humanoid/Markings/MarkingPrototype.cs b/Content.Shared/Humanoid/Markings/MarkingPrototype.cs index 19cb1773c9c3d7..dfb594db5f94bb 100644 --- a/Content.Shared/Humanoid/Markings/MarkingPrototype.cs +++ b/Content.Shared/Humanoid/Markings/MarkingPrototype.cs @@ -4,7 +4,7 @@ namespace Content.Shared.Humanoid.Markings { [Prototype("marking")] - public sealed class MarkingPrototype : IPrototype + public sealed partial class MarkingPrototype : IPrototype { [IdDataField] public string ID { get; private set; } = "uwu"; diff --git a/Content.Shared/Humanoid/Prototypes/HumanoidProfilePrototype.cs b/Content.Shared/Humanoid/Prototypes/HumanoidProfilePrototype.cs index 7755e3113c01bd..bd023e2d21fe5c 100644 --- a/Content.Shared/Humanoid/Prototypes/HumanoidProfilePrototype.cs +++ b/Content.Shared/Humanoid/Prototypes/HumanoidProfilePrototype.cs @@ -4,7 +4,7 @@ namespace Content.Shared.Humanoid.Prototypes; [Prototype("humanoidProfile")] -public sealed class HumanoidProfilePrototype : IPrototype +public sealed partial class HumanoidProfilePrototype : IPrototype { [IdDataField] public string ID { get; private set; } = default!; diff --git a/Content.Shared/Humanoid/Prototypes/HumanoidSpritePrototypes.cs b/Content.Shared/Humanoid/Prototypes/HumanoidSpritePrototypes.cs index b185a6a502c284..097dc9d466b0e8 100644 --- a/Content.Shared/Humanoid/Prototypes/HumanoidSpritePrototypes.cs +++ b/Content.Shared/Humanoid/Prototypes/HumanoidSpritePrototypes.cs @@ -1,4 +1,3 @@ -using Content.Shared.Humanoid.Markings; using Robust.Shared.Prototypes; using Robust.Shared.Utility; @@ -9,7 +8,7 @@ namespace Content.Shared.Humanoid.Prototypes; /// or settings per layer) /// [Prototype("speciesBaseSprites")] -public sealed class HumanoidSpeciesBaseSpritesPrototype : IPrototype +public sealed partial class HumanoidSpeciesBaseSpritesPrototype : IPrototype { [IdDataField] public string ID { get; private set; } = default!; @@ -30,7 +29,7 @@ public sealed class HumanoidSpeciesBaseSpritesPrototype : IPrototype /// that sprite (or at least, the layer this sprite is on). /// [Prototype("humanoidBaseSprite")] -public sealed class HumanoidSpeciesSpriteLayer : IPrototype +public sealed partial class HumanoidSpeciesSpriteLayer : IPrototype { [IdDataField] public string ID { get; private set; } = default!; diff --git a/Content.Shared/Humanoid/Prototypes/RandomHumanoidSettingsPrototype.cs b/Content.Shared/Humanoid/Prototypes/RandomHumanoidSettingsPrototype.cs index 907adc42dc20e2..ec6818221a9ac5 100644 --- a/Content.Shared/Humanoid/Prototypes/RandomHumanoidSettingsPrototype.cs +++ b/Content.Shared/Humanoid/Prototypes/RandomHumanoidSettingsPrototype.cs @@ -7,7 +7,7 @@ namespace Content.Shared.Humanoid.Prototypes; /// This is what is used to change a humanoid spawned by RandomHumanoidSystem in Content.Server. /// [Prototype("randomHumanoidSettings")] -public sealed class RandomHumanoidSettingsPrototype : IPrototype, IInheritingPrototype +public sealed partial class RandomHumanoidSettingsPrototype : IPrototype, IInheritingPrototype { [IdDataField] public string ID { get; } = default!; diff --git a/Content.Shared/Humanoid/Prototypes/SpeciesPrototype.cs b/Content.Shared/Humanoid/Prototypes/SpeciesPrototype.cs index 54c74e542fc754..a8dcea36f1b0f3 100644 --- a/Content.Shared/Humanoid/Prototypes/SpeciesPrototype.cs +++ b/Content.Shared/Humanoid/Prototypes/SpeciesPrototype.cs @@ -4,7 +4,7 @@ namespace Content.Shared.Humanoid.Prototypes; [Prototype("species")] -public sealed class SpeciesPrototype : IPrototype +public sealed partial class SpeciesPrototype : IPrototype { /// /// Prototype ID of the species. diff --git a/Content.Shared/Inventory/InventoryTemplatePrototype.cs b/Content.Shared/Inventory/InventoryTemplatePrototype.cs index fcbe5dcf304909..a4779699629709 100644 --- a/Content.Shared/Inventory/InventoryTemplatePrototype.cs +++ b/Content.Shared/Inventory/InventoryTemplatePrototype.cs @@ -5,7 +5,7 @@ namespace Content.Shared.Inventory; [Prototype("inventoryTemplate")] -public sealed class InventoryTemplatePrototype : IPrototype +public sealed partial class InventoryTemplatePrototype : IPrototype { [IdDataField] public string ID { get; } = string.Empty; diff --git a/Content.Shared/Kitchen/MicrowaveMealRecipePrototype.cs b/Content.Shared/Kitchen/MicrowaveMealRecipePrototype.cs index 3ee8e8ee4a80eb..b0991b54605dbe 100644 --- a/Content.Shared/Kitchen/MicrowaveMealRecipePrototype.cs +++ b/Content.Shared/Kitchen/MicrowaveMealRecipePrototype.cs @@ -10,7 +10,7 @@ namespace Content.Shared.Kitchen /// A recipe for space microwaves. /// [Prototype("microwaveMealRecipe")] - public sealed class FoodRecipePrototype : IPrototype + public sealed partial class FoodRecipePrototype : IPrototype { [ViewVariables] [IdDataField] diff --git a/Content.Shared/Maps/ContentTileDefinition.cs b/Content.Shared/Maps/ContentTileDefinition.cs index eab373a4630c15..f3a26a359f9d8a 100644 --- a/Content.Shared/Maps/ContentTileDefinition.cs +++ b/Content.Shared/Maps/ContentTileDefinition.cs @@ -10,7 +10,7 @@ namespace Content.Shared.Maps { [Prototype("tile")] - public sealed class ContentTileDefinition : IPrototype, IInheritingPrototype, ITileDefinition + public sealed partial class ContentTileDefinition : IPrototype, IInheritingPrototype, ITileDefinition { public const string SpaceID = "Space"; diff --git a/Content.Shared/Materials/MaterialPrototype.cs b/Content.Shared/Materials/MaterialPrototype.cs index cf1159947be841..905a2359d38b06 100644 --- a/Content.Shared/Materials/MaterialPrototype.cs +++ b/Content.Shared/Materials/MaterialPrototype.cs @@ -9,7 +9,7 @@ namespace Content.Shared.Materials /// Properties should be intrinsic (or at least as much is necessary for game purposes). /// [Prototype("material")] - public sealed class MaterialPrototype : IPrototype, IInheritingPrototype + public sealed partial class MaterialPrototype : IPrototype, IInheritingPrototype { [ViewVariables] [ParentDataField(typeof(AbstractPrototypeIdArraySerializer))] diff --git a/Content.Shared/Mining/OrePrototype.cs b/Content.Shared/Mining/OrePrototype.cs index ea15aead2049b4..a4f8a40a6f672f 100644 --- a/Content.Shared/Mining/OrePrototype.cs +++ b/Content.Shared/Mining/OrePrototype.cs @@ -7,7 +7,7 @@ namespace Content.Shared.Mining; /// This is a prototype for defining ores that generate in rock /// [Prototype("ore")] -public sealed class OrePrototype : IPrototype +public sealed partial class OrePrototype : IPrototype { /// [IdDataField] diff --git a/Content.Shared/NameIdentifier/NameIdentifierGroupPrototype.cs b/Content.Shared/NameIdentifier/NameIdentifierGroupPrototype.cs index 82dce0cf3bcf48..25c5616bad176d 100644 --- a/Content.Shared/NameIdentifier/NameIdentifierGroupPrototype.cs +++ b/Content.Shared/NameIdentifier/NameIdentifierGroupPrototype.cs @@ -3,7 +3,7 @@ namespace Content.Shared.NameIdentifier; [Prototype("nameIdentifierGroup")] -public sealed class NameIdentifierGroupPrototype : IPrototype +public sealed partial class NameIdentifierGroupPrototype : IPrototype { [IdDataField] public string ID { get; private set; } = default!; diff --git a/Content.Shared/Nutrition/Flavor.cs b/Content.Shared/Nutrition/Flavor.cs index 051836a5578363..cb77ae72711f08 100644 --- a/Content.Shared/Nutrition/Flavor.cs +++ b/Content.Shared/Nutrition/Flavor.cs @@ -3,7 +3,7 @@ namespace Content.Shared.Nutrition; [Prototype("flavor")] -public sealed class FlavorPrototype : IPrototype +public sealed partial class FlavorPrototype : IPrototype { [IdDataField] public string ID { get; private set; } = default!; diff --git a/Content.Shared/Parallax/Biomes/BiomeTemplatePrototype.cs b/Content.Shared/Parallax/Biomes/BiomeTemplatePrototype.cs index 74a98f67f07720..b9fe40b1ba1826 100644 --- a/Content.Shared/Parallax/Biomes/BiomeTemplatePrototype.cs +++ b/Content.Shared/Parallax/Biomes/BiomeTemplatePrototype.cs @@ -1,5 +1,4 @@ using Content.Shared.Parallax.Biomes.Layers; -using Robust.Shared.Noise; using Robust.Shared.Prototypes; namespace Content.Shared.Parallax.Biomes; @@ -8,7 +7,7 @@ namespace Content.Shared.Parallax.Biomes; /// A preset group of biome layers to be used for a /// [Prototype("biomeTemplate")] -public sealed class BiomeTemplatePrototype : IPrototype +public sealed partial class BiomeTemplatePrototype : IPrototype { [IdDataField] public string ID { get; } = default!; diff --git a/Content.Shared/Players/PlayTimeTracking/PlayTimeTrackerPrototype.cs b/Content.Shared/Players/PlayTimeTracking/PlayTimeTrackerPrototype.cs index 3b9aac97fd1b1c..d1cfc7f8d4bb0d 100644 --- a/Content.Shared/Players/PlayTimeTracking/PlayTimeTrackerPrototype.cs +++ b/Content.Shared/Players/PlayTimeTracking/PlayTimeTrackerPrototype.cs @@ -6,7 +6,7 @@ namespace Content.Shared.Players.PlayTimeTracking; /// Given to a role to specify its ID for role-timer tracking purposes. That's it. /// [Prototype("playTimeTracker")] -public sealed class PlayTimeTrackerPrototype : IPrototype +public sealed partial class PlayTimeTrackerPrototype : IPrototype { [IdDataField] public string ID { get; } = default!; } diff --git a/Content.Shared/Procedural/DungeonConfigPrototype.cs b/Content.Shared/Procedural/DungeonConfigPrototype.cs index 02f2aad1d4713f..07a7000d63748b 100644 --- a/Content.Shared/Procedural/DungeonConfigPrototype.cs +++ b/Content.Shared/Procedural/DungeonConfigPrototype.cs @@ -5,7 +5,7 @@ namespace Content.Shared.Procedural; [Prototype("dungeonConfig")] -public sealed class DungeonConfigPrototype : IPrototype +public sealed partial class DungeonConfigPrototype : IPrototype { [IdDataField] public string ID { get; private set; } = default!; diff --git a/Content.Shared/Procedural/DungeonPresetPrototype.cs b/Content.Shared/Procedural/DungeonPresetPrototype.cs index 29ae933be6bb10..a143c3c8c054f6 100644 --- a/Content.Shared/Procedural/DungeonPresetPrototype.cs +++ b/Content.Shared/Procedural/DungeonPresetPrototype.cs @@ -3,7 +3,7 @@ namespace Content.Shared.Procedural; [Prototype("dungeonPreset")] -public sealed class DungeonPresetPrototype : IPrototype +public sealed partial class DungeonPresetPrototype : IPrototype { [IdDataField] public string ID { get; } = default!; diff --git a/Content.Shared/Procedural/DungeonRoomPackPrototype.cs b/Content.Shared/Procedural/DungeonRoomPackPrototype.cs index 20332271e3f7cf..8cd129d30a4985 100644 --- a/Content.Shared/Procedural/DungeonRoomPackPrototype.cs +++ b/Content.Shared/Procedural/DungeonRoomPackPrototype.cs @@ -3,7 +3,7 @@ namespace Content.Shared.Procedural; [Prototype("dungeonRoomPack")] -public sealed class DungeonRoomPackPrototype : IPrototype +public sealed partial class DungeonRoomPackPrototype : IPrototype { [IdDataField] public string ID { get; private set; } = string.Empty; diff --git a/Content.Shared/Procedural/DungeonRoomPrototype.cs b/Content.Shared/Procedural/DungeonRoomPrototype.cs index 2fc2bcc8809498..74fa4b36e3c790 100644 --- a/Content.Shared/Procedural/DungeonRoomPrototype.cs +++ b/Content.Shared/Procedural/DungeonRoomPrototype.cs @@ -6,7 +6,7 @@ namespace Content.Shared.Procedural; [Prototype("dungeonRoom")] -public sealed class DungeonRoomPrototype : IPrototype +public sealed partial class DungeonRoomPrototype : IPrototype { [IdDataField] public string ID { get; } = string.Empty; diff --git a/Content.Shared/Procedural/Loot/SalvageLootPrototype.cs b/Content.Shared/Procedural/Loot/SalvageLootPrototype.cs index ba684dfe435b22..9e9c0d3e64f497 100644 --- a/Content.Shared/Procedural/Loot/SalvageLootPrototype.cs +++ b/Content.Shared/Procedural/Loot/SalvageLootPrototype.cs @@ -6,7 +6,7 @@ namespace Content.Shared.Procedural.Loot; /// Spawned inside of a salvage mission. /// [Prototype("salvageLoot")] -public sealed class SalvageLootPrototype : IPrototype +public sealed partial class SalvageLootPrototype : IPrototype { [IdDataField] public string ID { get; } = default!; diff --git a/Content.Shared/Procedural/SalvageDifficultyPrototype.cs b/Content.Shared/Procedural/SalvageDifficultyPrototype.cs index 335bebde3f8424..6bf447fdc7eef2 100644 --- a/Content.Shared/Procedural/SalvageDifficultyPrototype.cs +++ b/Content.Shared/Procedural/SalvageDifficultyPrototype.cs @@ -3,7 +3,7 @@ namespace Content.Shared.Procedural; [Prototype("salvageDifficulty")] -public sealed class SalvageDifficultyPrototype : IPrototype +public sealed partial class SalvageDifficultyPrototype : IPrototype { [IdDataField] public string ID { get; } = string.Empty; diff --git a/Content.Shared/Radio/RadioChannelPrototype.cs b/Content.Shared/Radio/RadioChannelPrototype.cs index b8b862f61f1b56..cc65f885375cd1 100644 --- a/Content.Shared/Radio/RadioChannelPrototype.cs +++ b/Content.Shared/Radio/RadioChannelPrototype.cs @@ -3,7 +3,7 @@ namespace Content.Shared.Radio; [Prototype("radioChannel")] -public sealed class RadioChannelPrototype : IPrototype +public sealed partial class RadioChannelPrototype : IPrototype { /// /// Human-readable name for the channel. @@ -30,7 +30,7 @@ public sealed class RadioChannelPrototype : IPrototype public string ID { get; } = default!; /// - /// If channel is long range it doesn't require telecommunication server + /// If channel is long range it doesn't require telecommunication server /// and messages can be sent across different stations /// [DataField("longRange"), ViewVariables] diff --git a/Content.Shared/Random/RulesPrototype.cs b/Content.Shared/Random/RulesPrototype.cs index 3d1e1ab1a18a08..6bbc3a68f8f564 100644 --- a/Content.Shared/Random/RulesPrototype.cs +++ b/Content.Shared/Random/RulesPrototype.cs @@ -12,7 +12,7 @@ namespace Content.Shared.Random; /// e.g. "choose maintenance audio if 90% of tiles nearby are maintenance tiles" /// [Prototype("rules")] -public sealed class RulesPrototype : IPrototype +public sealed partial class RulesPrototype : IPrototype { [IdDataField] public string ID { get; } = string.Empty; diff --git a/Content.Shared/Random/WeightedRandomFillSolutionPrototype.cs b/Content.Shared/Random/WeightedRandomFillSolutionPrototype.cs index 8a6f133d0954c7..48dc99799c0bb8 100644 --- a/Content.Shared/Random/WeightedRandomFillSolutionPrototype.cs +++ b/Content.Shared/Random/WeightedRandomFillSolutionPrototype.cs @@ -6,7 +6,7 @@ namespace Content.Shared.Random; /// Random weighting dataset for solutions, able to specify reagents quantity. /// [Prototype("weightedRandomFillSolution")] -public sealed class WeightedRandomFillSolutionPrototype : IPrototype +public sealed partial class WeightedRandomFillSolutionPrototype : IPrototype { [IdDataField] public string ID { get; } = default!; diff --git a/Content.Shared/Research/Prototypes/LatheRecipePrototype.cs b/Content.Shared/Research/Prototypes/LatheRecipePrototype.cs index 8dafad3dc59e06..709a592cc1d562 100644 --- a/Content.Shared/Research/Prototypes/LatheRecipePrototype.cs +++ b/Content.Shared/Research/Prototypes/LatheRecipePrototype.cs @@ -8,7 +8,7 @@ namespace Content.Shared.Research.Prototypes { [NetSerializable, Serializable, Prototype("latheRecipe")] - public sealed class LatheRecipePrototype : IPrototype + public sealed partial class LatheRecipePrototype : IPrototype { [ViewVariables] [IdDataField] diff --git a/Content.Shared/Research/Prototypes/TechDisciplinePrototype.cs b/Content.Shared/Research/Prototypes/TechDisciplinePrototype.cs index 76eb8092add65b..b48d8256b7310a 100644 --- a/Content.Shared/Research/Prototypes/TechDisciplinePrototype.cs +++ b/Content.Shared/Research/Prototypes/TechDisciplinePrototype.cs @@ -8,7 +8,7 @@ namespace Content.Shared.Research.Prototypes; /// that governs how s are unlocked. /// [Prototype("techDiscipline")] -public sealed class TechDisciplinePrototype : IPrototype +public sealed partial class TechDisciplinePrototype : IPrototype { /// [IdDataField] diff --git a/Content.Shared/Research/Prototypes/TechnologyPrototype.cs b/Content.Shared/Research/Prototypes/TechnologyPrototype.cs index 38000677a13637..93b30772b592f9 100644 --- a/Content.Shared/Research/Prototypes/TechnologyPrototype.cs +++ b/Content.Shared/Research/Prototypes/TechnologyPrototype.cs @@ -7,7 +7,7 @@ namespace Content.Shared.Research.Prototypes; /// This is a prototype for a technology that can be unlocked. /// [Prototype("technology")] -public sealed class TechnologyPrototype : IPrototype +public sealed partial class TechnologyPrototype : IPrototype { /// [IdDataField] diff --git a/Content.Shared/Roles/AntagPrototype.cs b/Content.Shared/Roles/AntagPrototype.cs index 91cb94050f9ca7..c6acb9b75756b9 100644 --- a/Content.Shared/Roles/AntagPrototype.cs +++ b/Content.Shared/Roles/AntagPrototype.cs @@ -8,7 +8,7 @@ namespace Content.Shared.Roles; /// [Prototype("antag")] [Serializable, NetSerializable] -public sealed class AntagPrototype : IPrototype +public sealed partial class AntagPrototype : IPrototype { [ViewVariables] [IdDataField] diff --git a/Content.Shared/Roles/DepartmentPrototype.cs b/Content.Shared/Roles/DepartmentPrototype.cs index 55b20c4db4575b..f91d1a43fd00fe 100644 --- a/Content.Shared/Roles/DepartmentPrototype.cs +++ b/Content.Shared/Roles/DepartmentPrototype.cs @@ -1,11 +1,10 @@ -using System.Linq; using Robust.Shared.Prototypes; using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.List; namespace Content.Shared.Roles; [Prototype("department")] -public sealed class DepartmentPrototype : IPrototype +public sealed partial class DepartmentPrototype : IPrototype { [IdDataField] public string ID { get; } = default!; diff --git a/Content.Shared/Roles/JobPrototype.cs b/Content.Shared/Roles/JobPrototype.cs index b4733d0679ff65..64cd2c66439e9c 100644 --- a/Content.Shared/Roles/JobPrototype.cs +++ b/Content.Shared/Roles/JobPrototype.cs @@ -11,7 +11,7 @@ namespace Content.Shared.Roles /// Describes information for a single job on the station. /// [Prototype("job")] - public sealed class JobPrototype : IPrototype + public sealed partial class JobPrototype : IPrototype { [ViewVariables] [IdDataField] diff --git a/Content.Shared/Roles/StartingGearPrototype.cs b/Content.Shared/Roles/StartingGearPrototype.cs index 98e20fe53429b4..0d4122b6466e20 100644 --- a/Content.Shared/Roles/StartingGearPrototype.cs +++ b/Content.Shared/Roles/StartingGearPrototype.cs @@ -4,7 +4,7 @@ namespace Content.Shared.Roles { [Prototype("startingGear")] - public sealed class StartingGearPrototype : IPrototype + public sealed partial class StartingGearPrototype : IPrototype { [DataField] public Dictionary Equipment = new(); diff --git a/Content.Shared/Salvage/Expeditions/Modifiers/SalvageAirMod.cs b/Content.Shared/Salvage/Expeditions/Modifiers/SalvageAirMod.cs index 717c21947bc3cc..c9f038e38f28fb 100644 --- a/Content.Shared/Salvage/Expeditions/Modifiers/SalvageAirMod.cs +++ b/Content.Shared/Salvage/Expeditions/Modifiers/SalvageAirMod.cs @@ -10,7 +10,7 @@ namespace Content.Shared.Salvage.Expeditions.Modifiers; /// Which one is selected depends on the mission difficulty, different weightedRandoms are picked from. /// [Prototype("salvageAirMod")] -public sealed class SalvageAirMod : IPrototype, IBiomeSpecificMod +public sealed partial class SalvageAirMod : IPrototype, IBiomeSpecificMod { [IdDataField] public string ID { get; private set; } = default!; diff --git a/Content.Shared/Salvage/Expeditions/Modifiers/SalvageBiomeModPrototype.cs b/Content.Shared/Salvage/Expeditions/Modifiers/SalvageBiomeModPrototype.cs index fe806f2cd3c6ee..1d4efbd18d3df2 100644 --- a/Content.Shared/Salvage/Expeditions/Modifiers/SalvageBiomeModPrototype.cs +++ b/Content.Shared/Salvage/Expeditions/Modifiers/SalvageBiomeModPrototype.cs @@ -8,7 +8,7 @@ namespace Content.Shared.Salvage.Expeditions.Modifiers; /// Affects the biome to be used for salvage. /// [Prototype("salvageBiomeMod")] -public sealed class SalvageBiomeModPrototype : IPrototype, ISalvageMod +public sealed partial class SalvageBiomeModPrototype : IPrototype, ISalvageMod { [IdDataField] public string ID { get; } = default!; diff --git a/Content.Shared/Salvage/Expeditions/Modifiers/SalvageDungeonModPrototype.cs b/Content.Shared/Salvage/Expeditions/Modifiers/SalvageDungeonModPrototype.cs index f86f7cfd3b68d8..ee3233c5512760 100644 --- a/Content.Shared/Salvage/Expeditions/Modifiers/SalvageDungeonModPrototype.cs +++ b/Content.Shared/Salvage/Expeditions/Modifiers/SalvageDungeonModPrototype.cs @@ -6,7 +6,7 @@ namespace Content.Shared.Salvage.Expeditions.Modifiers; [Prototype("salvageDungeonMod")] -public sealed class SalvageDungeonModPrototype : IPrototype, IBiomeSpecificMod +public sealed partial class SalvageDungeonModPrototype : IPrototype, IBiomeSpecificMod { [IdDataField] public string ID { get; } = default!; diff --git a/Content.Shared/Salvage/Expeditions/Modifiers/SalvageLightMod.cs b/Content.Shared/Salvage/Expeditions/Modifiers/SalvageLightMod.cs index cfdc6a2b76246c..a7c38b258dd5a2 100644 --- a/Content.Shared/Salvage/Expeditions/Modifiers/SalvageLightMod.cs +++ b/Content.Shared/Salvage/Expeditions/Modifiers/SalvageLightMod.cs @@ -4,7 +4,7 @@ namespace Content.Shared.Salvage.Expeditions.Modifiers; [Prototype("salvageLightMod")] -public sealed class SalvageLightMod : IPrototype, IBiomeSpecificMod +public sealed partial class SalvageLightMod : IPrototype, IBiomeSpecificMod { [IdDataField] public string ID { get; } = default!; diff --git a/Content.Shared/Salvage/Expeditions/Modifiers/SalvageMod.cs b/Content.Shared/Salvage/Expeditions/Modifiers/SalvageMod.cs index 07c07b75c34766..3cc4488684e25c 100644 --- a/Content.Shared/Salvage/Expeditions/Modifiers/SalvageMod.cs +++ b/Content.Shared/Salvage/Expeditions/Modifiers/SalvageMod.cs @@ -6,7 +6,7 @@ namespace Content.Shared.Salvage.Expeditions.Modifiers; /// Generic modifiers with no additional data /// [Prototype("salvageMod")] -public sealed class SalvageMod : IPrototype, ISalvageMod +public sealed partial class SalvageMod : IPrototype, ISalvageMod { [IdDataField] public string ID { get; } = default!; diff --git a/Content.Shared/Salvage/Expeditions/Modifiers/SalvageTemperatureMod.cs b/Content.Shared/Salvage/Expeditions/Modifiers/SalvageTemperatureMod.cs index bc3d5eb85124dc..17e9af038f3d73 100644 --- a/Content.Shared/Salvage/Expeditions/Modifiers/SalvageTemperatureMod.cs +++ b/Content.Shared/Salvage/Expeditions/Modifiers/SalvageTemperatureMod.cs @@ -1,11 +1,10 @@ using Robust.Shared.Prototypes; -using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype; using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.List; namespace Content.Shared.Salvage.Expeditions.Modifiers; [Prototype("salvageTemperatureMod")] -public sealed class SalvageTemperatureMod : IPrototype, IBiomeSpecificMod +public sealed partial class SalvageTemperatureMod : IPrototype, IBiomeSpecificMod { [IdDataField] public string ID { get; } = default!; diff --git a/Content.Shared/Salvage/Expeditions/Modifiers/SalvageWeatherMod.cs b/Content.Shared/Salvage/Expeditions/Modifiers/SalvageWeatherMod.cs index 89fc84c4168f41..1629d02b088c3f 100644 --- a/Content.Shared/Salvage/Expeditions/Modifiers/SalvageWeatherMod.cs +++ b/Content.Shared/Salvage/Expeditions/Modifiers/SalvageWeatherMod.cs @@ -6,7 +6,7 @@ namespace Content.Shared.Salvage.Expeditions.Modifiers; [Prototype("salvageWeatherMod")] -public sealed class SalvageWeatherMod : IPrototype, IBiomeSpecificMod +public sealed partial class SalvageWeatherMod : IPrototype, IBiomeSpecificMod { [IdDataField] public string ID { get; } = default!; diff --git a/Content.Shared/Salvage/Expeditions/SalvageFactionPrototype.cs b/Content.Shared/Salvage/Expeditions/SalvageFactionPrototype.cs index 9de6d5221b9f47..4c594945f0d461 100644 --- a/Content.Shared/Salvage/Expeditions/SalvageFactionPrototype.cs +++ b/Content.Shared/Salvage/Expeditions/SalvageFactionPrototype.cs @@ -1,11 +1,9 @@ -using Content.Shared.Salvage.Expeditions.Modifiers; using Robust.Shared.Prototypes; -using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.Dictionary; namespace Content.Shared.Salvage.Expeditions; [Prototype("salvageFaction")] -public sealed class SalvageFactionPrototype : IPrototype +public sealed partial class SalvageFactionPrototype : IPrototype { [IdDataField] public string ID { get; } = default!; diff --git a/Content.Shared/Speech/SpeechSoundsPrototype.cs b/Content.Shared/Speech/SpeechSoundsPrototype.cs index 4103e4dcb683b4..41cf0f8807e280 100644 --- a/Content.Shared/Speech/SpeechSoundsPrototype.cs +++ b/Content.Shared/Speech/SpeechSoundsPrototype.cs @@ -4,7 +4,7 @@ namespace Content.Shared.Speech { [Prototype("speechSounds")] - public sealed class SpeechSoundsPrototype : IPrototype + public sealed partial class SpeechSoundsPrototype : IPrototype { [ViewVariables] [IdDataField] diff --git a/Content.Shared/Speech/SpeechVerbPrototype.cs b/Content.Shared/Speech/SpeechVerbPrototype.cs index cf468c44bc7a8b..7ed1705f115680 100644 --- a/Content.Shared/Speech/SpeechVerbPrototype.cs +++ b/Content.Shared/Speech/SpeechVerbPrototype.cs @@ -1,5 +1,4 @@ using Robust.Shared.Prototypes; -using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype; namespace Content.Shared.Speech; @@ -8,7 +7,7 @@ namespace Content.Shared.Speech; /// on punctuation or by directly overriding the prototype. /// [Prototype("speechVerb")] -public sealed class SpeechVerbPrototype : IPrototype +public sealed partial class SpeechVerbPrototype : IPrototype { [IdDataField] public string ID { get; } = default!; diff --git a/Content.Shared/SprayPainter/Prototypes/AirlockGroupPrototype.cs b/Content.Shared/SprayPainter/Prototypes/AirlockGroupPrototype.cs index 06cde83f905d86..24c28b8b7a75bf 100644 --- a/Content.Shared/SprayPainter/Prototypes/AirlockGroupPrototype.cs +++ b/Content.Shared/SprayPainter/Prototypes/AirlockGroupPrototype.cs @@ -3,7 +3,7 @@ namespace Content.Shared.SprayPainter.Prototypes; [Prototype("AirlockGroup")] -public sealed class AirlockGroupPrototype : IPrototype +public sealed partial class AirlockGroupPrototype : IPrototype { [IdDataField] public string ID { get; private set; } = default!; diff --git a/Content.Shared/Spreader/EdgeSpreaderPrototype.cs b/Content.Shared/Spreader/EdgeSpreaderPrototype.cs index a1e31da3caa672..fee8f93a6d3c46 100644 --- a/Content.Shared/Spreader/EdgeSpreaderPrototype.cs +++ b/Content.Shared/Spreader/EdgeSpreaderPrototype.cs @@ -6,7 +6,7 @@ namespace Content.Shared.Spreader; /// Adds this node group to for tick updates. /// [Prototype("edgeSpreader")] -public sealed class EdgeSpreaderPrototype : IPrototype +public sealed partial class EdgeSpreaderPrototype : IPrototype { [IdDataField] public string ID { get; } = string.Empty; [DataField(required:true)] public int UpdatesPerSecond; diff --git a/Content.Shared/Stacks/StackPrototype.cs b/Content.Shared/Stacks/StackPrototype.cs index 5d60364e209845..28b7da8f2ae88c 100644 --- a/Content.Shared/Stacks/StackPrototype.cs +++ b/Content.Shared/Stacks/StackPrototype.cs @@ -5,7 +5,7 @@ namespace Content.Shared.Stacks; [Prototype("stack")] -public sealed class StackPrototype : IPrototype +public sealed partial class StackPrototype : IPrototype { [ViewVariables] [IdDataField] diff --git a/Content.Shared/StatusEffect/StatusEffectPrototype.cs b/Content.Shared/StatusEffect/StatusEffectPrototype.cs index 9e13f69d20e110..ae9e26879ebb99 100644 --- a/Content.Shared/StatusEffect/StatusEffectPrototype.cs +++ b/Content.Shared/StatusEffect/StatusEffectPrototype.cs @@ -4,7 +4,7 @@ namespace Content.Shared.StatusEffect { [Prototype("statusEffect")] - public sealed class StatusEffectPrototype : IPrototype + public sealed partial class StatusEffectPrototype : IPrototype { [IdDataField] public string ID { get; private set; } = default!; diff --git a/Content.Shared/Tag/TagPrototype.cs b/Content.Shared/Tag/TagPrototype.cs index b227cf82b58562..2a06e22cf907e5 100644 --- a/Content.Shared/Tag/TagPrototype.cs +++ b/Content.Shared/Tag/TagPrototype.cs @@ -8,7 +8,7 @@ namespace Content.Shared.Tag /// gets saved in TagComponent. /// [Prototype("Tag")] - public sealed class TagPrototype : IPrototype + public sealed partial class TagPrototype : IPrototype { [ViewVariables] [IdDataField] diff --git a/Content.Shared/Tools/ToolQualityPrototype.cs b/Content.Shared/Tools/ToolQualityPrototype.cs index 727a31738c3bfc..420644683e0c08 100644 --- a/Content.Shared/Tools/ToolQualityPrototype.cs +++ b/Content.Shared/Tools/ToolQualityPrototype.cs @@ -5,7 +5,7 @@ namespace Content.Shared.Tools { [Prototype("tool")] - public sealed class ToolQualityPrototype : IPrototype + public sealed partial class ToolQualityPrototype : IPrototype { [IdDataField] public string ID { get; private set; } = default!; diff --git a/Content.Shared/Traits/TraitPrototype.cs b/Content.Shared/Traits/TraitPrototype.cs index f7ae6f9c71f2ce..34feb8da22c371 100644 --- a/Content.Shared/Traits/TraitPrototype.cs +++ b/Content.Shared/Traits/TraitPrototype.cs @@ -1,7 +1,8 @@ using Content.Shared.Whitelist; using Robust.Shared.Prototypes; using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype; -using static Robust.Shared.Prototypes.EntityPrototype; // don't worry about it + +// don't worry about it namespace Content.Shared.Traits { @@ -9,7 +10,7 @@ namespace Content.Shared.Traits /// Describes a trait. /// [Prototype("trait")] - public sealed class TraitPrototype : IPrototype + public sealed partial class TraitPrototype : IPrototype { [ViewVariables] [IdDataField] diff --git a/Content.Shared/VendingMachines/VendingMachineInventoryPrototype.cs b/Content.Shared/VendingMachines/VendingMachineInventoryPrototype.cs index 4869eae6dee57e..b8f1e2b13f894b 100644 --- a/Content.Shared/VendingMachines/VendingMachineInventoryPrototype.cs +++ b/Content.Shared/VendingMachines/VendingMachineInventoryPrototype.cs @@ -5,7 +5,7 @@ namespace Content.Shared.VendingMachines { [Serializable, NetSerializable, Prototype("vendingMachineInventory")] - public sealed class VendingMachineInventoryPrototype : IPrototype + public sealed partial class VendingMachineInventoryPrototype : IPrototype { [ViewVariables] [IdDataField] diff --git a/Content.Shared/Weapons/Ranged/HitscanPrototype.cs b/Content.Shared/Weapons/Ranged/HitscanPrototype.cs index 121249752d2031..a5063e3ab5b656 100644 --- a/Content.Shared/Weapons/Ranged/HitscanPrototype.cs +++ b/Content.Shared/Weapons/Ranged/HitscanPrototype.cs @@ -8,7 +8,7 @@ namespace Content.Shared.Weapons.Ranged; [Prototype("hitscan")] -public sealed class HitscanPrototype : IPrototype, IShootable +public sealed partial class HitscanPrototype : IPrototype, IShootable { [ViewVariables] [IdDataField] diff --git a/Content.Shared/Weather/WeatherPrototype.cs b/Content.Shared/Weather/WeatherPrototype.cs index e782d97e1566c6..3803c37d4ce886 100644 --- a/Content.Shared/Weather/WeatherPrototype.cs +++ b/Content.Shared/Weather/WeatherPrototype.cs @@ -5,7 +5,7 @@ namespace Content.Shared.Weather; [Prototype("weather")] -public sealed class WeatherPrototype : IPrototype +public sealed partial class WeatherPrototype : IPrototype { [IdDataField] public string ID { get; } = default!;