]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix prototypes so they pass analyzer checks (#35435)
authorTayrtahn <tayrtahn@gmail.com>
Mon, 24 Feb 2025 04:21:59 +0000 (23:21 -0500)
committerGitHub <noreply@github.com>
Mon, 24 Feb 2025 04:21:59 +0000 (15:21 +1100)
84 files changed:
Content.Server/AlertLevel/AlertLevelPrototype.cs
Content.Server/Antag/Components/AntagRandomObjectivesComponent.cs
Content.Server/Botany/SeedPrototype.cs
Content.Server/Connection/Whitelist/WhitelistPrototype.cs
Content.Server/Ghost/Roles/Raffles/GhostRoleRaffleDeciderPrototype.cs
Content.Server/NPC/HTN/HTNCompoundPrototype.cs
Content.Server/NPC/Queries/Curves/UtilityCurvePresetPrototype.cs
Content.Server/Shuttles/Components/GridSpawnComponent.cs
Content.Server/Wires/WireLayout.cs
Content.Server/Worldgen/Prototypes/BiomePrototype.cs
Content.Server/Worldgen/Prototypes/NoiseChannelPrototype.cs
Content.Shared/Alert/AlertCategoryPrototype.cs
Content.Shared/Audio/AmbientMusicPrototype.cs
Content.Shared/Audio/Jukebox/JukeboxPrototype.cs
Content.Shared/Body/Prototypes/BodyPrototype.cs
Content.Shared/Cargo/Prototypes/CargoProductPrototype.cs
Content.Shared/CartridgeLoader/Cartridges/LogProbeUiState.cs
Content.Shared/CartridgeLoader/Cartridges/NetProbeUiState.cs
Content.Shared/Chat/Prototypes/EmoteSoundsPrototype.cs
Content.Shared/Chemistry/Dispenser/ReagentDispenserInventoryPrototype.cs
Content.Shared/Chemistry/Reaction/MixingCategoryPrototype.cs
Content.Shared/Contraband/ContrabandSeverityPrototype.cs
Content.Shared/CriminalRecords/CriminalRecord.cs
Content.Shared/Damage/Prototypes/DamageGroupPrototype.cs
Content.Shared/Decals/ColorPalettePrototype.cs
Content.Shared/Decals/DecalGridComponent.cs
Content.Shared/Decals/DecalPrototype.cs
Content.Shared/EntityTable/EntityTablePrototype.cs
Content.Shared/Ghost/Roles/Raffles/GhostRoleRaffleSettingsPrototype.cs
Content.Shared/GridPreloader/Prototypes/PreloadedGridPrototype.cs
Content.Shared/Humanoid/Markings/MarkingPoints.cs
Content.Shared/Humanoid/Prototypes/RandomHumanoidSettingsPrototype.cs
Content.Shared/Inventory/InventoryTemplatePrototype.cs
Content.Shared/Item/ItemSizePrototype.cs
Content.Shared/Lathe/Prototypes/LatheCategoryPrototype.cs
Content.Shared/Lathe/Prototypes/LatheRecipePackPrototype.cs
Content.Shared/Maps/ContentTileDefinition.cs
Content.Shared/Materials/MaterialPrototype.cs
Content.Shared/Mind/RoleTypePrototype.cs
Content.Shared/Ninja/Components/NinjaGlovesComponent.cs
Content.Shared/Nutrition/Components/FoodSequenceStartPointComponent.cs
Content.Shared/Parallax/Biomes/BiomeTemplatePrototype.cs
Content.Shared/Parallax/Biomes/Markers/BiomeMarkerLayerPrototype.cs
Content.Shared/Players/PlayTimeTracking/PlayTimeTrackerPrototype.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/Procedural/DungeonConfig.cs
Content.Shared/Procedural/DungeonData.cs
Content.Shared/Procedural/DungeonGenerators/NoiseDunGen.cs
Content.Shared/Procedural/DungeonGenerators/ReplaceTileDunGen.cs
Content.Shared/Procedural/DungeonPresetPrototype.cs
Content.Shared/Procedural/DungeonRoomPrototype.cs
Content.Shared/Procedural/Loot/SalvageLootPrototype.cs
Content.Shared/Procedural/SalvageDifficultyPrototype.cs
Content.Shared/Radio/RadioChannelPrototype.cs
Content.Shared/Random/RandomPlantMutationListPrototype.cs
Content.Shared/Random/Rules/RulesSystem.cs
Content.Shared/Random/WeightedRandomEntityPrototype.cs
Content.Shared/Random/WeightedRandomFillSolutionPrototype.cs
Content.Shared/Random/WeightedRandomOrePrototype.cs
Content.Shared/Random/WeightedRandomPrototype.cs
Content.Shared/Random/WeightedRandomSpeciesPrototype.cs
Content.Shared/Research/Prototypes/LatheRecipePrototype.cs
Content.Shared/Robotics/RoboticsConsoleUi.cs
Content.Shared/Roles/DepartmentPrototype.cs
Content.Shared/Roles/StartingGearPrototype.cs
Content.Shared/Salvage/Expeditions/Modifiers/SalvageBiomeModPrototype.cs
Content.Shared/Salvage/Expeditions/Modifiers/SalvageDungeonModPrototype.cs
Content.Shared/Salvage/Expeditions/Modifiers/SalvageLightMod.cs
Content.Shared/Salvage/Expeditions/Modifiers/SalvageMod.cs
Content.Shared/Salvage/Expeditions/Modifiers/SalvageTemperatureMod.cs
Content.Shared/Salvage/Expeditions/Modifiers/SalvageWeatherMod.cs
Content.Shared/Salvage/Expeditions/SalvageFactionPrototype.cs
Content.Shared/Salvage/SalvageMapPrototype.cs
Content.Shared/Silicons/Borgs/BorgTypePrototype.cs
Content.Shared/Speech/SpeechVerbPrototype.cs
Content.Shared/Spreader/EdgeSpreaderPrototype.cs
Content.Shared/StatusIcon/StatusIconPrototype.cs
Content.Shared/Storage/EntitySpawnEntry.cs
Content.Shared/StoryGen/Prototypes/StoryTemplatePrototype.cs
Content.Shared/Tag/TagPrototype.cs
Content.Shared/Weather/WeatherPrototype.cs

index c6740c16cc5bb150802c4004c30f4058ace1bf62..ccf6ff912c9f9a11ba9688e18f65994b90e771ef 100644 (file)
@@ -6,7 +6,7 @@ namespace Content.Server.AlertLevel;
 [Prototype("alertLevels")]
 public sealed partial class AlertLevelPrototype : IPrototype
 {
-    [IdDataField] public string ID { get; } = default!;
+    [IdDataField] public string ID { get; private set; } = default!;
 
     /// <summary>
     /// Dictionary of alert levels. Keyed by string - the string key is the most important
index 9a551acc49903409bfe53cbe67071db139f6d505..4b5e0679f540b78248e0b194611679bbf09bfc9f 100644 (file)
@@ -28,7 +28,7 @@ public sealed partial class AntagRandomObjectivesComponent : Component
 /// Difficulty is checked over all sets, but each set has its own probability and pick count.
 /// </summary>
 [DataRecord]
-public record struct AntagObjectiveSet()
+public partial record struct AntagObjectiveSet()
 {
     /// <summary>
     /// The grouping used by the objective system to pick random objectives.
index 5608338f22e8d4e4b69821f5af6005cb457e8346..1eb22241cdcab009030e979d2cd404e659fb4f68 100644 (file)
@@ -14,7 +14,7 @@ namespace Content.Server.Botany;
 [Prototype("seed")]
 public sealed partial class SeedPrototype : SeedData, IPrototype
 {
-    [IdDataField] public string ID { get; private init; } = default!;
+    [IdDataField] public string ID { get; private set; } = default!;
 }
 
 public enum HarvestType : byte
index 2b8b9babbc09328bcfb53aa30ce1568cb2ddc805..eccf364a2880761acd75a6a32c0400527999c7fc 100644 (file)
@@ -18,25 +18,25 @@ namespace Content.Server.Connection.Whitelist;
 /// If the condition doesn't match, the next condition is checked.
 /// </summary>
 [Prototype("playerConnectionWhitelist")]
-public sealed class PlayerConnectionWhitelistPrototype : IPrototype
+public sealed partial class PlayerConnectionWhitelistPrototype : IPrototype
 {
     [IdDataField]
-    public string ID { get; } = default!;
+    public string ID { get; private set; } = default!;
 
     /// <summary>
     /// Minimum number of players required for this whitelist to be active.
     /// If there are less players than this, the whitelist will be ignored and the next one in the list will be used.
     /// </summary>
     [DataField]
-    public int MinimumPlayers { get; } = 0;
+    public int MinimumPlayers = 0;
 
     /// <summary>
     /// Maximum number of players allowed for this whitelist to be active.
     /// If there are more players than this, the whitelist will be ignored and the next one in the list will be used.
     /// </summary>
     [DataField]
-    public int MaximumPlayers { get; } = int.MaxValue;
+    public int MaximumPlayers = int.MaxValue;
 
     [DataField]
-    public WhitelistCondition[] Conditions { get; } = default!;
+    public WhitelistCondition[] Conditions = default!;
 }
index b2ebf6ca5fcebf84229e33e2ad975c8c408a5b61..e7b0c8326a9341fada8d9e9801ca8c4fa962d4ad 100644 (file)
@@ -6,7 +6,7 @@ namespace Content.Server.Ghost.Roles.Raffles;
 /// Allows getting a <see cref="IGhostRoleRaffleDecider"/> as prototype.
 /// </summary>
 [Prototype("ghostRoleRaffleDecider")]
-public sealed class GhostRoleRaffleDeciderPrototype : IPrototype
+public sealed partial class GhostRoleRaffleDeciderPrototype : IPrototype
 {
     /// <inheritdoc />
     [IdDataField]
index 69f84419736f0668df028a75a2c06feba3c340ba..b99ea098267edb8a1d7e8221f4f1b4cc1b791a61 100644 (file)
@@ -8,7 +8,7 @@ namespace Content.Server.NPC.HTN;
 [Prototype("htnCompound")]
 public sealed partial class HTNCompoundPrototype : IPrototype
 {
-    [IdDataField] public string ID { get; } = string.Empty;
+    [IdDataField] public string ID { get; private set; } = string.Empty;
 
     [DataField("branches", required: true)]
     public List<HTNBranch> Branches = new();
index 7a6e9152c6c795622f06908b686605f441f582ce..3116dede9353c50218c374379ca01f794a12a603 100644 (file)
@@ -5,7 +5,7 @@ namespace Content.Server.NPC.Queries.Curves;
 [Prototype("utilityCurvePreset")]
 public sealed partial class UtilityCurvePresetPrototype : IPrototype
 {
-    [IdDataField] public string ID { get; } = string.Empty;
+    [IdDataField] public string ID { get; private set; } = string.Empty;
 
     [DataField("curve", required: true)] public IUtilityCurve Curve = default!;
 }
index 18959dd7f376d1a8b68c24d7c21aed37f8472b0c..c74613f5ebe1f9a0ccac200ed8ccab5e265c43a3 100644 (file)
@@ -62,7 +62,7 @@ public interface IGridSpawnGroup
 }
 
 [DataRecord]
-public sealed class DungeonSpawnGroup : IGridSpawnGroup
+public sealed partial class DungeonSpawnGroup : IGridSpawnGroup
 {
     /// <summary>
     /// Prototypes we can choose from to spawn.
@@ -97,7 +97,7 @@ public sealed class DungeonSpawnGroup : IGridSpawnGroup
 }
 
 [DataRecord]
-public sealed class GridSpawnGroup : IGridSpawnGroup
+public sealed partial class GridSpawnGroup : IGridSpawnGroup
 {
     public List<ResPath> Paths = new();
 
index 621992c915a0d9b04bc391ace490f12cf5e367ca..7ca4faaeca08b34d8329e261a9c34aed37140e40 100644 (file)
@@ -20,7 +20,7 @@ public sealed partial class WireLayoutPrototype : IPrototype, IInheritingPrototy
     public string[]? Parents { get; private set; }
 
     [AbstractDataField]
-    public bool Abstract { get; }
+    public bool Abstract { get; private set; }
 
     /// <summary>
     ///     How many wires in this layout will do
index 1cecf87a5e0e63a1565c511c4a8e18dcaf60220f..1c3633fb5ffd5518595b68571d5c1c6f59739f9e 100644 (file)
@@ -14,12 +14,12 @@ public sealed partial class BiomePrototype : IPrototype, IInheritingPrototype
 {
     /// <inheritdoc />
     [ParentDataField(typeof(AbstractPrototypeIdArraySerializer<EntityPrototype>))]
-    public string[]? Parents { get; }
+    public string[]? Parents { get; private set; }
 
     /// <inheritdoc />
     [NeverPushInheritance]
     [AbstractDataField]
-    public bool Abstract { get; }
+    public bool Abstract { get; private set; }
 
     /// <inheritdoc />
     [IdDataField]
@@ -42,7 +42,7 @@ public sealed partial class BiomePrototype : IPrototype, IInheritingPrototype
     /// </summary>
     [DataField("chunkComponents")]
     [AlwaysPushInheritance]
-    public ComponentRegistry ChunkComponents { get; } = new();
+    public ComponentRegistry ChunkComponents = new();
 
     //TODO: Get someone to make this a method on componentregistry that does it Correctly.
     /// <summary>
index 02ca383d300ef471a1f3ed291d179dbec50b71fa..deb39de99e0d64b2c7f9d289a543860482cc2732 100644 (file)
@@ -84,12 +84,12 @@ public sealed partial class NoiseChannelPrototype : NoiseChannelConfig, IPrototy
 {
     /// <inheritdoc />
     [ParentDataField(typeof(AbstractPrototypeIdArraySerializer<EntityPrototype>))]
-    public string[]? Parents { get; }
+    public string[]? Parents { get; private set; }
 
     /// <inheritdoc />
     [NeverPushInheritance]
     [AbstractDataField]
-    public bool Abstract { get; }
+    public bool Abstract { get; private set; }
 
     /// <inheritdoc />
     [IdDataField]
index 7c7d04752149c4025f22c44e783fd89437378aa0..6685151142a134c6fd73636831bbef0816960b28 100644 (file)
@@ -10,5 +10,5 @@ public sealed partial class AlertCategoryPrototype : IPrototype
 {
     /// <inheritdoc/>
     [IdDataField]
-    public string ID { get; } = default!;
+    public string ID { get; private set; } = default!;
 }
index 219c41527d1f13a3891c2dd9af1d3c8f39b49b0b..e98f324a067c1d2eb2209c349dab9a542ad034ef 100644 (file)
@@ -12,7 +12,7 @@ namespace Content.Shared.Audio;
 [Prototype("ambientMusic")]
 public sealed partial class AmbientMusicPrototype : IPrototype
 {
-    [IdDataField] public string ID { get; } = string.Empty;
+    [IdDataField] public string ID { get; private set; } = string.Empty;
 
     /// <summary>
     /// Traditionally you'd prioritise most rules to least as priority but in our case we'll just be explicit.
index ad690ef497374c0680aded6d861751b451b2c1eb..df90d42428744593ec5127fb6ce4fdd3320fd542 100644 (file)
@@ -10,7 +10,7 @@ namespace Content.Shared.Audio.Jukebox;
 public sealed partial class JukeboxPrototype : IPrototype
 {
     [IdDataField]
-    public string ID { get; } = string.Empty;
+    public string ID { get; private set; } = string.Empty;
 
     /// <summary>
     /// User friendly name to use in UI.
index 123638f099b57ba0d5a141736ba73d7436198e54..646acaaf6bdd27c3e2862a411679c5ee0e407d9f 100644 (file)
@@ -5,7 +5,7 @@ namespace Content.Shared.Body.Prototypes;
 [Prototype("body")]
 public sealed partial class BodyPrototype : IPrototype
 {
-    [IdDataField] public string ID { get; } = default!;
+    [IdDataField] public string ID { get; private set; } = default!;
 
     [DataField("name")]
     public string Name { get; private set; } = "";
@@ -26,4 +26,4 @@ public sealed partial class BodyPrototype : IPrototype
 }
 
 [DataRecord]
-public sealed record BodyPrototypeSlot(EntProtoId? Part, HashSet<string> Connections, Dictionary<string, string> Organs);
+public sealed partial record BodyPrototypeSlot(EntProtoId? Part, HashSet<string> Connections, Dictionary<string, string> Organs);
index af2f6613d63bbccdd32cee54a67a740940056d1a..5a18b6beccff898c7961544bb666c8d198dfe9f0 100644 (file)
@@ -10,12 +10,12 @@ namespace Content.Shared.Cargo.Prototypes
     {
         /// <inheritdoc />
         [ParentDataField(typeof(AbstractPrototypeIdArraySerializer<CargoProductPrototype>))]
-        public string[]? Parents { get; }
+        public string[]? Parents { get; private set; }
 
         /// <inheritdoc />
         [NeverPushInheritance]
         [AbstractDataField]
-        public bool Abstract { get; }
+        public bool Abstract { get; private set; }
 
         [DataField("name")] private string _name = string.Empty;
 
index 9dc507b7e513e1ec43eaece77bb894d20f29a922..fa3c42cf4d369527c5bebaa88bbfcaac5ec8242d 100644 (file)
@@ -17,7 +17,7 @@ public sealed class LogProbeUiState : BoundUserInterfaceState
 }
 
 [Serializable, NetSerializable, DataRecord]
-public sealed class PulledAccessLog
+public sealed partial class PulledAccessLog
 {
     public readonly TimeSpan Time;
     public readonly string Accessor;
index cc2cc66b85556c0cc081eafdf51b0d61d7e62364..04594a21393acf9452de72d4e3c016784712a133 100644 (file)
@@ -17,7 +17,7 @@ public sealed class NetProbeUiState : BoundUserInterfaceState
 }
 
 [Serializable, NetSerializable, DataRecord]
-public sealed class ProbedNetworkDevice
+public sealed partial class ProbedNetworkDevice
 {
     public readonly string Name;
     public readonly string Address;
index 2b7064c1e906952e27c89d09e91b779fcff7f8a7..688d46112e02ba16f4b60ef435fbef748ef5e176 100644 (file)
@@ -10,7 +10,7 @@ namespace Content.Shared.Chat.Prototypes;
 ///     Different entities may use different sounds collections.
 /// </summary>
 [Prototype("emoteSounds"), Serializable, NetSerializable]
-public sealed class EmoteSoundsPrototype : IPrototype
+public sealed partial class EmoteSoundsPrototype : IPrototype
 {
     [IdDataField]
     public string ID { get; private set; } = default!;
index 5cdc8aed80f6503819db25377f7d3c31351396ce..13a751b88e688df0f42ee4ef475df9a16c698121 100644 (file)
@@ -18,6 +18,6 @@ namespace Content.Shared.Chemistry.Dispenser
         public List<string> Inventory = new();
 
         [ViewVariables, IdDataField]
-        public string ID { get; } = default!;
+        public string ID { get; private set; } = default!;
     }
 }
index 2456fbf7335403070945d6a32609a50e9f4bd99a..f5dcdf44abc311deead8652b48f4a9720afeac66 100644 (file)
@@ -11,7 +11,7 @@ public sealed partial class MixingCategoryPrototype : IPrototype
 {
     /// <inheritdoc/>
     [IdDataField]
-    public string ID { get; } = default!;
+    public string ID { get; private set; } = default!;
 
     /// <summary>
     /// A locale string used in the guidebook to describe this mixing category.
index 094275a6fd39890aa12d74ab0ed5fe931debdcc3..2be847965fb5750dccbdb423597d6d1e1b74eccf 100644 (file)
@@ -10,7 +10,7 @@ public sealed partial class ContrabandSeverityPrototype : IPrototype
 {
     /// <inheritdoc/>
     [IdDataField]
-    public string ID { get; } = default!;
+    public string ID { get; private set; } = default!;
 
     /// <summary>
     /// Text shown for this severity level when the contraband is examined.
index 5a023a9188c63bc0182efcbcbde2ad3e52b095e6..f69264fcd8fc4e12128d378ffd76cc526a7fbdb6 100644 (file)
@@ -8,7 +8,7 @@ namespace Content.Shared.CriminalRecords;
 /// Can be viewed and edited in a criminal records console by security.
 /// </summary>
 [Serializable, NetSerializable, DataRecord]
-public sealed record CriminalRecord
+public sealed partial record CriminalRecord
 {
     /// <summary>
     /// Status of the person (None, Wanted, Detained).
index bb5aea3a38cbc4c3ab7fd93225348dbd1f83e0ef..3bd840e9ce7b3fc28a0c065a3934f87e9985a3e0 100644 (file)
@@ -15,7 +15,7 @@ namespace Content.Shared.Damage.Prototypes
     [Serializable, NetSerializable]
     public sealed partial class DamageGroupPrototype : IPrototype
     {
-        [IdDataField] public string ID { get; } = default!;
+        [IdDataField] public string ID { get; private set; } = default!;
 
         [DataField(required: true)]
         private LocId Name { get; set; }
index cef776d0c99536f7ef21a6354b0541c7b462ef6c..9c31201950da968a0aa7d5f5d40c74c0705b9d2a 100644 (file)
@@ -5,7 +5,7 @@ namespace Content.Shared.Decals;
 [Prototype("palette")]
 public sealed partial class ColorPalettePrototype : IPrototype
 {
-    [IdDataField] public string ID { get; } = null!;
+    [IdDataField] public string ID { get; private set; } = null!;
     [DataField("name")] public string Name { get; private set; } = null!;
     [DataField("colors")] public Dictionary<string, Color> Colors { get; private set; } = null!;
 }
index 67a9c037696d7ea1da4971951f18e80882582a25..6a5bae770746d88dbd24c17796fa7b25a3422be8 100644 (file)
@@ -55,7 +55,7 @@ namespace Content.Shared.Decals
         }
 
         [DataRecord, Serializable, NetSerializable]
-        public record DecalGridChunkCollection(Dictionary<Vector2i, DecalChunk> ChunkCollection)
+        public partial record DecalGridChunkCollection(Dictionary<Vector2i, DecalChunk> ChunkCollection)
         {
             public uint NextDecalId;
         }
index 543537f1bf7937e00b2b11327d1b95bc56e55c4d..b2fcb28e71681fedb8fe0df3383c5aa9888da4e2 100644 (file)
@@ -7,7 +7,7 @@ namespace Content.Shared.Decals
     [Prototype("decal")]
     public sealed partial class DecalPrototype : IPrototype, IInheritingPrototype
     {
-        [IdDataField] public string ID { get; } = null!;
+        [IdDataField] public string ID { get; private set; } = null!;
         [DataField("sprite")] public SpriteSpecifier Sprite { get; private set; } = SpriteSpecifier.Invalid;
         [DataField("tags")] public List<string> Tags = new();
         [DataField("showMenu")] public bool ShowMenu = true;
@@ -36,11 +36,11 @@ namespace Content.Shared.Decals
         public bool DefaultSnap = true;
 
         [ParentDataField(typeof(AbstractPrototypeIdArraySerializer<DecalPrototype>))]
-        public string[]? Parents { get; }
+        public string[]? Parents { get; private set; }
 
         [NeverPushInheritance]
         [AbstractDataField]
-        public bool Abstract { get; }
+        public bool Abstract { get; private set; }
 
     }
 }
index 63cebe9aeb7b0a1164e9de6d26c8a98f634fa81f..19f4a2a9e188c9bae52579b93d1d2f7dfc221537 100644 (file)
@@ -11,7 +11,7 @@ public sealed partial class EntityTablePrototype : IPrototype
 {
     /// <inheritdoc/>
     [IdDataField]
-    public string ID { get; } = default!;
+    public string ID { get; private set; } = default!;
 
     [DataField(required: true)]
     public EntityTableSelector Table = default!;
index f1447a0e0960aa46e08bd7b0c44365c7f44c715e..6565fcd2125899be233a152e4de0c7c63d9cc635 100644 (file)
@@ -7,7 +7,7 @@ namespace Content.Shared.Ghost.Roles.Raffles;
 /// Allows specifying the settings for a ghost role raffle as a prototype.
 /// </summary>
 [Prototype("ghostRoleRaffleSettings")]
-public sealed class GhostRoleRaffleSettingsPrototype : IPrototype
+public sealed partial class GhostRoleRaffleSettingsPrototype : IPrototype
 {
     /// <inheritdoc />
     [IdDataField]
index 89da9dfb8f7c6471031a6105e2a274df2e2b94e6..af42672897404d721fee9c56977cf1181213225a 100644 (file)
@@ -11,7 +11,7 @@ namespace Content.Shared.GridPreloader.Prototypes;
 [Prototype("preloadedGrid")]
 public sealed partial class PreloadedGridPrototype : IPrototype
 {
-    [IdDataField] public string ID { get; } = string.Empty;
+    [IdDataField] public string ID { get; private set; } = string.Empty;
 
     [DataField(required: true)]
     public ResPath Path;
index c9784728e79c3f9b6210d38b646e75f613fd10c7..c83eb17fdad005b4a33d97db6a4c3a15f134afed 100644 (file)
@@ -37,7 +37,7 @@ public sealed partial class MarkingPoints
 [Prototype("markingPoints")]
 public sealed partial class MarkingPointsPrototype : IPrototype
 {
-    [IdDataField] public string ID { get; } = default!;
+    [IdDataField] public string ID { get; private set; } = default!;
 
     /// <summary>
     ///     If the user of this marking point set is only allowed to
index a97c3134bedc932d824662ebefed70765aa5ad51..add8b6389ea95416bd888651a021a35a3b335a9a 100644 (file)
@@ -9,14 +9,14 @@ namespace Content.Shared.Humanoid.Prototypes;
 [Prototype("randomHumanoidSettings")]
 public sealed partial class RandomHumanoidSettingsPrototype : IPrototype, IInheritingPrototype
 {
-    [IdDataField] public string ID { get; } = default!;
+    [IdDataField] public string ID { get; private set; } = default!;
 
     [ParentDataField(typeof(PrototypeIdArraySerializer<RandomHumanoidSettingsPrototype>))]
-    public string[]? Parents { get; }
+    public string[]? Parents { get; private set; }
 
     [AbstractDataField]
     [NeverPushInheritance]
-    public bool Abstract { get; }
+    public bool Abstract { get; private set; }
 
     /// <summary>
     ///     Whether the humanoid's name should take from the randomized profile or not.
index 91accec8c93ee4c68c51ea39ba112485b368004f..aafb3139d2a048bc50dfe7949da9a7b7be05004c 100644 (file)
@@ -8,7 +8,7 @@ namespace Content.Shared.Inventory;
 [Prototype("inventoryTemplate")]
 public sealed partial class InventoryTemplatePrototype : IPrototype
 {
-    [IdDataField] public string ID { get; } = string.Empty;
+    [IdDataField] public string ID { get; private set; } = string.Empty;
 
     [DataField("slots")] public SlotDefinition[] Slots { get; private set; } = Array.Empty<SlotDefinition>();
 }
index 5b3d4d8f919c41ac95ab2e020d617d9359dfd292..2a0ccd29d27dd30fff180472b8851f72d874dc2e 100644 (file)
@@ -10,19 +10,19 @@ public sealed partial class ItemSizePrototype : IPrototype, IComparable<ItemSize
 {
     /// <inheritdoc/>
     [IdDataField]
-    public string ID { get; } = default!;
+    public string ID { get; private set; } = default!;
 
     /// <summary>
     /// The amount of space in a bag an item of this size takes.
     /// </summary>
     [DataField]
-    public readonly int Weight = 1;
+    public int Weight = 1;
 
     /// <summary>
     /// A player-facing name used to describe this size.
     /// </summary>
     [DataField]
-    public readonly LocId Name;
+    public LocId Name;
 
     /// <summary>
     /// The default inventory shape associated with this item size.
index 9af8e77352c6e83495282934fd0fb5e13fcba5f4..390fac926f336a79e05784bbacded2b9d788e78e 100644 (file)
@@ -11,7 +11,7 @@ public sealed partial class LatheCategoryPrototype : IPrototype
 {
     /// <inheritdoc/>
     [IdDataField]
-    public string ID { get; } = default!;
+    public string ID { get; private set; } = default!;
 
     /// <summary>
     /// A localized string used in the UI
index ada880f459b987b43472ba13f6f0c41da415a819..76bc8da910faa825cf034cbcae1894396c6e9f89 100644 (file)
@@ -16,11 +16,11 @@ public sealed partial class LatheRecipePackPrototype : IPrototype, IInheritingPr
     public string ID { get; private set; } = default!;
 
     [ParentDataField(typeof(AbstractPrototypeIdArraySerializer<LatheRecipePackPrototype>))]
-    public string[]? Parents { get; }
+    public string[]? Parents { get; private set; }
 
     [NeverPushInheritance]
     [AbstractDataField]
-    public bool Abstract { get; }
+    public bool Abstract { get; private set; }
 
     /// <summary>
     /// The lathe recipes contained by this pack.
index a9ad016b8711900a039a65763ef16f55868fb13d..de5d684c2555da712788689cba20a791a28ffeaa 100644 (file)
@@ -27,7 +27,7 @@ namespace Content.Shared.Maps
         [AbstractDataFieldAttribute]
         public bool Abstract { get; private set; }
 
-        [IdDataField] public string ID { get; } = string.Empty;
+        [IdDataField] public string ID { get; private set; } = string.Empty;
 
         public ushort TileId { get; private set; }
 
index 5adf13213ebe280dbf7332706f0905b2a134361c..d1ef82539beed097bbbd98aa1c3615c431d1091f 100644 (file)
@@ -13,11 +13,11 @@ namespace Content.Shared.Materials
     {
         [ViewVariables]
         [ParentDataField(typeof(AbstractPrototypeIdArraySerializer<MaterialPrototype>))]
-        public string[]? Parents { get; }
+        public string[]? Parents { get; private set; }
 
         [ViewVariables]
         [AbstractDataField]
-        public bool Abstract { get; } = false;
+        public bool Abstract { get; private set; } = false;
 
         [ViewVariables]
         [IdDataField]
index e473b671e20f35587a652f29aa2ce6d270dd3f78..cad04ce03e3acb7608bca69a9c07464110726bca 100644 (file)
@@ -6,7 +6,7 @@ namespace Content.Shared.Mind;
 ///     The core properties of Role Types
 /// </summary>
 [Prototype, Serializable]
-public sealed class RoleTypePrototype : IPrototype
+public sealed partial class RoleTypePrototype : IPrototype
 {
     [IdDataField]
     public string ID { get; private set; } = default!;
index 3b9e2a5e35668160edf8899e2cd7d7330867d910..c9de2499cdc0eb865b1afec6cc736dd05101fcaf 100644 (file)
@@ -33,7 +33,7 @@ public sealed partial class NinjaGlovesComponent : Component
 /// An ability that adds components to the user when the gloves are enabled.
 /// </summary>
 [DataRecord]
-public record struct NinjaGloveAbility()
+public partial record struct NinjaGloveAbility()
 {
     /// <summary>
     /// If not null, checks if an objective with this prototype has been completed.
index c87110287adb5a1332361971411e7adfd4d3d676..8d1e2f89fe2c20076588db23d083fab92762542d 100644 (file)
@@ -124,7 +124,7 @@ public sealed partial class FoodSequenceStartPointComponent : Component
 /// Stores all the necessary information for rendering the FoodSequence element
 /// </summary>
 [DataRecord, Serializable, NetSerializable]
-public record struct FoodSequenceVisualLayer
+public partial record struct FoodSequenceVisualLayer
 {
     /// <summary>
     /// reference to the original prototype of the layer. Used to edit visual layers.
index b9fe40b1ba1826f74f8af302b6af066da107065d..691d0b81cce26169ec7e41aee586e8cb94c307a4 100644 (file)
@@ -9,7 +9,7 @@ namespace Content.Shared.Parallax.Biomes;
 [Prototype("biomeTemplate")]
 public sealed partial class BiomeTemplatePrototype : IPrototype
 {
-    [IdDataField] public string ID { get; } = default!;
+    [IdDataField] public string ID { get; private set; } = default!;
 
     [DataField("layers")]
     public List<IBiomeLayer> Layers = new();
index 683900c8ba2206f901ec246981d6993ce051b390..ebbbb3123c443960a845d3bb3ae10150a70f3110 100644 (file)
@@ -7,9 +7,9 @@ namespace Content.Shared.Parallax.Biomes.Markers;
 /// Spawns entities inside of the specified area with the minimum specified radius.
 /// </summary>
 [Prototype("biomeMarkerLayer")]
-public sealed class BiomeMarkerLayerPrototype : IBiomeMarkerLayer
+public sealed partial class BiomeMarkerLayerPrototype : IBiomeMarkerLayer
 {
-    [IdDataField] public string ID { get; } = default!;
+    [IdDataField] public string ID { get; private set; } = default!;
 
     /// <summary>
     /// Checks for the relevant entity for the tile before spawning. Useful for substituting walls with ore veins for example.
@@ -21,7 +21,7 @@ public sealed class BiomeMarkerLayerPrototype : IBiomeMarkerLayer
     /// Default prototype to spawn. If null will fall back to entity mask.
     /// </summary>
     [DataField]
-    public string? Prototype { get; }
+    public string? Prototype { get; private set; }
 
     /// <summary>
     /// Minimum radius between 2 points
index d1cfc7f8d4bb0dc3f9ec57426aa9b0996fd4323c..12d79b5a1d7f1940b905f9f514d7a2ce6c1328c1 100644 (file)
@@ -8,5 +8,5 @@ namespace Content.Shared.Players.PlayTimeTracking;
 [Prototype("playTimeTracker")]
 public sealed partial class PlayTimeTrackerPrototype : IPrototype
 {
-    [IdDataField] public string ID { get; } = default!;
+    [IdDataField] public string ID { get; private set; } = default!;
 }
index 3bb9d8ab0a3a93db63742a60e88780bf52c5e45a..2dbe86276414042158cf1caf142fb8cf259d7b46 100644 (file)
@@ -9,7 +9,7 @@ namespace Content.Shared.Preferences.Loadouts.Effects;
 public sealed partial class LoadoutEffectGroupPrototype : IPrototype
 {
     [IdDataField]
-    public string ID { get; } = string.Empty;
+    public string ID { get; private set; } = string.Empty;
 
     [DataField(required: true)]
     public List<LoadoutEffect> Effects = new();
index 0c787e965f1bd4f02ff9f1c79b28fb79f5ecc37b..946d218cbce516bb37dac5259e5f89803a898dd4 100644 (file)
@@ -9,7 +9,7 @@ namespace Content.Shared.Preferences.Loadouts;
 public sealed partial class LoadoutGroupPrototype : IPrototype
 {
     [IdDataField]
-    public string ID { get; } = string.Empty;
+    public string ID { get; private set; } = string.Empty;
 
     /// <summary>
     /// User-friendly name for the group.
index 1533b605ac93a5f76c7274f689e54b1a4503dc43..f4ec6986a1bf57b24b7388cb6a4ee0a7e61b96c8 100644 (file)
@@ -11,7 +11,7 @@ namespace Content.Shared.Preferences.Loadouts;
 public sealed partial class LoadoutPrototype : IPrototype, IEquipmentLoadout
 {
     [IdDataField]
-    public string ID { get; } = string.Empty;
+    public string ID { get; private set; } = string.Empty;
 
     /*
      * You can either use an existing StartingGearPrototype or specify it inline to avoid bloating yaml.
index 3521ad0095f300b9fd0391fc49a0094cd72f8516..5609cb078b54957096ee08e0c706def9f079a82f 100644 (file)
@@ -14,7 +14,7 @@ public sealed partial class RoleLoadoutPrototype : IPrototype
      */
 
     [IdDataField]
-    public string ID { get; } = string.Empty;
+    public string ID { get; private set; } = string.Empty;
 
     /// <summary>
     /// Can the user edit their entity name for this role loadout?
index c4093741ec0eb52f10196d07ba4b0ba92315629f..2c2adc18030c336d2acd8ae21cc64f3ce1fee32a 100644 (file)
@@ -49,7 +49,7 @@ public partial class DungeonConfig
 }
 
 [Prototype]
-public sealed class DungeonConfigPrototype : DungeonConfig, IPrototype
+public sealed partial class DungeonConfigPrototype : DungeonConfig, IPrototype
 {
     [IdDataField]
     public string ID { get; private set; } = default!;
index 58ec966786146c72d5727bd0ed7dc23e6bfbdb16..f15d9745556dab3afdc0b70705a930ff25c4e647 100644 (file)
@@ -14,7 +14,7 @@ namespace Content.Shared.Procedural;
 /// This lets us share data between different dungeon configs without having to repeat entire configs.
 /// </remarks>
 [DataRecord]
-public sealed class DungeonData
+public sealed partial class DungeonData
 {
     // I hate this but it also significantly reduces yaml bloat if we add like 10 variations on the same set of layers
     // e.g. science rooms, engi rooms, cargo rooms all under PlanetBase for example.
index 56d63bec8f599cb4361196cd0628889a327e748c..a3a7ab61effd2b0eb550f68da4331b0ef86227fc 100644 (file)
@@ -39,7 +39,7 @@ public sealed partial class NoiseDunGen : IDunGenLayer
 }
 
 [DataRecord]
-public record struct NoiseDunGenLayer
+public partial record struct NoiseDunGenLayer
 {
     /// <summary>
     /// If the noise value is above this then it gets output.
index 64b76b4cccc7e9b7f50d20e4fefa2aad5e8713f5..e0e9d5183b6d8ba1fc59720cfbc63ea041030b9b 100644 (file)
@@ -20,7 +20,7 @@ public sealed partial class ReplaceTileDunGen : IDunGenLayer
 }
 
 [DataRecord]
-public record struct ReplaceTileLayer
+public partial record struct ReplaceTileLayer
 {
     public ProtoId<ContentTileDefinition> Tile;
 
index a143c3c8c054f6c606d176fb7806de69f447964e..e57c4c1d2b77c02a3e65656fc8a777377b1c051c 100644 (file)
@@ -5,7 +5,7 @@ namespace Content.Shared.Procedural;
 [Prototype("dungeonPreset")]
 public sealed partial class DungeonPresetPrototype : IPrototype
 {
-    [IdDataField] public string ID { get; } = default!;
+    [IdDataField] public string ID { get; private set; } = default!;
 
     /// <summary>
     /// The room pack bounds we need to fill.
index 418e40f7be231e8258faa89cd7f6574dbf2feb1c..6636ac34b9a16d33baa0ff51c8a5d85619825dc0 100644 (file)
@@ -8,7 +8,7 @@ namespace Content.Shared.Procedural;
 [Prototype("dungeonRoom")]
 public sealed partial class DungeonRoomPrototype : IPrototype
 {
-    [IdDataField] public string ID { get; } = string.Empty;
+    [IdDataField] public string ID { get; private set; } = string.Empty;
 
     [ViewVariables(VVAccess.ReadWrite), DataField]
     public List<ProtoId<TagPrototype>> Tags = new();
index 9e9c0d3e64f49733c75656e8d1848c0511c91cdc..8189066a4fee42ee36e2ca94bb3e1afbd31cb3d4 100644 (file)
@@ -8,7 +8,7 @@ namespace Content.Shared.Procedural.Loot;
 [Prototype("salvageLoot")]
 public sealed partial class SalvageLootPrototype : IPrototype
 {
-    [IdDataField] public string ID { get; } = default!;
+    [IdDataField] public string ID { get; private set; } = default!;
 
     /// <summary>
     /// Should this loot always spawn if possible. Used for stuff such as ore.
index 6bf447fdc7eef25689b6fe7942b2a5da9803b592..220bb68066df7d28e7035280b3900f724c54a0d6 100644 (file)
@@ -5,7 +5,7 @@ namespace Content.Shared.Procedural;
 [Prototype("salvageDifficulty")]
 public sealed partial class SalvageDifficultyPrototype : IPrototype
 {
-    [IdDataField] public string ID { get; } = string.Empty;
+    [IdDataField] public string ID { get; private set; } = string.Empty;
 
     /// <summary>
     /// Color to be used in UI.
index 166db0577eac954f01456fa1dbb9fca0ecfb7cb5..500dfbd5f69543feabc0ad05f88ec3fbca906232 100644 (file)
@@ -27,7 +27,7 @@ public sealed partial class RadioChannelPrototype : IPrototype
     public Color Color { get; private set; } = Color.Lime;
 
     [IdDataField, ViewVariables]
-    public string ID { get; } = default!;
+    public string ID { get; private set; } = default!;
 
     /// <summary>
     /// If channel is long range it doesn't require telecommunication server
index 84e3b9256c3b4a2dd29f9875925afe25ba7dca2a..cf3651321363c33d593997d9ded22603847b22cd 100644 (file)
@@ -8,7 +8,7 @@ namespace Content.Shared.Random;
 [Prototype("RandomPlantMutationList")]
 public sealed partial class RandomPlantMutationListPrototype : IPrototype
 {
-    [IdDataField] public string ID { get; } = default!;
+    [IdDataField] public string ID { get; private set; } = default!;
 
     /// <summary>
     ///     List of RandomFills that can be picked from.
index 1957beab510552774ee478ef136d2fb1c63d3823..23a363e92eb43757481c0a2803b9814d4b15488d 100644 (file)
@@ -10,7 +10,7 @@ namespace Content.Shared.Random.Rules;
 [Prototype("rules")]
 public sealed partial class RulesPrototype : IPrototype
 {
-    [IdDataField] public string ID { get; } = string.Empty;
+    [IdDataField] public string ID { get; private set; } = string.Empty;
 
     [DataField("rules", required: true)]
     public List<RulesRule> Rules = new();
index c88f88bbdcd35aed841c014ff98a5456f46be184..01592ddf8ce0135e42e75c9a9570394021119cc4 100644 (file)
@@ -7,7 +7,7 @@ namespace Content.Shared.Random;
 /// Linter-friendly version of weightedRandom for Entity prototypes.
 /// </summary>
 [Prototype("weightedRandomEntity")]
-public sealed class WeightedRandomEntityPrototype : IWeightedRandomPrototype
+public sealed partial class WeightedRandomEntityPrototype : IWeightedRandomPrototype
 {
     [IdDataField]
     public string ID { get; private set; } = default!;
index 48dc99799c0bb8f4944067a4f51cb1f9253a8972..c08ac27b9e004cbb7196b7e5798fb93ce62d224a 100644 (file)
@@ -8,7 +8,7 @@ namespace Content.Shared.Random;
 [Prototype("weightedRandomFillSolution")]
 public sealed partial class WeightedRandomFillSolutionPrototype : IPrototype
 {
-    [IdDataField] public string ID { get; } = default!;
+    [IdDataField] public string ID { get; private set; } = default!;
 
     /// <summary>
     ///     List of RandomFills that can be picked from.
index f79bb244df17125e97b9851f7930c742475825e5..7cd8bba514256ecedc60d968b9b8e26240543d6e 100644 (file)
@@ -8,7 +8,7 @@ namespace Content.Shared.Random;
 /// Linter-friendly version of weightedRandom for Ore prototypes.
 /// </summary>
 [Prototype("weightedRandomOre")]
-public sealed class WeightedRandomOrePrototype : IWeightedRandomPrototype
+public sealed partial class WeightedRandomOrePrototype : IWeightedRandomPrototype
 {
     [IdDataField]
     public string ID { get; private set; } = default!;
index 6b9e28c4165351feefdca11c18280c2644dfd39c..1ef5df76ba5222c437be4ef07a23163f019c828d 100644 (file)
@@ -6,7 +6,7 @@ namespace Content.Shared.Random;
 /// Generic random weighting dataset to use.
 /// </summary>
 [Prototype("weightedRandom")]
-public sealed class WeightedRandomPrototype : IWeightedRandomPrototype
+public sealed partial class WeightedRandomPrototype : IWeightedRandomPrototype
 {
     [IdDataField]
     public string ID { get; private set; } = default!;
index 4e7ef84227fc1432c5a202b2ea914cc4113c1c83..5d805847d3c1d90244c4f709a8c9a23cec789d90 100644 (file)
@@ -8,7 +8,7 @@ namespace Content.Shared.Random;
 /// Linter-friendly version of weightedRandom for Species prototypes.
 /// </summary>
 [Prototype("weightedRandomSpecies")]
-public sealed class WeightedRandomSpeciesPrototype : IWeightedRandomPrototype
+public sealed partial class WeightedRandomSpeciesPrototype : IWeightedRandomPrototype
 {
     [IdDataField]
     public string ID { get; private set; } = default!;
index 0fabbd67166967e99191d2f8c764c241ad309a8e..79525575a6426a87a8cca9255d2739a6e2ce1945 100644 (file)
@@ -18,12 +18,12 @@ namespace Content.Shared.Research.Prototypes
 
         /// <inheritdoc/>
         [ParentDataField(typeof(AbstractPrototypeIdArraySerializer<LatheRecipePrototype>))]
-        public string[]? Parents { get; }
+        public string[]? Parents { get; private set; }
 
         /// <inheritdoc />
         [NeverPushInheritance]
         [AbstractDataField]
-        public bool Abstract { get; }
+        public bool Abstract { get; private set; }
 
         /// <summary>
         ///     Name displayed in the lathe GUI.
index 996c65cb0e68ff367df70731632cb97734018caf..7a6974fb51c2e333dc7a69b388bdc9e768e3b678 100644 (file)
@@ -58,7 +58,7 @@ public sealed class RoboticsConsoleDestroyMessage : BoundUserInterfaceMessage
 /// Created by <c>BorgTransponderComponent</c> and sent to clients by <c>RoboticsConsoleComponent</c>.
 /// </summary>
 [DataRecord, Serializable, NetSerializable]
-public record struct CyborgControlData
+public partial record struct CyborgControlData
 {
     /// <summary>
     /// Texture of the borg chassis.
index 5c94c90f8b3400382cfe0e5d5d7e90db1f3fd4e2..20710ec11accd6e5982dc8051132967f96dd7d0b 100644 (file)
@@ -6,7 +6,7 @@ namespace Content.Shared.Roles;
 public sealed partial class DepartmentPrototype : IPrototype
 {
     [IdDataField]
-    public string ID { get; } = string.Empty;
+    public string ID { get; private set; } = string.Empty;
 
     /// <summary>
     /// The name LocId of the department that will be displayed in the various menus.
index b0a4b94e550bf52a277c119a9a2b5373f217cd92..2088b4a24a59ba0354df18a4b190b556698c00d8 100644 (file)
@@ -17,7 +17,7 @@ public sealed partial class StartingGearPrototype : IPrototype, IInheritingProto
 
     /// <inheritdoc/>
     [AbstractDataField]
-    public bool Abstract { get; }
+    public bool Abstract { get; private set; }
 
     /// <inheritdoc />
     [DataField]
index 3235741f117a29ee056b5e94f562e222c0b24633..908d5830007470697408731f6ff4f63f52beeccd 100644 (file)
@@ -10,7 +10,7 @@ namespace Content.Shared.Salvage.Expeditions.Modifiers;
 [Prototype("salvageBiomeMod")]
 public sealed partial class SalvageBiomeModPrototype : IPrototype, ISalvageMod
 {
-    [IdDataField] public string ID { get; } = default!;
+    [IdDataField] public string ID { get; private set; } = default!;
 
     [DataField("desc")] public LocId Description { get; private set; } = string.Empty;
 
index acce4b3ace9bc48d2837f0a78b1831fe86fb7d03..f69ad1969ae269e92649060a673567308653aea9 100644 (file)
@@ -8,7 +8,7 @@ namespace Content.Shared.Salvage.Expeditions.Modifiers;
 [Prototype("salvageDungeonMod")]
 public sealed partial class SalvageDungeonModPrototype : IPrototype, IBiomeSpecificMod
 {
-    [IdDataField] public string ID { get; } = default!;
+    [IdDataField] public string ID { get; private set; } = default!;
 
     [DataField("desc")] public LocId Description { get; private set; } = string.Empty;
 
index d744d5c308c4986b6b08dc25fa21644e72e8f9b9..8acfd8b7c401f35ffa629ceb5a864667ad6fc7f2 100644 (file)
@@ -6,7 +6,7 @@ namespace Content.Shared.Salvage.Expeditions.Modifiers;
 [Prototype("salvageLightMod")]
 public sealed partial class SalvageLightMod : IPrototype, IBiomeSpecificMod
 {
-    [IdDataField] public string ID { get; } = default!;
+    [IdDataField] public string ID { get; private set; } = default!;
 
     [DataField("desc")] public LocId Description { get; private set; } = string.Empty;
 
index 5226824ed5270dd4c15e27ec768efe92644a0d7a..5712f27df2710fcd5ab3a6b1ef900afb7ecb9ab0 100644 (file)
@@ -8,7 +8,7 @@ namespace Content.Shared.Salvage.Expeditions.Modifiers;
 [Prototype("salvageMod")]
 public sealed partial class SalvageMod : IPrototype, ISalvageMod
 {
-    [IdDataField] public string ID { get; } = default!;
+    [IdDataField] public string ID { get; private set; } = default!;
 
     [DataField("desc")] public LocId Description { get; private set; } = string.Empty;
 
index e8b7235511da1d9a3fa7d987bfdb10d61d4c55ed..8871c14572eca7b3bd5b72a6d8adb0a60487b64f 100644 (file)
@@ -6,7 +6,7 @@ namespace Content.Shared.Salvage.Expeditions.Modifiers;
 [Prototype("salvageTemperatureMod")]
 public sealed partial class SalvageTemperatureMod : IPrototype, IBiomeSpecificMod
 {
-    [IdDataField] public string ID { get; } = default!;
+    [IdDataField] public string ID { get; private set; } = default!;
 
     [DataField("desc")] public LocId Description { get; private set; } = string.Empty;
 
index fc704d49e4b3e36071f8c687512bc4444161bb16..1f3b13daee60ae0532fa5aced6256a74b824e465 100644 (file)
@@ -8,7 +8,7 @@ namespace Content.Shared.Salvage.Expeditions.Modifiers;
 [Prototype("salvageWeatherMod")]
 public sealed partial class SalvageWeatherMod : IPrototype, IBiomeSpecificMod
 {
-    [IdDataField] public string ID { get; } = default!;
+    [IdDataField] public string ID { get; private set; } = default!;
 
     [DataField("desc")] public LocId Description { get; private set; } = string.Empty;
 
index 71be4f7bd089024ae53a6f13e144f83865602a56..b41784211066eb22dad0f16f0ba2e753508db81c 100644 (file)
@@ -5,7 +5,7 @@ namespace Content.Shared.Salvage.Expeditions;
 [Prototype("salvageFaction")]
 public sealed partial class SalvageFactionPrototype : IPrototype
 {
-    [IdDataField] public string ID { get; } = default!;
+    [IdDataField] public string ID { get; private set; } = default!;
 
     [DataField("desc")] public LocId Description { get; private set; } = string.Empty;
 
index f3903926ac5900ba25b60f3aa92bbbbb058e41c0..5f1ef7b1dbf7a9eccc21eb309e53c66165355afe 100644 (file)
@@ -6,7 +6,7 @@ namespace Content.Shared.Salvage;
 [Prototype]
 public sealed partial class SalvageMapPrototype : IPrototype
 {
-    [ViewVariables] [IdDataField] public string ID { get; } = default!;
+    [ViewVariables] [IdDataField] public string ID { get; private set; } = default!;
 
     /// <summary>
     /// Relative directory path to the given map, i.e. `Maps/Salvage/template.yml`
index 6154c1275774fcea24910049f70d2646413837bb..2f47dd4ceaf9a51e84b645756e703ce183c10549 100644 (file)
@@ -19,7 +19,7 @@ public sealed partial class BorgTypePrototype : IPrototype
     private static readonly ProtoId<SoundCollectionPrototype> DefaultFootsteps = new("FootstepBorg");
 
     [IdDataField]
-    public required string ID { get; init; }
+    public required string ID { get; set; }
 
     //
     // Description info (name/desc) is configured via localization strings directly.
@@ -29,7 +29,7 @@ public sealed partial class BorgTypePrototype : IPrototype
     /// The prototype displayed in the selection menu for this type.
     /// </summary>
     [DataField]
-    public required EntProtoId DummyPrototype { get; init; }
+    public required EntProtoId DummyPrototype;
 
     //
     // Functional information
index 951cac64f76503b7fe2896c61ba309502e5dc47f..6cce52897713d7445ab54de42b09f66ebb364752 100644 (file)
@@ -9,7 +9,7 @@ namespace Content.Shared.Speech;
 [Prototype("speechVerb")]
 public sealed partial class SpeechVerbPrototype : IPrototype
 {
-    [IdDataField] public string ID { get; } = default!;
+    [IdDataField] public string ID { get; private set; } = default!;
 
     /// <summary>
     ///     Loc strings to be passed to the chat wrapper. 'says', 'states', etc.
index 33665d82b5dff65bef61e2077ee4d1774492b135..b6570a0fc8d3f010272fdfcee5738583a3f212f4 100644 (file)
@@ -8,7 +8,7 @@ namespace Content.Shared.Spreader;
 [Prototype("edgeSpreader")]
 public sealed partial class EdgeSpreaderPrototype : IPrototype
 {
-    [IdDataField] public string ID { get; } = string.Empty;
+    [IdDataField] public string ID { get; private set; } = string.Empty;
     [DataField(required:true)] public int UpdatesPerSecond;
 
     /// <summary>
index af3cfb133b27d3653bfdf27f7ec0c58b6046f98f..7034e225b8099b4985b573ef3d333e8fef4c277e 100644 (file)
@@ -97,12 +97,12 @@ public sealed partial class JobIconPrototype : StatusIconPrototype, IInheritingP
 {
     /// <inheritdoc />
     [ParentDataField(typeof(AbstractPrototypeIdArraySerializer<JobIconPrototype>))]
-    public string[]? Parents { get; }
+    public string[]? Parents { get; private set; }
 
     /// <inheritdoc />
     [NeverPushInheritance]
     [AbstractDataField]
-    public bool Abstract { get; }
+    public bool Abstract { get; private set; }
 
     /// <summary>
     /// Name of the icon used for menu tooltips.
@@ -128,12 +128,12 @@ public sealed partial class HealthIconPrototype : StatusIconPrototype, IInheriti
 {
     /// <inheritdoc />
     [ParentDataField(typeof(AbstractPrototypeIdArraySerializer<HealthIconPrototype>))]
-    public string[]? Parents { get; }
+    public string[]? Parents { get; private set; }
 
     /// <inheritdoc />
     [NeverPushInheritance]
     [AbstractDataField]
-    public bool Abstract { get; }
+    public bool Abstract { get; private set; }
 }
 
 /// <summary>
@@ -144,12 +144,12 @@ public sealed partial class SatiationIconPrototype : StatusIconPrototype, IInher
 {
     /// <inheritdoc />
     [ParentDataField(typeof(AbstractPrototypeIdArraySerializer<SatiationIconPrototype>))]
-    public string[]? Parents { get; }
+    public string[]? Parents { get; private set; }
 
     /// <inheritdoc />
     [NeverPushInheritance]
     [AbstractDataField]
-    public bool Abstract { get; }
+    public bool Abstract { get; private set; }
 }
 
 /// <summary>
@@ -160,12 +160,12 @@ public sealed partial class SecurityIconPrototype : StatusIconPrototype, IInheri
 {
     /// <inheritdoc />
     [ParentDataField(typeof(AbstractPrototypeIdArraySerializer<SecurityIconPrototype>))]
-    public string[]? Parents { get; }
+    public string[]? Parents { get; private set; }
 
     /// <inheritdoc />
     [NeverPushInheritance]
     [AbstractDataField]
-    public bool Abstract { get; }
+    public bool Abstract { get; private set; }
 }
 
 /// <summary>
@@ -176,12 +176,12 @@ public sealed partial class FactionIconPrototype : StatusIconPrototype, IInherit
 {
     /// <inheritdoc />
     [ParentDataField(typeof(AbstractPrototypeIdArraySerializer<FactionIconPrototype>))]
-    public string[]? Parents { get; }
+    public string[]? Parents { get; private set; }
 
     /// <inheritdoc />
     [NeverPushInheritance]
     [AbstractDataField]
-    public bool Abstract { get; }
+    public bool Abstract { get; private set; }
 }
 
 /// <summary>
@@ -192,12 +192,12 @@ public sealed partial class DebugIconPrototype : StatusIconPrototype, IInheritin
 {
     /// <inheritdoc />
     [ParentDataField(typeof(AbstractPrototypeIdArraySerializer<DebugIconPrototype>))]
-    public string[]? Parents { get; }
+    public string[]? Parents { get; private set; }
 
     /// <inheritdoc />
     [NeverPushInheritance]
     [AbstractDataField]
-    public bool Abstract { get; }
+    public bool Abstract { get; private set; }
 }
 
 /// <summary>
@@ -208,12 +208,12 @@ public sealed partial class SsdIconPrototype : StatusIconPrototype, IInheritingP
 {
     /// <inheritdoc />
     [ParentDataField(typeof(AbstractPrototypeIdArraySerializer<SsdIconPrototype>))]
-    public string[]? Parents { get; }
+    public string[]? Parents { get; private set; }
 
     /// <inheritdoc />
     [NeverPushInheritance]
     [AbstractDataField]
-    public bool Abstract { get; }
+    public bool Abstract { get; private set; }
 }
 
 [Serializable, NetSerializable]
index 6e24681c2dbdde3bdf5a2afa27515c63d5731e11..480863692e3e185d44d4ccc1bc1dbe018268ad13 100644 (file)
@@ -9,10 +9,10 @@ namespace Content.Shared.Storage;
 /// Prototype wrapper around <see cref="EntitySpawnEntry"/>
 /// </summary>
 [Prototype]
-public sealed class EntitySpawnEntryPrototype : IPrototype
+public sealed partial class EntitySpawnEntryPrototype : IPrototype
 {
     [IdDataField]
-    public string ID { get; } = string.Empty;
+    public string ID { get; private set; } = string.Empty;
 
     [DataField]
     public List<EntitySpawnEntry> Entries = new();
index 948c7b2dc024454e3ae95621caa3cbb26597fc6c..fbae725c1018b4e81c98beb2163b4655f55c1f68 100644 (file)
@@ -20,7 +20,7 @@ public sealed partial class StoryTemplatePrototype : IPrototype
     /// Localization ID of the Fluent string that forms the structure of this story.
     /// </summary>
     [DataField(required: true)]
-    public LocId LocId { get; } = default!;
+    public LocId LocId;
 
     /// <summary>
     /// Dictionary containing the name of each variable to pass to the template and the ID of the
@@ -29,5 +29,5 @@ public sealed partial class StoryTemplatePrototype : IPrototype
     /// dataset which can then be used in the template by <c>{$name}</c>.
     /// </summary>
     [DataField]
-    public Dictionary<string, ProtoId<LocalizedDatasetPrototype>> Variables { get; } = default!;
+    public Dictionary<string, ProtoId<LocalizedDatasetPrototype>> Variables = [];
 }
index 97f8c1af7d44632637ad71f634f7ee1eee5dbc0c..b89569ca8e0f86c298f9fd38e404d9831fa760a4 100644 (file)
@@ -11,5 +11,5 @@ namespace Content.Shared.Tag;
 public sealed partial class TagPrototype : IPrototype
 {
     [IdDataField, ViewVariables]
-    public string ID { get; } = string.Empty;
+    public string ID { get; private set; } = string.Empty;
 }
index 3803c37d4ce886ae0c4b429f40b491eba9bf04c0..f6959a5336966277df47b359b71872a7db97e7ec 100644 (file)
@@ -7,7 +7,7 @@ namespace Content.Shared.Weather;
 [Prototype("weather")]
 public sealed partial class WeatherPrototype : IPrototype
 {
-    [IdDataField] public string ID { get; } = default!;
+    [IdDataField] public string ID { get; private set; } = default!;
 
     [ViewVariables(VVAccess.ReadWrite), DataField("sprite", required: true)]
     public SpriteSpecifier Sprite = default!;