Make remaining IPrototypes partial (#27157)
This commit is contained in:
@@ -42,7 +42,7 @@ public class GuideEntry
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Prototype("guideEntry")]
|
[Prototype("guideEntry")]
|
||||||
public sealed class GuideEntryPrototype : GuideEntry, IPrototype
|
public sealed partial class GuideEntryPrototype : GuideEntry, IPrototype
|
||||||
{
|
{
|
||||||
public string ID => Id;
|
public string ID => Id;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,16 +2,16 @@ using Content.Server.Botany.Components;
|
|||||||
using Content.Server.Botany.Systems;
|
using Content.Server.Botany.Systems;
|
||||||
using Content.Shared.Atmos;
|
using Content.Shared.Atmos;
|
||||||
using Content.Shared.Chemistry.Reagent;
|
using Content.Shared.Chemistry.Reagent;
|
||||||
|
using Robust.Shared.Audio;
|
||||||
using Robust.Shared.Prototypes;
|
using Robust.Shared.Prototypes;
|
||||||
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
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;
|
||||||
using Robust.Shared.Utility;
|
using Robust.Shared.Utility;
|
||||||
using Robust.Shared.Audio;
|
|
||||||
|
|
||||||
namespace Content.Server.Botany;
|
namespace Content.Server.Botany;
|
||||||
|
|
||||||
[Prototype("seed")]
|
[Prototype("seed")]
|
||||||
public sealed class SeedPrototype : SeedData, IPrototype
|
public sealed partial class SeedPrototype : SeedData, IPrototype
|
||||||
{
|
{
|
||||||
[IdDataField] public string ID { get; private init; } = default!;
|
[IdDataField] public string ID { get; private init; } = default!;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ public class NoiseChannelConfig
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Prototype("noiseChannel")]
|
[Prototype("noiseChannel")]
|
||||||
public sealed class NoiseChannelPrototype : NoiseChannelConfig, IPrototype, IInheritingPrototype
|
public sealed partial class NoiseChannelPrototype : NoiseChannelConfig, IPrototype, IInheritingPrototype
|
||||||
{
|
{
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
[ParentDataField(typeof(AbstractPrototypeIdArraySerializer<EntityPrototype>))]
|
[ParentDataField(typeof(AbstractPrototypeIdArraySerializer<EntityPrototype>))]
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ namespace Content.Shared.Audio.Jukebox;
|
|||||||
/// Soundtrack that's visible on the jukebox list.
|
/// Soundtrack that's visible on the jukebox list.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Prototype]
|
[Prototype]
|
||||||
public sealed class JukeboxPrototype : IPrototype
|
public sealed partial class JukeboxPrototype : IPrototype
|
||||||
{
|
{
|
||||||
[IdDataField]
|
[IdDataField]
|
||||||
public string ID { get; } = string.Empty;
|
public string ID { get; } = string.Empty;
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ namespace Content.Shared.Damage.Prototypes
|
|||||||
/// just want normal data to be deserialized.
|
/// just want normal data to be deserialized.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
[Prototype("damageModifierSet")]
|
[Prototype("damageModifierSet")]
|
||||||
public sealed class DamageModifierSetPrototype : DamageModifierSet, IPrototype
|
public sealed partial class DamageModifierSetPrototype : DamageModifierSet, IPrototype
|
||||||
{
|
{
|
||||||
[ViewVariables]
|
[ViewVariables]
|
||||||
[IdDataField]
|
[IdDataField]
|
||||||
|
|||||||
@@ -29,13 +29,13 @@ public abstract class DevicePortPrototype
|
|||||||
|
|
||||||
[Prototype("sinkPort")]
|
[Prototype("sinkPort")]
|
||||||
[Serializable, NetSerializable]
|
[Serializable, NetSerializable]
|
||||||
public sealed class SinkPortPrototype : DevicePortPrototype, IPrototype
|
public sealed partial class SinkPortPrototype : DevicePortPrototype, IPrototype
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
[Prototype("sourcePort")]
|
[Prototype("sourcePort")]
|
||||||
[Serializable, NetSerializable]
|
[Serializable, NetSerializable]
|
||||||
public sealed class SourcePortPrototype : DevicePortPrototype, IPrototype
|
public sealed partial class SourcePortPrototype : DevicePortPrototype, IPrototype
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// This is a set of sink ports that this source port will attempt to link to when using the
|
/// This is a set of sink ports that this source port will attempt to link to when using the
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ namespace Content.Shared.Preferences.Loadouts.Effects;
|
|||||||
/// Stores a group of loadout effects in a prototype for re-use.
|
/// Stores a group of loadout effects in a prototype for re-use.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Prototype]
|
[Prototype]
|
||||||
public sealed class LoadoutEffectGroupPrototype : IPrototype
|
public sealed partial class LoadoutEffectGroupPrototype : IPrototype
|
||||||
{
|
{
|
||||||
[IdDataField]
|
[IdDataField]
|
||||||
public string ID { get; } = string.Empty;
|
public string ID { get; } = string.Empty;
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ namespace Content.Shared.Preferences.Loadouts;
|
|||||||
/// Corresponds to a set of loadouts for a particular slot.
|
/// Corresponds to a set of loadouts for a particular slot.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Prototype("loadoutGroup")]
|
[Prototype("loadoutGroup")]
|
||||||
public sealed class LoadoutGroupPrototype : IPrototype
|
public sealed partial class LoadoutGroupPrototype : IPrototype
|
||||||
{
|
{
|
||||||
[IdDataField]
|
[IdDataField]
|
||||||
public string ID { get; } = string.Empty;
|
public string ID { get; } = string.Empty;
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ namespace Content.Shared.Preferences.Loadouts;
|
|||||||
/// Individual loadout item to be applied.
|
/// Individual loadout item to be applied.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Prototype]
|
[Prototype]
|
||||||
public sealed class LoadoutPrototype : IPrototype
|
public sealed partial class LoadoutPrototype : IPrototype
|
||||||
{
|
{
|
||||||
[IdDataField]
|
[IdDataField]
|
||||||
public string ID { get; } = string.Empty;
|
public string ID { get; } = string.Empty;
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ namespace Content.Shared.Preferences.Loadouts;
|
|||||||
/// Corresponds to a Job / Antag prototype and specifies loadouts
|
/// Corresponds to a Job / Antag prototype and specifies loadouts
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Prototype]
|
[Prototype]
|
||||||
public sealed class RoleLoadoutPrototype : IPrototype
|
public sealed partial class RoleLoadoutPrototype : IPrototype
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
* Separate to JobPrototype / AntagPrototype as they are turning into messy god classes.
|
* Separate to JobPrototype / AntagPrototype as they are turning into messy god classes.
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ namespace Content.Shared.RCD;
|
|||||||
/// Contains the parameters for a RCD construction / operation
|
/// Contains the parameters for a RCD construction / operation
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Prototype("rcd")]
|
[Prototype("rcd")]
|
||||||
public sealed class RCDPrototype : IPrototype
|
public sealed partial class RCDPrototype : IPrototype
|
||||||
{
|
{
|
||||||
[IdDataField]
|
[IdDataField]
|
||||||
public string ID { get; private set; } = default!;
|
public string ID { get; private set; } = default!;
|
||||||
@@ -51,7 +51,7 @@ public sealed class RCDPrototype : IPrototype
|
|||||||
public int Cost { get; private set; } = 1;
|
public int Cost { get; private set; } = 1;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The length of the operation
|
/// The length of the operation
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[DataField, ViewVariables(VVAccess.ReadOnly)]
|
[DataField, ViewVariables(VVAccess.ReadOnly)]
|
||||||
public float Delay { get; private set; } = 1f;
|
public float Delay { get; private set; } = 1f;
|
||||||
@@ -75,7 +75,7 @@ public sealed class RCDPrototype : IPrototype
|
|||||||
public CollisionGroup CollisionMask { get; private set; } = CollisionGroup.None;
|
public CollisionGroup CollisionMask { get; private set; } = CollisionGroup.None;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Specifies a set of custom collision bounds for determining whether the entity prototype will fit into a target tile
|
/// Specifies a set of custom collision bounds for determining whether the entity prototype will fit into a target tile
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// Should be set assuming that the entity faces south.
|
/// Should be set assuming that the entity faces south.
|
||||||
@@ -106,7 +106,7 @@ public sealed class RCDPrototype : IPrototype
|
|||||||
private Box2? _collisionBounds = null;
|
private Box2? _collisionBounds = null;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The polygon shape associated with the prototype CollisionBounds (if set)
|
/// The polygon shape associated with the prototype CollisionBounds (if set)
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[ViewVariables(VVAccess.ReadOnly)]
|
[ViewVariables(VVAccess.ReadOnly)]
|
||||||
public PolygonShape? CollisionPolygon { get; private set; } = null;
|
public PolygonShape? CollisionPolygon { get; private set; } = null;
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ using Robust.Shared.Utility;
|
|||||||
namespace Content.Shared.Salvage;
|
namespace Content.Shared.Salvage;
|
||||||
|
|
||||||
[Prototype]
|
[Prototype]
|
||||||
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!;
|
||||||
|
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ public partial class SiliconLaw : IComparable<SiliconLaw>
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
[Prototype("siliconLaw")]
|
[Prototype("siliconLaw")]
|
||||||
[Serializable, NetSerializable]
|
[Serializable, NetSerializable]
|
||||||
public sealed class SiliconLawPrototype : SiliconLaw, IPrototype
|
public sealed partial class SiliconLawPrototype : SiliconLaw, IPrototype
|
||||||
{
|
{
|
||||||
/// <inheritdoc/>
|
/// <inheritdoc/>
|
||||||
[IdDataField]
|
[IdDataField]
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ namespace Content.Shared.SprayPainter.Prototypes;
|
|||||||
/// Maps airlock style names to department ids.
|
/// Maps airlock style names to department ids.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Prototype("airlockDepartments")]
|
[Prototype("airlockDepartments")]
|
||||||
public sealed class AirlockDepartmentsPrototype : IPrototype
|
public sealed partial class AirlockDepartmentsPrototype : IPrototype
|
||||||
{
|
{
|
||||||
[IdDataField]
|
[IdDataField]
|
||||||
public string ID { get; private set; } = default!;
|
public string ID { get; private set; } = default!;
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ public partial class StatusIconData : IComparable<StatusIconData>
|
|||||||
/// <see cref="StatusIconData"/> but in new convenient prototype form!
|
/// <see cref="StatusIconData"/> but in new convenient prototype form!
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Prototype("statusIcon")]
|
[Prototype("statusIcon")]
|
||||||
public sealed class StatusIconPrototype : StatusIconData, IPrototype, IInheritingPrototype
|
public sealed partial class StatusIconPrototype : StatusIconData, IPrototype, IInheritingPrototype
|
||||||
{
|
{
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
[ParentDataField(typeof(AbstractPrototypeIdArraySerializer<StatusIconPrototype>))]
|
[ParentDataField(typeof(AbstractPrototypeIdArraySerializer<StatusIconPrototype>))]
|
||||||
|
|||||||
Reference in New Issue
Block a user