Make all prototype types partial (#21374)

This commit is contained in:
DrSmugleaf
2023-11-01 19:56:23 -07:00
committed by GitHub
parent aa0c3b64ea
commit 2d58d19b07
105 changed files with 111 additions and 126 deletions

View File

@@ -1,9 +1,4 @@
using System.Collections.Generic;
using Robust.Shared.Prototypes; 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; namespace Content.Client.Parallax.Data;
@@ -11,7 +6,7 @@ namespace Content.Client.Parallax.Data;
/// Prototype data for a parallax. /// Prototype data for a parallax.
/// </summary> /// </summary>
[Prototype("parallax")] [Prototype("parallax")]
public sealed class ParallaxPrototype : IPrototype public sealed partial class ParallaxPrototype : IPrototype
{ {
/// <inheritdoc/> /// <inheritdoc/>
[IdDataField] [IdDataField]

View File

@@ -3,7 +3,7 @@
namespace Content.Server.Advertisements namespace Content.Server.Advertisements
{ {
[Serializable, Prototype("advertisementsPack")] [Serializable, Prototype("advertisementsPack")]
public sealed class AdvertisementsPackPrototype : IPrototype public sealed partial class AdvertisementsPackPrototype : IPrototype
{ {
[ViewVariables] [ViewVariables]
[IdDataField] [IdDataField]

View File

@@ -4,7 +4,7 @@ using Robust.Shared.Prototypes;
namespace Content.Server.AlertLevel; namespace Content.Server.AlertLevel;
[Prototype("alertLevels")] [Prototype("alertLevels")]
public sealed class AlertLevelPrototype : IPrototype public sealed partial class AlertLevelPrototype : IPrototype
{ {
[IdDataField] public string ID { get; } = default!; [IdDataField] public string ID { get; } = default!;

View File

@@ -1,7 +1,5 @@
using Content.Server.GameTicking.Presets;
using Robust.Shared.Audio; using Robust.Shared.Audio;
using Robust.Shared.Prototypes; using Robust.Shared.Prototypes;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.List;
namespace Content.Server.Announcements; namespace Content.Server.Announcements;
@@ -9,7 +7,7 @@ namespace Content.Server.Announcements;
/// Used for any announcements on the start of a round. /// Used for any announcements on the start of a round.
/// </summary> /// </summary>
[Prototype("roundAnnouncement")] [Prototype("roundAnnouncement")]
public sealed class RoundAnnouncementPrototype : IPrototype public sealed partial class RoundAnnouncementPrototype : IPrototype
{ {
[IdDataField] [IdDataField]
public string ID { get; private set; } = default!; public string ID { get; private set; } = default!;

View File

@@ -18,7 +18,7 @@ namespace Content.Server.Atmos.Reactions
} }
[Prototype("gasReaction")] [Prototype("gasReaction")]
public sealed class GasReactionPrototype : IPrototype public sealed partial class GasReactionPrototype : IPrototype
{ {
[ViewVariables] [ViewVariables]
[IdDataField] [IdDataField]

View File

@@ -10,7 +10,7 @@ namespace Content.Server.GameTicking.Presets
/// A round-start setup preset, such as which antagonists to spawn. /// A round-start setup preset, such as which antagonists to spawn.
/// </summary> /// </summary>
[Prototype("gamePreset")] [Prototype("gamePreset")]
public sealed class GamePresetPrototype : IPrototype public sealed partial class GamePresetPrototype : IPrototype
{ {
[IdDataField] [IdDataField]
public string ID { get; private set; } = default!; public string ID { get; private set; } = default!;

View File

@@ -7,7 +7,7 @@ namespace Content.Server.GameTicking.Prototypes;
/// Prototype for a lobby background the game can choose. /// Prototype for a lobby background the game can choose.
/// </summary> /// </summary>
[Prototype("lobbyBackground")] [Prototype("lobbyBackground")]
public sealed class LobbyBackgroundPrototype : IPrototype public sealed partial class LobbyBackgroundPrototype : IPrototype
{ {
/// <inheritdoc/> /// <inheritdoc/>
[IdDataField] [IdDataField]

View File

@@ -4,7 +4,7 @@ namespace Content.Server.GameTicking.Rules;
/* /*
[Prototype("gameRule")] [Prototype("gameRule")]
public sealed class GameRulePrototype : IPrototype public sealed partial class GameRulePrototype : IPrototype
{ {
[IdDataField] [IdDataField]
public string ID { get; private set; } = default!; public string ID { get; private set; } = default!;

View File

@@ -6,7 +6,7 @@ using Robust.Shared.Prototypes;
namespace Content.Server.Holiday namespace Content.Server.Holiday
{ {
[Prototype("holiday")] [Prototype("holiday")]
public sealed class HolidayPrototype : IPrototype public sealed partial class HolidayPrototype : IPrototype
{ {
[DataField("name")] public string Name { get; private set; } = string.Empty; [DataField("name")] public string Name { get; private set; } = string.Empty;

View File

@@ -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 that holds a pool of maps that can be indexed based on the map pool CCVar.
/// </summary> /// </summary>
[Prototype("gameMapPool"), PublicAPI] [Prototype("gameMapPool"), PublicAPI]
public sealed class GameMapPoolPrototype : IPrototype public sealed partial class GameMapPoolPrototype : IPrototype
{ {
/// <inheritdoc/> /// <inheritdoc/>
[IdDataField] [IdDataField]

View File

@@ -7,7 +7,7 @@ namespace Content.Server.NPC.Components
/// Contains data about this faction's relations with other factions. /// Contains data about this faction's relations with other factions.
/// </summary> /// </summary>
[Prototype("npcFaction")] [Prototype("npcFaction")]
public sealed class NpcFactionPrototype : IPrototype public sealed partial class NpcFactionPrototype : IPrototype
{ {
[ViewVariables] [ViewVariables]
[IdDataField] [IdDataField]

View File

@@ -6,7 +6,7 @@ namespace Content.Server.NPC.HTN;
/// Represents a network of multiple tasks. This gets expanded out to its relevant nodes. /// Represents a network of multiple tasks. This gets expanded out to its relevant nodes.
/// </summary> /// </summary>
[Prototype("htnCompound")] [Prototype("htnCompound")]
public sealed class HTNCompoundPrototype : IPrototype public sealed partial class HTNCompoundPrototype : IPrototype
{ {
[IdDataField] public string ID { get; } = string.Empty; [IdDataField] public string ID { get; } = string.Empty;

View File

@@ -3,7 +3,7 @@ using Robust.Shared.Prototypes;
namespace Content.Server.NPC.Queries.Curves; namespace Content.Server.NPC.Queries.Curves;
[Prototype("utilityCurvePreset")] [Prototype("utilityCurvePreset")]
public sealed class UtilityCurvePresetPrototype : IPrototype public sealed partial class UtilityCurvePresetPrototype : IPrototype
{ {
[IdDataField] public string ID { get; } = string.Empty; [IdDataField] public string ID { get; } = string.Empty;

View File

@@ -10,7 +10,7 @@ namespace Content.Server.NPC.Queries;
/// These results are then run through the considerations. /// These results are then run through the considerations.
/// </summary> /// </summary>
[Prototype("utilityQuery")] [Prototype("utilityQuery")]
public sealed class UtilityQueryPrototype : IPrototype public sealed partial class UtilityQueryPrototype : IPrototype
{ {
[IdDataField] [IdDataField]
public string ID { get; private set; } = default!; public string ID { get; private set; } = default!;

View File

@@ -4,7 +4,7 @@ using Robust.Shared.Utility;
namespace Content.Server.Salvage; namespace Content.Server.Salvage;
[Prototype("salvageMap")] [Prototype("salvageMap")]
public sealed class SalvageMapPrototype : IPrototype public sealed partial class SalvageMapPrototype : IPrototype
{ {
[ViewVariables] [IdDataField] public string ID { get; } = default!; [ViewVariables] [IdDataField] public string ID { get; } = default!;

View File

@@ -4,7 +4,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy
namespace Content.Server.Speech.Components namespace Content.Server.Speech.Components
{ {
[Prototype("accent")] [Prototype("accent")]
public sealed class ReplacementAccentPrototype : IPrototype public sealed partial class ReplacementAccentPrototype : IPrototype
{ {
[ViewVariables] [ViewVariables]
[IdDataField] [IdDataField]

View File

@@ -1,5 +1,4 @@
using Robust.Shared.Prototypes; using Robust.Shared.Prototypes;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.Array; using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.Array;
namespace Content.Server.Wires; namespace Content.Server.Wires;
@@ -12,7 +11,7 @@ namespace Content.Server.Wires;
/// WiresSystem as a functional wire set. /// WiresSystem as a functional wire set.
/// </summary> /// </summary>
[Prototype("wireLayout")] [Prototype("wireLayout")]
public sealed class WireLayoutPrototype : IPrototype, IInheritingPrototype public sealed partial class WireLayoutPrototype : IPrototype, IInheritingPrototype
{ {
[IdDataField] [IdDataField]
public string ID { get; private set; } = default!; public string ID { get; private set; } = default!;

View File

@@ -10,7 +10,7 @@ namespace Content.Server.Worldgen.Prototypes;
/// of noise channels at that location. /// of noise channels at that location.
/// </summary> /// </summary>
[Prototype("spaceBiome")] [Prototype("spaceBiome")]
public sealed class BiomePrototype : IPrototype, IInheritingPrototype public sealed partial class BiomePrototype : IPrototype, IInheritingPrototype
{ {
/// <inheritdoc /> /// <inheritdoc />
[ParentDataField(typeof(AbstractPrototypeIdArraySerializer<EntityPrototype>))] [ParentDataField(typeof(AbstractPrototypeIdArraySerializer<EntityPrototype>))]

View File

@@ -8,7 +8,7 @@ namespace Content.Server.Worldgen.Prototypes;
/// The components included are applied to the map that world generation is configured on. /// The components included are applied to the map that world generation is configured on.
/// </summary> /// </summary>
[Prototype("worldgenConfig")] [Prototype("worldgenConfig")]
public sealed class WorldgenConfigPrototype : IPrototype public sealed partial class WorldgenConfigPrototype : IPrototype
{ {
/// <inheritdoc /> /// <inheritdoc />
[IdDataField] [IdDataField]

View File

@@ -9,7 +9,7 @@ namespace Content.Shared.Access;
/// Used by <see cref="AccessComponent"/> to avoid boilerplate. /// Used by <see cref="AccessComponent"/> to avoid boilerplate.
/// </summary> /// </summary>
[Prototype("accessGroup")] [Prototype("accessGroup")]
public sealed class AccessGroupPrototype : IPrototype public sealed partial class AccessGroupPrototype : IPrototype
{ {
[IdDataField] [IdDataField]
public string ID { get; private set; } = default!; public string ID { get; private set; } = default!;

View File

@@ -6,7 +6,7 @@ namespace Content.Shared.Access
/// Defines a single access level that can be stored on ID cards and checked for. /// Defines a single access level that can be stored on ID cards and checked for.
/// </summary> /// </summary>
[Prototype("accessLevel")] [Prototype("accessLevel")]
public sealed class AccessLevelPrototype : IPrototype public sealed partial class AccessLevelPrototype : IPrototype
{ {
[ViewVariables] [ViewVariables]
[IdDataField] [IdDataField]

View File

@@ -8,7 +8,7 @@ namespace Content.Shared.Alert
/// An alert popup with associated icon, tooltip, and other data. /// An alert popup with associated icon, tooltip, and other data.
/// </summary> /// </summary>
[Prototype("alert")] [Prototype("alert")]
public sealed class AlertPrototype : IPrototype, ISerializationHooks public sealed partial class AlertPrototype : IPrototype, ISerializationHooks
{ {
[ViewVariables] [ViewVariables]
string IPrototype.ID => AlertType.ToString(); string IPrototype.ID => AlertType.ToString();

View File

@@ -5,7 +5,7 @@ namespace Content.Shared.Atmos.Monitor;
[Prototype("alarmThreshold")] [Prototype("alarmThreshold")]
public sealed class AtmosAlarmThresholdPrototype : IPrototype public sealed partial class AtmosAlarmThresholdPrototype : IPrototype
{ {
[IdDataField] [IdDataField]
public string ID { get; private set; } = default!; public string ID { get; private set; } = default!;

View File

@@ -5,7 +5,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy
namespace Content.Shared.Atmos.Prototypes namespace Content.Shared.Atmos.Prototypes
{ {
[Prototype("gas")] [Prototype("gas")]
public sealed class GasPrototype : IPrototype public sealed partial class GasPrototype : IPrototype
{ {
[DataField("name")] public string Name { get; set; } = ""; [DataField("name")] public string Name { get; set; } = "";

View File

@@ -9,7 +9,7 @@ namespace Content.Shared.Audio;
/// Attaches a rules prototype to sound files to play ambience. /// Attaches a rules prototype to sound files to play ambience.
/// </summary> /// </summary>
[Prototype("ambientMusic")] [Prototype("ambientMusic")]
public sealed class AmbientMusicPrototype : IPrototype public sealed partial class AmbientMusicPrototype : IPrototype
{ {
[IdDataField] public string ID { get; } = string.Empty; [IdDataField] public string ID { get; } = string.Empty;

View File

@@ -3,7 +3,7 @@ using Robust.Shared.Prototypes;
namespace Content.Shared.BarSign namespace Content.Shared.BarSign
{ {
[Prototype("barSign")] [Prototype("barSign")]
public sealed class BarSignPrototype : IPrototype public sealed partial class BarSignPrototype : IPrototype
{ {
[ViewVariables] [ViewVariables]
[IdDataField] [IdDataField]

View File

@@ -3,7 +3,7 @@ using Robust.Shared.Prototypes;
namespace Content.Shared.Body.Prototypes; namespace Content.Shared.Body.Prototypes;
[Prototype("body")] [Prototype("body")]
public sealed class BodyPrototype : IPrototype public sealed partial class BodyPrototype : IPrototype
{ {
[IdDataField] public string ID { get; } = default!; [IdDataField] public string ID { get; } = default!;

View File

@@ -3,7 +3,7 @@
namespace Content.Shared.Body.Prototypes namespace Content.Shared.Body.Prototypes
{ {
[Prototype("metabolismGroup")] [Prototype("metabolismGroup")]
public sealed class MetabolismGroupPrototype : IPrototype public sealed partial class MetabolismGroupPrototype : IPrototype
{ {
[IdDataField] [IdDataField]
public string ID { get; private set; } = default!; public string ID { get; private set; } = default!;

View File

@@ -3,7 +3,7 @@
namespace Content.Shared.Body.Prototypes namespace Content.Shared.Body.Prototypes
{ {
[Prototype("metabolizerType")] [Prototype("metabolizerType")]
public sealed class MetabolizerTypePrototype : IPrototype public sealed partial class MetabolizerTypePrototype : IPrototype
{ {
[IdDataField] [IdDataField]
public string ID { get; private set; } = default!; public string ID { get; private set; } = default!;

View File

@@ -10,7 +10,7 @@ namespace Content.Shared.Cargo.Prototypes;
/// to receive a monetary reward. /// to receive a monetary reward.
/// </summary> /// </summary>
[Prototype("cargoBounty"), Serializable, NetSerializable] [Prototype("cargoBounty"), Serializable, NetSerializable]
public sealed class CargoBountyPrototype : IPrototype public sealed partial class CargoBountyPrototype : IPrototype
{ {
/// <inheritdoc/> /// <inheritdoc/>
[IdDataField] [IdDataField]

View File

@@ -1,12 +1,11 @@
using Robust.Shared.Prototypes; using Robust.Shared.Prototypes;
using Robust.Shared.Serialization;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype; using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
using Robust.Shared.Utility; using Robust.Shared.Utility;
namespace Content.Shared.Cargo.Prototypes namespace Content.Shared.Cargo.Prototypes
{ {
[Prototype("cargoProduct")] [Prototype("cargoProduct")]
public sealed class CargoProductPrototype : IPrototype public sealed partial class CargoProductPrototype : IPrototype
{ {
[DataField("name")] private string _name = string.Empty; [DataField("name")] private string _name = string.Empty;

View File

@@ -1,10 +1,10 @@
namespace Content.Shared.Chat.Prototypes;
using Robust.Shared.Prototypes; using Robust.Shared.Prototypes;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype; using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
namespace Content.Shared.Chat.Prototypes;
[Prototype("autoEmote")] [Prototype("autoEmote")]
public sealed class AutoEmotePrototype : IPrototype public sealed partial class AutoEmotePrototype : IPrototype
{ {
/// <inheritdoc/> /// <inheritdoc/>
[IdDataField] [IdDataField]

View File

@@ -8,7 +8,7 @@ namespace Content.Shared.Chat.Prototypes;
/// Entities can activate emotes by chat input or code. /// Entities can activate emotes by chat input or code.
/// </summary> /// </summary>
[Prototype("emote")] [Prototype("emote")]
public sealed class EmotePrototype : IPrototype public sealed partial class EmotePrototype : IPrototype
{ {
[IdDataField] [IdDataField]
public string ID { get; private set; } = default!; public string ID { get; private set; } = default!;

View File

@@ -9,7 +9,7 @@ namespace Content.Shared.Chat.Prototypes;
/// Different entities may use different sounds collections. /// Different entities may use different sounds collections.
/// </summary> /// </summary>
[Prototype("emoteSounds")] [Prototype("emoteSounds")]
public sealed class EmoteSoundsPrototype : IPrototype public sealed partial class EmoteSoundsPrototype : IPrototype
{ {
[IdDataField] [IdDataField]
public string ID { get; private set; } = default!; public string ID { get; private set; } = default!;

View File

@@ -8,7 +8,7 @@ namespace Content.Shared.Chat.TypingIndicator;
/// Prototype to store chat typing indicator visuals. /// Prototype to store chat typing indicator visuals.
/// </summary> /// </summary>
[Prototype("typingIndicator")] [Prototype("typingIndicator")]
public sealed class TypingIndicatorPrototype : IPrototype public sealed partial class TypingIndicatorPrototype : IPrototype
{ {
[IdDataField] [IdDataField]
public string ID { get; private set; } = default!; public string ID { get; private set; } = default!;

View File

@@ -12,7 +12,7 @@ namespace Content.Shared.Chemistry.Dispenser
/// machines define their inventory. /// machines define their inventory.
/// </summary> /// </summary>
[Serializable, NetSerializable, Prototype("reagentDispenserInventory")] [Serializable, NetSerializable, Prototype("reagentDispenserInventory")]
public sealed class ReagentDispenserInventoryPrototype : IPrototype public sealed partial class ReagentDispenserInventoryPrototype : IPrototype
{ {
// TODO use ReagentId // TODO use ReagentId
[DataField("inventory", customTypeSerializer: typeof(PrototypeIdListSerializer<ReagentPrototype>))] [DataField("inventory", customTypeSerializer: typeof(PrototypeIdListSerializer<ReagentPrototype>))]

View File

@@ -11,7 +11,7 @@ namespace Content.Shared.Chemistry.Reaction
/// Prototype for chemical reaction definitions /// Prototype for chemical reaction definitions
/// </summary> /// </summary>
[Prototype("reaction")] [Prototype("reaction")]
public sealed class ReactionPrototype : IPrototype, IComparable<ReactionPrototype> public sealed partial class ReactionPrototype : IPrototype, IComparable<ReactionPrototype>
{ {
[ViewVariables] [ViewVariables]
[IdDataField] [IdDataField]

View File

@@ -3,7 +3,7 @@
namespace Content.Shared.Chemistry.Reaction; namespace Content.Shared.Chemistry.Reaction;
[Prototype("reactiveGroup")] [Prototype("reactiveGroup")]
public sealed class ReactiveGroupPrototype : IPrototype public sealed partial class ReactiveGroupPrototype : IPrototype
{ {
[IdDataField] [IdDataField]
public string ID { get; private set; } = default!; public string ID { get; private set; } = default!;

View File

@@ -30,7 +30,7 @@ public sealed partial class CommsHackerComponent : Component
/// You wouldn't do that, right? /// You wouldn't do that, right?
/// </summary> /// </summary>
[Prototype("ninjaHackingThreat")] [Prototype("ninjaHackingThreat")]
public sealed class NinjaHackingThreatPrototype : IPrototype public sealed partial class NinjaHackingThreatPrototype : IPrototype
{ {
[IdDataField] [IdDataField]
public string ID { get; private set; } = default!; public string ID { get; private set; } = default!;

View File

@@ -6,7 +6,7 @@ using Robust.Shared.Serialization;
namespace Content.Shared.Construction.Prototypes namespace Content.Shared.Construction.Prototypes
{ {
[Prototype("constructionGraph")] [Prototype("constructionGraph")]
public sealed class ConstructionGraphPrototype : IPrototype, ISerializationHooks public sealed partial class ConstructionGraphPrototype : IPrototype, ISerializationHooks
{ {
private readonly Dictionary<string, ConstructionGraphNode> _nodes = new(); private readonly Dictionary<string, ConstructionGraphNode> _nodes = new();
private readonly Dictionary<(string, string), ConstructionGraphNode[]?> _paths = new(); private readonly Dictionary<(string, string), ConstructionGraphNode[]?> _paths = new();

View File

@@ -6,7 +6,7 @@ using Robust.Shared.Utility;
namespace Content.Shared.Construction.Prototypes; namespace Content.Shared.Construction.Prototypes;
[Prototype("construction")] [Prototype("construction")]
public sealed class ConstructionPrototype : IPrototype public sealed partial class ConstructionPrototype : IPrototype
{ {
[DataField("conditions")] private List<IConstructionCondition> _conditions = new(); [DataField("conditions")] private List<IConstructionCondition> _conditions = new();

View File

@@ -8,7 +8,7 @@ namespace Content.Shared.Construction.Prototypes;
/// different types of machine parts. /// different types of machine parts.
/// </summary> /// </summary>
[Prototype("machinePart")] [Prototype("machinePart")]
public sealed class MachinePartPrototype : IPrototype public sealed partial class MachinePartPrototype : IPrototype
{ {
/// <inheritdoc/> /// <inheritdoc/>
[IdDataField] [IdDataField]

View File

@@ -14,7 +14,7 @@ namespace Content.Shared.Damage.Prototypes
/// </remarks> /// </remarks>
[Prototype("damageContainer")] [Prototype("damageContainer")]
[Serializable, NetSerializable] [Serializable, NetSerializable]
public sealed class DamageContainerPrototype : IPrototype public sealed partial class DamageContainerPrototype : IPrototype
{ {
[ViewVariables] [ViewVariables]
[IdDataField] [IdDataField]

View File

@@ -13,7 +13,7 @@ namespace Content.Shared.Damage.Prototypes
/// </remarks> /// </remarks>
[Prototype("damageGroup", 2)] [Prototype("damageGroup", 2)]
[Serializable, NetSerializable] [Serializable, NetSerializable]
public sealed class DamageGroupPrototype : IPrototype public sealed partial class DamageGroupPrototype : IPrototype
{ {
[IdDataField] public string ID { get; } = default!; [IdDataField] public string ID { get; } = default!;

View File

@@ -6,7 +6,7 @@ namespace Content.Shared.Damage.Prototypes
/// A single damage type. These types are grouped together in <see cref="DamageGroupPrototype"/>s. /// A single damage type. These types are grouped together in <see cref="DamageGroupPrototype"/>s.
/// </summary> /// </summary>
[Prototype("damageType")] [Prototype("damageType")]
public sealed class DamageTypePrototype : IPrototype public sealed partial class DamageTypePrototype : IPrototype
{ {
[IdDataField] [IdDataField]
public string ID { get; private set; } = default!; public string ID { get; private set; } = default!;

View File

@@ -6,7 +6,7 @@ namespace Content.Shared.Damage.Prototypes;
/// Prototype for examinable damage messages. /// Prototype for examinable damage messages.
/// </summary> /// </summary>
[Prototype("examinableDamage")] [Prototype("examinableDamage")]
public sealed class ExaminableDamagePrototype : IPrototype public sealed partial class ExaminableDamagePrototype : IPrototype
{ {
[IdDataField] [IdDataField]
public string ID { get; private set; } = default!; public string ID { get; private set; } = default!;

View File

@@ -3,7 +3,7 @@
namespace Content.Shared.Dataset namespace Content.Shared.Dataset
{ {
[Prototype("dataset")] [Prototype("dataset")]
public sealed class DatasetPrototype : IPrototype public sealed partial class DatasetPrototype : IPrototype
{ {
[ViewVariables] [ViewVariables]
[IdDataField] [IdDataField]

View File

@@ -3,7 +3,7 @@
namespace Content.Shared.Decals; namespace Content.Shared.Decals;
[Prototype("palette")] [Prototype("palette")]
public sealed class ColorPalettePrototype : IPrototype public sealed partial class ColorPalettePrototype : IPrototype
{ {
[IdDataField] public string ID { get; } = null!; [IdDataField] public string ID { get; } = null!;
[DataField("name")] public string Name { get; private set; } = null!; [DataField("name")] public string Name { get; private set; } = null!;

View File

@@ -4,7 +4,7 @@ using Robust.Shared.Utility;
namespace Content.Shared.Decals namespace Content.Shared.Decals
{ {
[Prototype("decal")] [Prototype("decal")]
public sealed class DecalPrototype : IPrototype public sealed partial class DecalPrototype : IPrototype
{ {
[IdDataField] public string ID { get; } = null!; [IdDataField] public string ID { get; } = null!;
[DataField("sprite")] public SpriteSpecifier Sprite { get; private set; } = SpriteSpecifier.Invalid; [DataField("sprite")] public SpriteSpecifier Sprite { get; private set; } = SpriteSpecifier.Invalid;

View File

@@ -8,7 +8,7 @@ namespace Content.Shared.DeviceNetwork;
/// </summary> /// </summary>
[Prototype("deviceFrequency")] [Prototype("deviceFrequency")]
[Serializable, NetSerializable] [Serializable, NetSerializable]
public sealed class DeviceFrequencyPrototype : IPrototype public sealed partial class DeviceFrequencyPrototype : IPrototype
{ {
[IdDataField] [IdDataField]
public string ID { get; private set; } = default!; public string ID { get; private set; } = default!;

View File

@@ -5,7 +5,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy
namespace Content.Shared.EntityList namespace Content.Shared.EntityList
{ {
[Prototype("entityList")] [Prototype("entityList")]
public sealed class EntityListPrototype : IPrototype public sealed partial class EntityListPrototype : IPrototype
{ {
[ViewVariables] [ViewVariables]
[IdDataField] [IdDataField]

View File

@@ -6,7 +6,7 @@ using Robust.Shared.Random;
namespace Content.Shared.EntityList; namespace Content.Shared.EntityList;
[Prototype("entityLootTable")] [Prototype("entityLootTable")]
public sealed class EntityLootTablePrototype : IPrototype public sealed partial class EntityLootTablePrototype : IPrototype
{ {
[IdDataField] [IdDataField]
public string ID { get; private set; } = default!; public string ID { get; private set; } = default!;

View File

@@ -14,7 +14,7 @@ namespace Content.Shared.Explosion;
/// that map of airtight entities. This could be done, but is just not yet implemented. /// that map of airtight entities. This could be done, but is just not yet implemented.
/// </remarks> /// </remarks>
[Prototype("explosion")] [Prototype("explosion")]
public sealed class ExplosionPrototype : IPrototype public sealed partial class ExplosionPrototype : IPrototype
{ {
[IdDataField] [IdDataField]
public string ID { get; private set; } = default!; public string ID { get; private set; } = default!;

View File

@@ -3,7 +3,7 @@
namespace Content.Shared.HUD namespace Content.Shared.HUD
{ {
[Prototype("hudTheme")] [Prototype("hudTheme")]
public sealed class HudThemePrototype : IPrototype public sealed partial class HudThemePrototype : IPrototype
{ {
[DataField("name", required: true)] [DataField("name", required: true)]
public string Name { get; private set; } = string.Empty; public string Name { get; private set; } = string.Empty;

View File

@@ -35,7 +35,7 @@ public sealed partial class MarkingPoints
} }
[Prototype("markingPoints")] [Prototype("markingPoints")]
public sealed class MarkingPointsPrototype : IPrototype public sealed partial class MarkingPointsPrototype : IPrototype
{ {
[IdDataField] public string ID { get; } = default!; [IdDataField] public string ID { get; } = default!;

View File

@@ -4,7 +4,7 @@ using Robust.Shared.Utility;
namespace Content.Shared.Humanoid.Markings namespace Content.Shared.Humanoid.Markings
{ {
[Prototype("marking")] [Prototype("marking")]
public sealed class MarkingPrototype : IPrototype public sealed partial class MarkingPrototype : IPrototype
{ {
[IdDataField] [IdDataField]
public string ID { get; private set; } = "uwu"; public string ID { get; private set; } = "uwu";

View File

@@ -4,7 +4,7 @@ using Robust.Shared.Prototypes;
namespace Content.Shared.Humanoid.Prototypes; namespace Content.Shared.Humanoid.Prototypes;
[Prototype("humanoidProfile")] [Prototype("humanoidProfile")]
public sealed class HumanoidProfilePrototype : IPrototype public sealed partial class HumanoidProfilePrototype : IPrototype
{ {
[IdDataField] [IdDataField]
public string ID { get; private set; } = default!; public string ID { get; private set; } = default!;

View File

@@ -1,4 +1,3 @@
using Content.Shared.Humanoid.Markings;
using Robust.Shared.Prototypes; using Robust.Shared.Prototypes;
using Robust.Shared.Utility; using Robust.Shared.Utility;
@@ -9,7 +8,7 @@ namespace Content.Shared.Humanoid.Prototypes;
/// or settings per layer) /// or settings per layer)
/// </summary> /// </summary>
[Prototype("speciesBaseSprites")] [Prototype("speciesBaseSprites")]
public sealed class HumanoidSpeciesBaseSpritesPrototype : IPrototype public sealed partial class HumanoidSpeciesBaseSpritesPrototype : IPrototype
{ {
[IdDataField] [IdDataField]
public string ID { get; private set; } = default!; 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). /// that sprite (or at least, the layer this sprite is on).
/// </summary> /// </summary>
[Prototype("humanoidBaseSprite")] [Prototype("humanoidBaseSprite")]
public sealed class HumanoidSpeciesSpriteLayer : IPrototype public sealed partial class HumanoidSpeciesSpriteLayer : IPrototype
{ {
[IdDataField] [IdDataField]
public string ID { get; private set; } = default!; public string ID { get; private set; } = default!;

View File

@@ -7,7 +7,7 @@ namespace Content.Shared.Humanoid.Prototypes;
/// This is what is used to change a humanoid spawned by RandomHumanoidSystem in Content.Server. /// This is what is used to change a humanoid spawned by RandomHumanoidSystem in Content.Server.
/// </summary> /// </summary>
[Prototype("randomHumanoidSettings")] [Prototype("randomHumanoidSettings")]
public sealed class RandomHumanoidSettingsPrototype : IPrototype, IInheritingPrototype public sealed partial class RandomHumanoidSettingsPrototype : IPrototype, IInheritingPrototype
{ {
[IdDataField] public string ID { get; } = default!; [IdDataField] public string ID { get; } = default!;

View File

@@ -4,7 +4,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy
namespace Content.Shared.Humanoid.Prototypes; namespace Content.Shared.Humanoid.Prototypes;
[Prototype("species")] [Prototype("species")]
public sealed class SpeciesPrototype : IPrototype public sealed partial class SpeciesPrototype : IPrototype
{ {
/// <summary> /// <summary>
/// Prototype ID of the species. /// Prototype ID of the species.

View File

@@ -5,7 +5,7 @@ using Robust.Shared.Prototypes;
namespace Content.Shared.Inventory; namespace Content.Shared.Inventory;
[Prototype("inventoryTemplate")] [Prototype("inventoryTemplate")]
public sealed class InventoryTemplatePrototype : IPrototype public sealed partial class InventoryTemplatePrototype : IPrototype
{ {
[IdDataField] public string ID { get; } = string.Empty; [IdDataField] public string ID { get; } = string.Empty;

View File

@@ -10,7 +10,7 @@ namespace Content.Shared.Kitchen
/// A recipe for space microwaves. /// A recipe for space microwaves.
/// </summary> /// </summary>
[Prototype("microwaveMealRecipe")] [Prototype("microwaveMealRecipe")]
public sealed class FoodRecipePrototype : IPrototype public sealed partial class FoodRecipePrototype : IPrototype
{ {
[ViewVariables] [ViewVariables]
[IdDataField] [IdDataField]

View File

@@ -10,7 +10,7 @@ using Robust.Shared.Utility;
namespace Content.Shared.Maps namespace Content.Shared.Maps
{ {
[Prototype("tile")] [Prototype("tile")]
public sealed class ContentTileDefinition : IPrototype, IInheritingPrototype, ITileDefinition public sealed partial class ContentTileDefinition : IPrototype, IInheritingPrototype, ITileDefinition
{ {
public const string SpaceID = "Space"; public const string SpaceID = "Space";

View File

@@ -9,7 +9,7 @@ namespace Content.Shared.Materials
/// Properties should be intrinsic (or at least as much is necessary for game purposes). /// Properties should be intrinsic (or at least as much is necessary for game purposes).
/// </summary> /// </summary>
[Prototype("material")] [Prototype("material")]
public sealed class MaterialPrototype : IPrototype, IInheritingPrototype public sealed partial class MaterialPrototype : IPrototype, IInheritingPrototype
{ {
[ViewVariables] [ViewVariables]
[ParentDataField(typeof(AbstractPrototypeIdArraySerializer<MaterialPrototype>))] [ParentDataField(typeof(AbstractPrototypeIdArraySerializer<MaterialPrototype>))]

View File

@@ -7,7 +7,7 @@ namespace Content.Shared.Mining;
/// This is a prototype for defining ores that generate in rock /// This is a prototype for defining ores that generate in rock
/// </summary> /// </summary>
[Prototype("ore")] [Prototype("ore")]
public sealed class OrePrototype : IPrototype public sealed partial class OrePrototype : IPrototype
{ {
/// <inheritdoc/> /// <inheritdoc/>
[IdDataField] [IdDataField]

View File

@@ -3,7 +3,7 @@
namespace Content.Shared.NameIdentifier; namespace Content.Shared.NameIdentifier;
[Prototype("nameIdentifierGroup")] [Prototype("nameIdentifierGroup")]
public sealed class NameIdentifierGroupPrototype : IPrototype public sealed partial class NameIdentifierGroupPrototype : IPrototype
{ {
[IdDataField] [IdDataField]
public string ID { get; private set; } = default!; public string ID { get; private set; } = default!;

View File

@@ -3,7 +3,7 @@ using Robust.Shared.Prototypes;
namespace Content.Shared.Nutrition; namespace Content.Shared.Nutrition;
[Prototype("flavor")] [Prototype("flavor")]
public sealed class FlavorPrototype : IPrototype public sealed partial class FlavorPrototype : IPrototype
{ {
[IdDataField] [IdDataField]
public string ID { get; private set; } = default!; public string ID { get; private set; } = default!;

View File

@@ -1,5 +1,4 @@
using Content.Shared.Parallax.Biomes.Layers; using Content.Shared.Parallax.Biomes.Layers;
using Robust.Shared.Noise;
using Robust.Shared.Prototypes; using Robust.Shared.Prototypes;
namespace Content.Shared.Parallax.Biomes; 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 <see cref="BiomeComponent"/> /// A preset group of biome layers to be used for a <see cref="BiomeComponent"/>
/// </summary> /// </summary>
[Prototype("biomeTemplate")] [Prototype("biomeTemplate")]
public sealed class BiomeTemplatePrototype : IPrototype public sealed partial class BiomeTemplatePrototype : IPrototype
{ {
[IdDataField] public string ID { get; } = default!; [IdDataField] public string ID { get; } = default!;

View File

@@ -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. /// Given to a role to specify its ID for role-timer tracking purposes. That's it.
/// </summary> /// </summary>
[Prototype("playTimeTracker")] [Prototype("playTimeTracker")]
public sealed class PlayTimeTrackerPrototype : IPrototype public sealed partial class PlayTimeTrackerPrototype : IPrototype
{ {
[IdDataField] public string ID { get; } = default!; [IdDataField] public string ID { get; } = default!;
} }

View File

@@ -5,7 +5,7 @@ using Robust.Shared.Prototypes;
namespace Content.Shared.Procedural; namespace Content.Shared.Procedural;
[Prototype("dungeonConfig")] [Prototype("dungeonConfig")]
public sealed class DungeonConfigPrototype : IPrototype public sealed partial class DungeonConfigPrototype : IPrototype
{ {
[IdDataField] [IdDataField]
public string ID { get; private set; } = default!; public string ID { get; private set; } = default!;

View File

@@ -3,7 +3,7 @@ using Robust.Shared.Prototypes;
namespace Content.Shared.Procedural; namespace Content.Shared.Procedural;
[Prototype("dungeonPreset")] [Prototype("dungeonPreset")]
public sealed class DungeonPresetPrototype : IPrototype public sealed partial class DungeonPresetPrototype : IPrototype
{ {
[IdDataField] public string ID { get; } = default!; [IdDataField] public string ID { get; } = default!;

View File

@@ -3,7 +3,7 @@ using Robust.Shared.Prototypes;
namespace Content.Shared.Procedural; namespace Content.Shared.Procedural;
[Prototype("dungeonRoomPack")] [Prototype("dungeonRoomPack")]
public sealed class DungeonRoomPackPrototype : IPrototype public sealed partial class DungeonRoomPackPrototype : IPrototype
{ {
[IdDataField] [IdDataField]
public string ID { get; private set; } = string.Empty; public string ID { get; private set; } = string.Empty;

View File

@@ -6,7 +6,7 @@ using Robust.Shared.Utility;
namespace Content.Shared.Procedural; namespace Content.Shared.Procedural;
[Prototype("dungeonRoom")] [Prototype("dungeonRoom")]
public sealed class DungeonRoomPrototype : IPrototype public sealed partial class DungeonRoomPrototype : IPrototype
{ {
[IdDataField] public string ID { get; } = string.Empty; [IdDataField] public string ID { get; } = string.Empty;

View File

@@ -6,7 +6,7 @@ namespace Content.Shared.Procedural.Loot;
/// Spawned inside of a salvage mission. /// Spawned inside of a salvage mission.
/// </summary> /// </summary>
[Prototype("salvageLoot")] [Prototype("salvageLoot")]
public sealed class SalvageLootPrototype : IPrototype public sealed partial class SalvageLootPrototype : IPrototype
{ {
[IdDataField] public string ID { get; } = default!; [IdDataField] public string ID { get; } = default!;

View File

@@ -3,7 +3,7 @@ using Robust.Shared.Prototypes;
namespace Content.Shared.Procedural; namespace Content.Shared.Procedural;
[Prototype("salvageDifficulty")] [Prototype("salvageDifficulty")]
public sealed class SalvageDifficultyPrototype : IPrototype public sealed partial class SalvageDifficultyPrototype : IPrototype
{ {
[IdDataField] public string ID { get; } = string.Empty; [IdDataField] public string ID { get; } = string.Empty;

View File

@@ -3,7 +3,7 @@ using Robust.Shared.Prototypes;
namespace Content.Shared.Radio; namespace Content.Shared.Radio;
[Prototype("radioChannel")] [Prototype("radioChannel")]
public sealed class RadioChannelPrototype : IPrototype public sealed partial class RadioChannelPrototype : IPrototype
{ {
/// <summary> /// <summary>
/// Human-readable name for the channel. /// Human-readable name for the channel.
@@ -30,7 +30,7 @@ public sealed class RadioChannelPrototype : IPrototype
public string ID { get; } = default!; public string ID { get; } = default!;
/// <summary> /// <summary>
/// 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 /// and messages can be sent across different stations
/// </summary> /// </summary>
[DataField("longRange"), ViewVariables] [DataField("longRange"), ViewVariables]

View File

@@ -12,7 +12,7 @@ namespace Content.Shared.Random;
/// e.g. "choose maintenance audio if 90% of tiles nearby are maintenance tiles" /// e.g. "choose maintenance audio if 90% of tiles nearby are maintenance tiles"
/// </summary> /// </summary>
[Prototype("rules")] [Prototype("rules")]
public sealed class RulesPrototype : IPrototype public sealed partial class RulesPrototype : IPrototype
{ {
[IdDataField] public string ID { get; } = string.Empty; [IdDataField] public string ID { get; } = string.Empty;

View File

@@ -6,7 +6,7 @@ namespace Content.Shared.Random;
/// Random weighting dataset for solutions, able to specify reagents quantity. /// Random weighting dataset for solutions, able to specify reagents quantity.
/// </summary> /// </summary>
[Prototype("weightedRandomFillSolution")] [Prototype("weightedRandomFillSolution")]
public sealed class WeightedRandomFillSolutionPrototype : IPrototype public sealed partial class WeightedRandomFillSolutionPrototype : IPrototype
{ {
[IdDataField] public string ID { get; } = default!; [IdDataField] public string ID { get; } = default!;

View File

@@ -8,7 +8,7 @@ using Robust.Shared.Utility;
namespace Content.Shared.Research.Prototypes namespace Content.Shared.Research.Prototypes
{ {
[NetSerializable, Serializable, Prototype("latheRecipe")] [NetSerializable, Serializable, Prototype("latheRecipe")]
public sealed class LatheRecipePrototype : IPrototype public sealed partial class LatheRecipePrototype : IPrototype
{ {
[ViewVariables] [ViewVariables]
[IdDataField] [IdDataField]

View File

@@ -8,7 +8,7 @@ namespace Content.Shared.Research.Prototypes;
/// that governs how <see cref="TechnologyPrototype"/>s are unlocked. /// that governs how <see cref="TechnologyPrototype"/>s are unlocked.
/// </summary> /// </summary>
[Prototype("techDiscipline")] [Prototype("techDiscipline")]
public sealed class TechDisciplinePrototype : IPrototype public sealed partial class TechDisciplinePrototype : IPrototype
{ {
/// <inheritdoc/> /// <inheritdoc/>
[IdDataField] [IdDataField]

View File

@@ -7,7 +7,7 @@ namespace Content.Shared.Research.Prototypes;
/// This is a prototype for a technology that can be unlocked. /// This is a prototype for a technology that can be unlocked.
/// </summary> /// </summary>
[Prototype("technology")] [Prototype("technology")]
public sealed class TechnologyPrototype : IPrototype public sealed partial class TechnologyPrototype : IPrototype
{ {
/// <inheritdoc/> /// <inheritdoc/>
[IdDataField] [IdDataField]

View File

@@ -8,7 +8,7 @@ namespace Content.Shared.Roles;
/// </summary> /// </summary>
[Prototype("antag")] [Prototype("antag")]
[Serializable, NetSerializable] [Serializable, NetSerializable]
public sealed class AntagPrototype : IPrototype public sealed partial class AntagPrototype : IPrototype
{ {
[ViewVariables] [ViewVariables]
[IdDataField] [IdDataField]

View File

@@ -1,11 +1,10 @@
using System.Linq;
using Robust.Shared.Prototypes; using Robust.Shared.Prototypes;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.List; using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.List;
namespace Content.Shared.Roles; namespace Content.Shared.Roles;
[Prototype("department")] [Prototype("department")]
public sealed class DepartmentPrototype : IPrototype public sealed partial class DepartmentPrototype : IPrototype
{ {
[IdDataField] public string ID { get; } = default!; [IdDataField] public string ID { get; } = default!;

View File

@@ -11,7 +11,7 @@ namespace Content.Shared.Roles
/// Describes information for a single job on the station. /// Describes information for a single job on the station.
/// </summary> /// </summary>
[Prototype("job")] [Prototype("job")]
public sealed class JobPrototype : IPrototype public sealed partial class JobPrototype : IPrototype
{ {
[ViewVariables] [ViewVariables]
[IdDataField] [IdDataField]

View File

@@ -4,7 +4,7 @@ using Robust.Shared.Prototypes;
namespace Content.Shared.Roles namespace Content.Shared.Roles
{ {
[Prototype("startingGear")] [Prototype("startingGear")]
public sealed class StartingGearPrototype : IPrototype public sealed partial class StartingGearPrototype : IPrototype
{ {
[DataField] [DataField]
public Dictionary<string, EntProtoId> Equipment = new(); public Dictionary<string, EntProtoId> Equipment = new();

View File

@@ -10,7 +10,7 @@ namespace Content.Shared.Salvage.Expeditions.Modifiers;
/// Which one is selected depends on the mission difficulty, different weightedRandoms are picked from. /// Which one is selected depends on the mission difficulty, different weightedRandoms are picked from.
/// </summary> /// </summary>
[Prototype("salvageAirMod")] [Prototype("salvageAirMod")]
public sealed class SalvageAirMod : IPrototype, IBiomeSpecificMod public sealed partial class SalvageAirMod : IPrototype, IBiomeSpecificMod
{ {
[IdDataField] [IdDataField]
public string ID { get; private set; } = default!; public string ID { get; private set; } = default!;

View File

@@ -8,7 +8,7 @@ namespace Content.Shared.Salvage.Expeditions.Modifiers;
/// Affects the biome to be used for salvage. /// Affects the biome to be used for salvage.
/// </summary> /// </summary>
[Prototype("salvageBiomeMod")] [Prototype("salvageBiomeMod")]
public sealed class SalvageBiomeModPrototype : IPrototype, ISalvageMod public sealed partial class SalvageBiomeModPrototype : IPrototype, ISalvageMod
{ {
[IdDataField] public string ID { get; } = default!; [IdDataField] public string ID { get; } = default!;

View File

@@ -6,7 +6,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy
namespace Content.Shared.Salvage.Expeditions.Modifiers; namespace Content.Shared.Salvage.Expeditions.Modifiers;
[Prototype("salvageDungeonMod")] [Prototype("salvageDungeonMod")]
public sealed class SalvageDungeonModPrototype : IPrototype, IBiomeSpecificMod public sealed partial class SalvageDungeonModPrototype : IPrototype, IBiomeSpecificMod
{ {
[IdDataField] public string ID { get; } = default!; [IdDataField] public string ID { get; } = default!;

View File

@@ -4,7 +4,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy
namespace Content.Shared.Salvage.Expeditions.Modifiers; namespace Content.Shared.Salvage.Expeditions.Modifiers;
[Prototype("salvageLightMod")] [Prototype("salvageLightMod")]
public sealed class SalvageLightMod : IPrototype, IBiomeSpecificMod public sealed partial class SalvageLightMod : IPrototype, IBiomeSpecificMod
{ {
[IdDataField] public string ID { get; } = default!; [IdDataField] public string ID { get; } = default!;

View File

@@ -6,7 +6,7 @@ namespace Content.Shared.Salvage.Expeditions.Modifiers;
/// Generic modifiers with no additional data /// Generic modifiers with no additional data
/// </summary> /// </summary>
[Prototype("salvageMod")] [Prototype("salvageMod")]
public sealed class SalvageMod : IPrototype, ISalvageMod public sealed partial class SalvageMod : IPrototype, ISalvageMod
{ {
[IdDataField] public string ID { get; } = default!; [IdDataField] public string ID { get; } = default!;

View File

@@ -1,11 +1,10 @@
using Robust.Shared.Prototypes; using Robust.Shared.Prototypes;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.List; using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.List;
namespace Content.Shared.Salvage.Expeditions.Modifiers; namespace Content.Shared.Salvage.Expeditions.Modifiers;
[Prototype("salvageTemperatureMod")] [Prototype("salvageTemperatureMod")]
public sealed class SalvageTemperatureMod : IPrototype, IBiomeSpecificMod public sealed partial class SalvageTemperatureMod : IPrototype, IBiomeSpecificMod
{ {
[IdDataField] public string ID { get; } = default!; [IdDataField] public string ID { get; } = default!;

View File

@@ -6,7 +6,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy
namespace Content.Shared.Salvage.Expeditions.Modifiers; namespace Content.Shared.Salvage.Expeditions.Modifiers;
[Prototype("salvageWeatherMod")] [Prototype("salvageWeatherMod")]
public sealed class SalvageWeatherMod : IPrototype, IBiomeSpecificMod public sealed partial class SalvageWeatherMod : IPrototype, IBiomeSpecificMod
{ {
[IdDataField] public string ID { get; } = default!; [IdDataField] public string ID { get; } = default!;

View File

@@ -1,11 +1,9 @@
using Content.Shared.Salvage.Expeditions.Modifiers;
using Robust.Shared.Prototypes; using Robust.Shared.Prototypes;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.Dictionary;
namespace Content.Shared.Salvage.Expeditions; namespace Content.Shared.Salvage.Expeditions;
[Prototype("salvageFaction")] [Prototype("salvageFaction")]
public sealed class SalvageFactionPrototype : IPrototype public sealed partial class SalvageFactionPrototype : IPrototype
{ {
[IdDataField] public string ID { get; } = default!; [IdDataField] public string ID { get; } = default!;

View File

@@ -4,7 +4,7 @@ using Robust.Shared.Prototypes;
namespace Content.Shared.Speech namespace Content.Shared.Speech
{ {
[Prototype("speechSounds")] [Prototype("speechSounds")]
public sealed class SpeechSoundsPrototype : IPrototype public sealed partial class SpeechSoundsPrototype : IPrototype
{ {
[ViewVariables] [ViewVariables]
[IdDataField] [IdDataField]

View File

@@ -1,5 +1,4 @@
using Robust.Shared.Prototypes; using Robust.Shared.Prototypes;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
namespace Content.Shared.Speech; namespace Content.Shared.Speech;
@@ -8,7 +7,7 @@ namespace Content.Shared.Speech;
/// on punctuation or by directly overriding the prototype. /// on punctuation or by directly overriding the prototype.
/// </summary> /// </summary>
[Prototype("speechVerb")] [Prototype("speechVerb")]
public sealed class SpeechVerbPrototype : IPrototype public sealed partial class SpeechVerbPrototype : IPrototype
{ {
[IdDataField] public string ID { get; } = default!; [IdDataField] public string ID { get; } = default!;

View File

@@ -3,7 +3,7 @@ using Robust.Shared.Prototypes;
namespace Content.Shared.SprayPainter.Prototypes; namespace Content.Shared.SprayPainter.Prototypes;
[Prototype("AirlockGroup")] [Prototype("AirlockGroup")]
public sealed class AirlockGroupPrototype : IPrototype public sealed partial class AirlockGroupPrototype : IPrototype
{ {
[IdDataField] [IdDataField]
public string ID { get; private set; } = default!; public string ID { get; private set; } = default!;

View File

@@ -6,7 +6,7 @@ namespace Content.Shared.Spreader;
/// Adds this node group to <see cref="Content.Server.Spreader.SpreaderSystem"/> for tick updates. /// Adds this node group to <see cref="Content.Server.Spreader.SpreaderSystem"/> for tick updates.
/// </summary> /// </summary>
[Prototype("edgeSpreader")] [Prototype("edgeSpreader")]
public sealed class EdgeSpreaderPrototype : IPrototype public sealed partial class EdgeSpreaderPrototype : IPrototype
{ {
[IdDataField] public string ID { get; } = string.Empty; [IdDataField] public string ID { get; } = string.Empty;
[DataField(required:true)] public int UpdatesPerSecond; [DataField(required:true)] public int UpdatesPerSecond;

View File

@@ -5,7 +5,7 @@ using Robust.Shared.Utility;
namespace Content.Shared.Stacks; namespace Content.Shared.Stacks;
[Prototype("stack")] [Prototype("stack")]
public sealed class StackPrototype : IPrototype public sealed partial class StackPrototype : IPrototype
{ {
[ViewVariables] [ViewVariables]
[IdDataField] [IdDataField]

View File

@@ -4,7 +4,7 @@ using Robust.Shared.Prototypes;
namespace Content.Shared.StatusEffect namespace Content.Shared.StatusEffect
{ {
[Prototype("statusEffect")] [Prototype("statusEffect")]
public sealed class StatusEffectPrototype : IPrototype public sealed partial class StatusEffectPrototype : IPrototype
{ {
[IdDataField] [IdDataField]
public string ID { get; private set; } = default!; public string ID { get; private set; } = default!;

View File

@@ -8,7 +8,7 @@ namespace Content.Shared.Tag
/// gets saved in TagComponent. /// gets saved in TagComponent.
/// </summary> /// </summary>
[Prototype("Tag")] [Prototype("Tag")]
public sealed class TagPrototype : IPrototype public sealed partial class TagPrototype : IPrototype
{ {
[ViewVariables] [ViewVariables]
[IdDataField] [IdDataField]

Some files were not shown because too many files have changed in this diff Show More