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

@@ -8,7 +8,7 @@ namespace Content.Server.Nutrition.Components
/// A disposable, single-use smokable.
/// </summary>
[RegisterComponent, Friend(typeof(SmokingSystem))]
public class CigarComponent : Component
public sealed class CigarComponent : Component
{
}
}

View File

@@ -14,7 +14,7 @@ using Robust.Shared.ViewVariables;
namespace Content.Server.Nutrition.Components
{
[RegisterComponent, Friend(typeof(FoodSystem))]
public class FoodComponent : Component
public sealed class FoodComponent : Component
{
[DataField("solution")]
public string SolutionName { get; set; } = "food";

View File

@@ -9,7 +9,7 @@ namespace Content.Server.Nutrition.Components
/// A food item with this component will be forcefully fed to anyone
/// </summary>
[RegisterComponent, Friend(typeof(ForcefeedOnCollideSystem))]
public class ForcefeedOnCollideComponent : Component
public sealed class ForcefeedOnCollideComponent : Component
{
/// <summary>
/// Since this component is primarily used by the pneumatic cannon, which adds this comp on throw start

View File

@@ -13,7 +13,7 @@ namespace Content.Server.Nutrition.EntitySystems;
/// masks), then this component might become redundant.
/// </remarks>
[RegisterComponent, Friend(typeof(FoodSystem), typeof(DrinkSystem))]
public class IngestionBlockerComponent : Component
public sealed class IngestionBlockerComponent : Component
{
/// <summary>
/// Is this component currently blocking consumption.

View File

@@ -8,7 +8,7 @@ using Robust.Shared.ViewVariables;
namespace Content.Server.Nutrition.Components
{
[RegisterComponent, Friend(typeof(SliceableFoodSystem))]
internal class SliceableFoodComponent : Component
internal sealed class SliceableFoodComponent : Component
{
[DataField("slice")]
[ViewVariables(VVAccess.ReadWrite)]

View File

@@ -9,7 +9,7 @@ using Robust.Shared.Serialization.Manager.Attributes;
namespace Content.Server.Nutrition.Components
{
[RegisterComponent, Friend(typeof(SmokingSystem))]
public class SmokableComponent : Component
public sealed class SmokableComponent : Component
{
[DataField("solution")]
public string Solution { get; } = "smokable";

View File

@@ -9,7 +9,7 @@ using Robust.Shared.ViewVariables;
namespace Content.Server.Nutrition.Components
{
[RegisterComponent, Friend(typeof(UtensilSystem))]
public class UtensilComponent : Component
public sealed class UtensilComponent : Component
{
[DataField("types")]
private UtensilType _types = UtensilType.None;