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

@@ -9,7 +9,7 @@ using Robust.Shared.IoC;
namespace Content.Server.Damage.Commands
{
[AdminCommand(AdminFlags.Admin)]
public class GodModeCommand : IConsoleCommand
public sealed class GodModeCommand : IConsoleCommand
{
public string Command => "godmode";
public string Description => "Makes your entity or another invulnerable to almost anything. May have irreversible changes.";

View File

@@ -14,7 +14,7 @@ using Robust.Shared.Prototypes;
namespace Content.Server.Damage.Commands
{
[AdminCommand(AdminFlags.Fun)]
class HurtCommand : IConsoleCommand
sealed class HurtCommand : IConsoleCommand
{
public string Command => "hurt";
public string Description => "Ouch";

View File

@@ -9,7 +9,7 @@ using Robust.Shared.ViewVariables;
namespace Content.Server.Damage.Components
{
[RegisterComponent]
public class DamageOnToolInteractComponent : Component
public sealed class DamageOnToolInteractComponent : Component
{
[DataField("tools")]
public PrototypeFlags<ToolQualityPrototype> Tools { get; } = new ();

View File

@@ -9,7 +9,7 @@ namespace Content.Server.Damage.Components
{
[Friend(typeof(DamageOtherOnHitSystem))]
[RegisterComponent]
public class DamageOtherOnHitComponent : Component
public sealed class DamageOtherOnHitComponent : Component
{
[DataField("ignoreResistances")]
[ViewVariables(VVAccess.ReadWrite)]

View File

@@ -9,7 +9,7 @@ namespace Content.Server.Damage.Components;
/// This component shows entity damage severity when it is examined by player.
/// </summary>
[RegisterComponent]
public class ExaminableDamageComponent : Component
public sealed class ExaminableDamageComponent : Component
{
[DataField("messages", required: true, customTypeSerializer:typeof(PrototypeIdSerializer<ExaminableDamagePrototype>))]
public string? MessagesProtoId;

View File

@@ -10,7 +10,7 @@ using Robust.Shared.IoC;
namespace Content.Server.Damage.Systems
{
public class DamageOnToolInteractSystem : EntitySystem
public sealed class DamageOnToolInteractSystem : EntitySystem
{
[Dependency] private readonly DamageableSystem _damageableSystem = default!;
[Dependency] private readonly AdminLogSystem _logSystem = default!;

View File

@@ -7,7 +7,7 @@ using Content.Shared.Throwing;
namespace Content.Server.Damage.Systems
{
public class DamageOtherOnHitSystem : EntitySystem
public sealed class DamageOtherOnHitSystem : EntitySystem
{
[Dependency] private readonly DamageableSystem _damageableSystem = default!;
[Dependency] private readonly AdminLogSystem _logSystem = default!;

View File

@@ -13,7 +13,7 @@ using Robust.Shared.Prototypes;
namespace Content.Server.Damage.Systems;
public class ExaminableDamageSystem : EntitySystem
public sealed class ExaminableDamageSystem : EntitySystem
{
[Dependency] private readonly IPrototypeManager _prototype = default!;

View File

@@ -9,7 +9,7 @@ using Robust.Shared.IoC;
namespace Content.Server.Damage.Systems
{
[UsedImplicitly]
public class GodmodeSystem : EntitySystem
public sealed class GodmodeSystem : EntitySystem
{
private readonly Dictionary<EntityUid, OldEntityInformation> _entities = new();
[Dependency] private readonly DamageableSystem _damageableSystem = default!;
@@ -95,7 +95,7 @@ namespace Content.Server.Damage.Systems
}
}
public class OldEntityInformation
public sealed class OldEntityInformation
{
public OldEntityInformation(EntityUid entity, IEntityManager entityManager)
{