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

@@ -7,7 +7,7 @@ using Robust.Shared.Serialization.Manager.Attributes;
namespace Content.Client.Kitchen.Components
{
[RegisterComponent]
public class MicrowaveComponent : SharedMicrowaveComponent
public sealed class MicrowaveComponent : SharedMicrowaveComponent
{
public IPlayingAudioStream? PlayingStream { get; set; }

View File

@@ -6,7 +6,7 @@ using Robust.Shared.Player;
namespace Content.Client.Kitchen.EntitySystems
{
public class MicrowaveSystem : EntitySystem
public sealed class MicrowaveSystem : EntitySystem
{
public void StartSoundLoop(MicrowaveComponent microwave)
{

View File

@@ -16,7 +16,7 @@ using Robust.Shared.Prototypes;
namespace Content.Client.Kitchen.UI
{
[GenerateTypedNameReferences]
public partial class GrinderMenu : DefaultWindow
public sealed partial class GrinderMenu : DefaultWindow
{
private readonly IEntityManager _entityManager;
private readonly IPrototypeManager _prototypeManager ;

View File

@@ -4,7 +4,7 @@ using Robust.Client.UserInterface.Controls;
namespace Content.Client.Kitchen.UI
{
[GenerateTypedNameReferences]
public partial class LabelledContentBox : BoxContainer
public sealed partial class LabelledContentBox : BoxContainer
{
public string? LabelText { get => Label.Text; set => Label.Text = value; }
public string? ButtonText { get => EjectButton.Text; set => EjectButton.Text = value; }

View File

@@ -15,7 +15,7 @@ using static Content.Shared.Kitchen.Components.SharedMicrowaveComponent;
namespace Content.Client.Kitchen.UI
{
[UsedImplicitly]
public class MicrowaveBoundUserInterface : BoundUserInterface
public sealed class MicrowaveBoundUserInterface : BoundUserInterface
{
[Dependency] private readonly IEntityManager _entityManager = default!;
[Dependency] private readonly IPrototypeManager _prototypeManager = default!;

View File

@@ -8,9 +8,9 @@ using Robust.Shared.Localization;
namespace Content.Client.Kitchen.UI
{
[GenerateTypedNameReferences]
public partial class MicrowaveMenu : DefaultWindow
public sealed partial class MicrowaveMenu : DefaultWindow
{
public class MicrowaveCookTimeButton : Button
public sealed class MicrowaveCookTimeButton : Button
{
public uint CookTime;
}

View File

@@ -8,7 +8,7 @@ using static Content.Shared.Chemistry.Components.Solution;
namespace Content.Client.Kitchen.UI
{
public class ReagentGrinderBoundUserInterface : BoundUserInterface
public sealed class ReagentGrinderBoundUserInterface : BoundUserInterface
{
[Dependency] private readonly IEntityManager _entityManager = default!;
[Dependency] private readonly IPrototypeManager _prototypeManager = default!;

View File

@@ -5,7 +5,7 @@ using static Content.Shared.Kitchen.Components.SharedReagentGrinderComponent;
namespace Content.Client.Kitchen.Visualizers
{
public class ReagentGrinderVisualizer : AppearanceVisualizer
public sealed class ReagentGrinderVisualizer : AppearanceVisualizer
{
public override void OnChangeData(AppearanceComponent component)
{