From 987361b5ced51fda6e131fd17e3c17ade54ab663 Mon Sep 17 00:00:00 2001 From: BarryNorfolk Date: Tue, 3 Feb 2026 06:29:50 +0100 Subject: [PATCH] Downstream fixes for .net10 --- .../_DV/Cargo/Components/StationStockMarketComponent.cs | 2 +- Content.Shared/Roles/JobPrototype.cs | 2 +- Content.Shared/_DV/Antag/NukieOperationPrototype.cs | 2 +- .../CartridgeLoader/Cartridges/NanoChatUiMessageEvent.cs | 6 +++--- .../_DV/FeedbackOverwatch/FeedbackPopupPrototype.cs | 2 +- Content.Shared/_DV/Kitchen/DeepFryerRecipePrototype.cs | 2 +- Content.Shared/_DV/Mail/MailDeliveryPoolPrototype.cs | 4 ++-- Content.Shared/_DV/QuickPhrase/QuickPhrasePrototype.cs | 4 ++-- .../_DV/Shipyard/Prototypes/VesselCategoryPrototype.cs | 4 ++-- Content.Shared/_DV/Shipyard/Prototypes/VesselPrototype.cs | 4 ++-- .../Speech/Prototypes/SyllableObfuscationAccentPrototype.cs | 2 +- .../_DV/VendingMachines/ShopInventoryPrototype.cs | 4 ++-- Content.Shared/_DV/Whitelist/WhitelistTierPrototype.cs | 4 ++-- .../_Goobstation/Devil/Contract/DevilClausePrototype.cs | 4 ++-- Content.Shared/_Goobstation/Devil/DevilBranchPrototype.cs | 2 +- .../_Mono/CorticalBorer/CorticalBorerChemicalPrototype.cs | 2 +- .../_RMC14/Clothing/RMCClothingFoldableComponent.cs | 2 +- 17 files changed, 26 insertions(+), 26 deletions(-) diff --git a/Content.Server/_DV/Cargo/Components/StationStockMarketComponent.cs b/Content.Server/_DV/Cargo/Components/StationStockMarketComponent.cs index b3fd07585c..918ffcb1b8 100644 --- a/Content.Server/_DV/Cargo/Components/StationStockMarketComponent.cs +++ b/Content.Server/_DV/Cargo/Components/StationStockMarketComponent.cs @@ -61,4 +61,4 @@ public sealed partial class StationStockMarketComponent : Component } [DataRecord] -public record struct MarketChange(float Chance, Vector2 Range); +public partial record struct MarketChange(float Chance, Vector2 Range); diff --git a/Content.Shared/Roles/JobPrototype.cs b/Content.Shared/Roles/JobPrototype.cs index 80e481016c..d23d1f5469 100644 --- a/Content.Shared/Roles/JobPrototype.cs +++ b/Content.Shared/Roles/JobPrototype.cs @@ -88,7 +88,7 @@ namespace Content.Shared.Roles /// Nyano/DV: For e.g. prisoners, they'll never use their latejoin spawner. /// [DataField("alwaysUseSpawner")] - public bool AlwaysUseSpawner { get; } = false; + public bool AlwaysUseSpawner { get; private set; } = false; // DeltaV - Added private set /// /// The "weight" or importance of this job. If this number is large, the job system will assign this job diff --git a/Content.Shared/_DV/Antag/NukieOperationPrototype.cs b/Content.Shared/_DV/Antag/NukieOperationPrototype.cs index b800cdc479..dc946c80da 100644 --- a/Content.Shared/_DV/Antag/NukieOperationPrototype.cs +++ b/Content.Shared/_DV/Antag/NukieOperationPrototype.cs @@ -10,7 +10,7 @@ public sealed partial class NukieOperationPrototype : IPrototype { /// [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; [DataField(required: true)] public List OperationObjectives = new(); diff --git a/Content.Shared/_DV/CartridgeLoader/Cartridges/NanoChatUiMessageEvent.cs b/Content.Shared/_DV/CartridgeLoader/Cartridges/NanoChatUiMessageEvent.cs index b0fb8971c8..61dc6eda53 100644 --- a/Content.Shared/_DV/CartridgeLoader/Cartridges/NanoChatUiMessageEvent.cs +++ b/Content.Shared/_DV/CartridgeLoader/Cartridges/NanoChatUiMessageEvent.cs @@ -61,7 +61,7 @@ public enum NanoChatUiMessageType : byte // putting this here because i can [Serializable, NetSerializable, DataRecord] -public struct NanoChatRecipient +public partial struct NanoChatRecipient { /// /// The recipient's unique NanoChat number. @@ -100,7 +100,7 @@ public struct NanoChatRecipient } [Serializable, NetSerializable, DataRecord] -public struct NanoChatMessage +public partial struct NanoChatMessage { public const int MaxContentLength = 256; @@ -146,7 +146,7 @@ public struct NanoChatMessage /// /// Used by the LogProbe [Serializable, NetSerializable, DataRecord] -public readonly struct NanoChatData( +public readonly partial struct NanoChatData( Dictionary recipients, Dictionary> messages, uint? cardNumber, diff --git a/Content.Shared/_DV/FeedbackOverwatch/FeedbackPopupPrototype.cs b/Content.Shared/_DV/FeedbackOverwatch/FeedbackPopupPrototype.cs index 475718802c..cd9d4768aa 100644 --- a/Content.Shared/_DV/FeedbackOverwatch/FeedbackPopupPrototype.cs +++ b/Content.Shared/_DV/FeedbackOverwatch/FeedbackPopupPrototype.cs @@ -10,7 +10,7 @@ public sealed partial class FeedbackPopupPrototype : IPrototype { /// [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; /// /// Name of the popup. This is relayed in the discord webhook. diff --git a/Content.Shared/_DV/Kitchen/DeepFryerRecipePrototype.cs b/Content.Shared/_DV/Kitchen/DeepFryerRecipePrototype.cs index 7c257230b2..4047f19057 100644 --- a/Content.Shared/_DV/Kitchen/DeepFryerRecipePrototype.cs +++ b/Content.Shared/_DV/Kitchen/DeepFryerRecipePrototype.cs @@ -14,7 +14,7 @@ namespace Content.Shared._DV.Kitchen; /// we can still reuse it for guidebook generation without duping the code. /// [Prototype] -public sealed class DeepFryerRecipePrototype : IPrototype +public sealed partial class DeepFryerRecipePrototype : IPrototype { /// [IdDataField] diff --git a/Content.Shared/_DV/Mail/MailDeliveryPoolPrototype.cs b/Content.Shared/_DV/Mail/MailDeliveryPoolPrototype.cs index 740015c590..e4a1edc407 100644 --- a/Content.Shared/_DV/Mail/MailDeliveryPoolPrototype.cs +++ b/Content.Shared/_DV/Mail/MailDeliveryPoolPrototype.cs @@ -7,9 +7,9 @@ namespace Content.Shared._DV.Mail; /// Generic random weighting dataset to use. /// [Prototype] -public sealed class MailDeliveryPoolPrototype : IPrototype +public sealed partial class MailDeliveryPoolPrototype : IPrototype { - [IdDataField] public string ID { get; } = default!; + [IdDataField] public string ID { get; private set; } = default!; /// /// Mail that can be sent to everyone. diff --git a/Content.Shared/_DV/QuickPhrase/QuickPhrasePrototype.cs b/Content.Shared/_DV/QuickPhrase/QuickPhrasePrototype.cs index 44ebc20881..3f4fd443bc 100644 --- a/Content.Shared/_DV/QuickPhrase/QuickPhrasePrototype.cs +++ b/Content.Shared/_DV/QuickPhrase/QuickPhrasePrototype.cs @@ -18,12 +18,12 @@ public sealed partial class QuickPhrasePrototype : IPrototype, IInheritingProtot /// [ViewVariables] [ParentDataField(typeof(AbstractPrototypeIdArraySerializer))] - public string[]? Parents { get; } + public string[]? Parents { get; private set; } [ViewVariables] [NeverPushInheritance] [AbstractDataField] - public bool Abstract { get; } + public bool Abstract { get; private set; } /// /// The phrase that this prototype represents. diff --git a/Content.Shared/_DV/Shipyard/Prototypes/VesselCategoryPrototype.cs b/Content.Shared/_DV/Shipyard/Prototypes/VesselCategoryPrototype.cs index a00d881706..63ee425a8e 100644 --- a/Content.Shared/_DV/Shipyard/Prototypes/VesselCategoryPrototype.cs +++ b/Content.Shared/_DV/Shipyard/Prototypes/VesselCategoryPrototype.cs @@ -7,13 +7,13 @@ namespace Content.Shared.Shipyard.Prototypes; /// Prevents making typos being silently ignored by the linter. /// [Prototype("vesselCategory")] -public sealed class VesselCategoryPrototype : IPrototype +public sealed partial class VesselCategoryPrototype : IPrototype { /// /// The unique ID for the vessel category. /// [ViewVariables, IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; /// /// The LocId containing the localization ID of the category name. diff --git a/Content.Shared/_DV/Shipyard/Prototypes/VesselPrototype.cs b/Content.Shared/_DV/Shipyard/Prototypes/VesselPrototype.cs index 5bfe8cbdeb..f696e9de3f 100644 --- a/Content.Shared/_DV/Shipyard/Prototypes/VesselPrototype.cs +++ b/Content.Shared/_DV/Shipyard/Prototypes/VesselPrototype.cs @@ -5,10 +5,10 @@ using Robust.Shared.Utility; namespace Content.Shared.Shipyard.Prototypes; [Prototype("vessel")] -public sealed class VesselPrototype : IPrototype +public sealed partial class VesselPrototype : IPrototype { [ViewVariables, IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; /// /// Already localized name of the vessel. diff --git a/Content.Shared/_DV/Speech/Prototypes/SyllableObfuscationAccentPrototype.cs b/Content.Shared/_DV/Speech/Prototypes/SyllableObfuscationAccentPrototype.cs index f9e96260aa..9e5c3f7f17 100644 --- a/Content.Shared/_DV/Speech/Prototypes/SyllableObfuscationAccentPrototype.cs +++ b/Content.Shared/_DV/Speech/Prototypes/SyllableObfuscationAccentPrototype.cs @@ -6,7 +6,7 @@ namespace Content.Shared._DV.Speech.Prototypes; public sealed partial class SyllableObfuscationAccentPrototype : IPrototype { [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; [DataField] public int MinSyllables = 1; diff --git a/Content.Shared/_DV/VendingMachines/ShopInventoryPrototype.cs b/Content.Shared/_DV/VendingMachines/ShopInventoryPrototype.cs index f7198642ae..51931bea29 100644 --- a/Content.Shared/_DV/VendingMachines/ShopInventoryPrototype.cs +++ b/Content.Shared/_DV/VendingMachines/ShopInventoryPrototype.cs @@ -7,7 +7,7 @@ namespace Content.Shared._DV.VendingMachines; /// Similar to VendingMachineInventoryPrototype but for . /// [Prototype] -public sealed class ShopInventoryPrototype : IPrototype +public sealed partial class ShopInventoryPrototype : IPrototype { [IdDataField] public string ID { get; private set; } = default!; @@ -20,4 +20,4 @@ public sealed class ShopInventoryPrototype : IPrototype } [DataRecord, Serializable] -public record struct ShopListing(EntProtoId Id, uint Cost); +public partial record struct ShopListing(EntProtoId Id, uint Cost); diff --git a/Content.Shared/_DV/Whitelist/WhitelistTierPrototype.cs b/Content.Shared/_DV/Whitelist/WhitelistTierPrototype.cs index bab750529a..2dd8162a73 100644 --- a/Content.Shared/_DV/Whitelist/WhitelistTierPrototype.cs +++ b/Content.Shared/_DV/Whitelist/WhitelistTierPrototype.cs @@ -4,10 +4,10 @@ using Robust.Shared.Prototypes; namespace Content.Shared._DV.Whitelist; [Prototype("whitelistTier")] -public sealed class WhitelistTierPrototype : IPrototype +public sealed partial class WhitelistTierPrototype : IPrototype { [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; [DataField] public string Name = string.Empty; diff --git a/Content.Shared/_Goobstation/Devil/Contract/DevilClausePrototype.cs b/Content.Shared/_Goobstation/Devil/Contract/DevilClausePrototype.cs index 5b0d28cc15..e9acad735e 100644 --- a/Content.Shared/_Goobstation/Devil/Contract/DevilClausePrototype.cs +++ b/Content.Shared/_Goobstation/Devil/Contract/DevilClausePrototype.cs @@ -10,10 +10,10 @@ using Robust.Shared.Prototypes; namespace Content.Shared._Goobstation.Devil.Contract; [Prototype("clause")] -public sealed class DevilClausePrototype : IPrototype +public sealed partial class DevilClausePrototype : IPrototype // DeltaV - Added partial { [IdDataField] - public string ID { get; private init; } = default!; + public string ID { get; private set; } = default!; // DeltaV - Added private set [DataField(required: true)] public int ClauseWeight; diff --git a/Content.Shared/_Goobstation/Devil/DevilBranchPrototype.cs b/Content.Shared/_Goobstation/Devil/DevilBranchPrototype.cs index a092b2535a..deaad6b573 100644 --- a/Content.Shared/_Goobstation/Devil/DevilBranchPrototype.cs +++ b/Content.Shared/_Goobstation/Devil/DevilBranchPrototype.cs @@ -3,7 +3,7 @@ using Robust.Shared.Prototypes; namespace Content.Shared._Goobstation.Devil; [Prototype("devilBranchPrototype")] -public sealed class DevilBranchPrototype : IPrototype +public sealed partial class DevilBranchPrototype : IPrototype // DeltaV - Added partial { [IdDataField] public string ID { get; set; } = default!; diff --git a/Content.Shared/_Mono/CorticalBorer/CorticalBorerChemicalPrototype.cs b/Content.Shared/_Mono/CorticalBorer/CorticalBorerChemicalPrototype.cs index a455be1572..4e8bad8fbf 100644 --- a/Content.Shared/_Mono/CorticalBorer/CorticalBorerChemicalPrototype.cs +++ b/Content.Shared/_Mono/CorticalBorer/CorticalBorerChemicalPrototype.cs @@ -11,7 +11,7 @@ namespace Content.Shared._Mono.CorticalBorer; public sealed partial class CorticalBorerChemicalPrototype : IPrototype { [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; // DeltaV - Added private set /// /// Chemical cost per u of reagent diff --git a/Content.Shared/_RMC14/Clothing/RMCClothingFoldableComponent.cs b/Content.Shared/_RMC14/Clothing/RMCClothingFoldableComponent.cs index 0d91597c81..001bb0f3e2 100644 --- a/Content.Shared/_RMC14/Clothing/RMCClothingFoldableComponent.cs +++ b/Content.Shared/_RMC14/Clothing/RMCClothingFoldableComponent.cs @@ -20,4 +20,4 @@ public sealed partial class RMCClothingFoldableComponent : Component /// [DataRecord] [Serializable, NetSerializable] -public readonly record struct FoldableType(string Prefix, LocId Name, int Priority, string? BlacklistedPrefix, LocId? BlacklistPopup); +public readonly partial record struct FoldableType(string Prefix, LocId Name, int Priority, string? BlacklistedPrefix, LocId? BlacklistPopup); // DeltaV - Added partial