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

@@ -15,10 +15,10 @@ namespace Content.Server.Tools.Components
/// Not to be confused with Multitool (power)
/// </summary>
[RegisterComponent]
public class MultipleToolComponent : SharedMultipleToolComponent
public sealed class MultipleToolComponent : SharedMultipleToolComponent
{
[DataDefinition]
public class ToolEntry
public sealed class ToolEntry
{
[DataField("behavior", required:true)]
public PrototypeFlags<ToolQualityPrototype> Behavior { get; } = new();
@@ -32,7 +32,7 @@ namespace Content.Server.Tools.Components
[DataField("sprite")]
public SpriteSpecifier? Sprite { get; } = null;
}
[DataField("entries", required:true)]
public ToolEntry[] Entries { get; } = Array.Empty<ToolEntry>();

View File

@@ -9,7 +9,7 @@ using Robust.Shared.ViewVariables;
namespace Content.Server.Tools.Components
{
[RegisterComponent, Friend(typeof(ToolSystem))]
public class ToolComponent : Component
public sealed class ToolComponent : Component
{
[DataField("qualities")]
public PrototypeFlags<ToolQualityPrototype> Qualities { get; set; } = new();

View File

@@ -10,7 +10,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy
namespace Content.Server.Tools.Components
{
[RegisterComponent]
public class WelderComponent : SharedWelderComponent
public sealed class WelderComponent : SharedWelderComponent
{
/// <summary>
/// Solution on the entity that contains the fuel.
@@ -56,7 +56,7 @@ namespace Content.Server.Tools.Components
/// </summary>
/// <remarks>
/// If this is a standard welder, this damage bonus should probably subtract the entity's standard melee weapon damage
/// and replace it all with heat damage.
/// and replace it all with heat damage.
/// </remarks>
[DataField("litMeleeDamageBonus")]
public DamageSpecifier LitMeleeDamageBonus = new();