Seal/abstract/virtual everything (#6739)

This commit is contained in:
mirrorcult
2022-02-16 00:23:23 -07:00
committed by GitHub
parent 4dfcacb86a
commit ec4d4688c7
1771 changed files with 2216 additions and 2164 deletions

View File

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

View File

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

View File

@@ -16,7 +16,7 @@ namespace Content.Shared.Damage.Prototypes
/// just want normal data to be deserialized.
/// </remarks>
[Prototype("damageModifierSet")]
public class DamageModifierSetPrototype : DamageModifierSet, IPrototype
public sealed class DamageModifierSetPrototype : DamageModifierSet, IPrototype
{
[ViewVariables]
[DataField("id", required: true)]

View File

@@ -6,11 +6,11 @@ using Robust.Shared.Serialization.Manager.Attributes;
namespace Content.Shared.Damage.Prototypes
{
/// <summary>
/// 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>
[Prototype("damageType")]
[Serializable, NetSerializable]
public class DamageTypePrototype : IPrototype
public sealed class DamageTypePrototype : IPrototype
{
[DataField("id", required: true)]
public string ID { get; } = default!;

View File

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