Seal/abstract/virtual everything (#6739)
This commit is contained in:
@@ -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.";
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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 ();
|
||||
|
||||
@@ -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)]
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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!;
|
||||
|
||||
@@ -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!;
|
||||
|
||||
@@ -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!;
|
||||
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user