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

@@ -12,7 +12,7 @@ namespace Content.Server.Kitchen.Components
/// </summary>
[RegisterComponent]
[Friend(typeof(ReagentGrinderSystem))]
public class ExtractableComponent : Component
public sealed class ExtractableComponent : Component
{
[ViewVariables]
[DataField("juiceSolution")]

View File

@@ -13,12 +13,12 @@ using System.Threading;
namespace Content.Server.Kitchen.Components
{
[RegisterComponent, Friend(typeof(KitchenSpikeSystem))]
public class KitchenSpikeComponent : SharedKitchenSpikeComponent, ISuicideAct
public sealed class KitchenSpikeComponent : SharedKitchenSpikeComponent, ISuicideAct
{
public int MeatParts;
public string? MeatPrototype;
// TODO: Spiking alive mobs? (Replace with uid) (deal damage to their limbs on spiking, kill on first butcher attempt?)
// TODO: Spiking alive mobs? (Replace with uid) (deal damage to their limbs on spiking, kill on first butcher attempt?)
public string MeatSource1p = "?";
public string MeatSource0 = "?";
public string MeatName = "?";

View File

@@ -31,7 +31,7 @@ namespace Content.Server.Kitchen.Components
{
[RegisterComponent]
[ComponentReference(typeof(IActivate))]
public class MicrowaveComponent : SharedMicrowaveComponent, IActivate, IInteractUsing, ISuicideAct, IBreakAct
public sealed class MicrowaveComponent : SharedMicrowaveComponent, IActivate, IInteractUsing, ISuicideAct, IBreakAct
{
[Dependency] private readonly IEntityManager _entities = default!;
@@ -550,7 +550,7 @@ namespace Content.Server.Kitchen.Components
}
}
public class BeingMicrowavedEvent : HandledEntityEventArgs
public sealed class BeingMicrowavedEvent : HandledEntityEventArgs
{
public EntityUid Microwave;

View File

@@ -15,7 +15,7 @@ namespace Content.Server.Kitchen.Components
/// it contained, juice an apple and get "apple juice".
/// </summary>
[RegisterComponent]
public class ReagentGrinderComponent : SharedReagentGrinderComponent
public sealed class ReagentGrinderComponent : SharedReagentGrinderComponent
{
[ViewVariables] public ContainerSlot BeakerContainer = default!;

View File

@@ -16,7 +16,7 @@ using static Content.Shared.Kitchen.Components.SharedKitchenSpikeComponent;
namespace Content.Server.Kitchen.EntitySystems
{
internal class KitchenSpikeSystem : EntitySystem
internal sealed class KitchenSpikeSystem : EntitySystem
{
[Dependency] private readonly PopupSystem _popupSystem = default!;
[Dependency] private readonly DoAfterSystem _doAfter = default!;
@@ -81,7 +81,7 @@ namespace Content.Server.Kitchen.EntitySystems
{
if (args.Handled)
return;
if (TryGetPiece(uid, args.User, args.Used))
args.Handled = true;
}
@@ -148,7 +148,7 @@ namespace Content.Server.Kitchen.EntitySystems
{
if (!Resolve(uid, ref component, ref appearance, false))
return;
appearance.SetData(KitchenSpikeVisuals.Status, (component.MeatParts > 0) ? KitchenSpikeStatus.Bloody : KitchenSpikeStatus.Empty);
}
@@ -217,7 +217,7 @@ namespace Content.Server.Kitchen.EntitySystems
return true;
}
private class SpikingFinishedEvent : EntityEventArgs
private sealed class SpikingFinishedEvent : EntityEventArgs
{
public EntityUid VictimUid;
public EntityUid UserUid;
@@ -229,7 +229,7 @@ namespace Content.Server.Kitchen.EntitySystems
}
}
private class SpikingFailEvent : EntityEventArgs
private sealed class SpikingFailEvent : EntityEventArgs
{
public EntityUid VictimUid;

View File

@@ -5,9 +5,9 @@ namespace Content.Server.Kitchen.Events
/// <summary>
/// Used in scaling amount of solution to extract in juicing
/// </summary>
public class ExtractableScalingEvent : EntityEventArgs
public sealed class ExtractableScalingEvent : EntityEventArgs
{
public ExtractableScalingEvent()
{
Scalar = 1f;