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

@@ -14,7 +14,7 @@ namespace Content.Server.Construction.Conditions
{
[UsedImplicitly]
[DataDefinition]
public class AirlockBolted : IGraphCondition
public sealed class AirlockBolted : IGraphCondition
{
[DataField("value")]
public bool Value { get; private set; } = true;

View File

@@ -11,7 +11,7 @@ namespace Content.Server.Construction.Conditions
{
[UsedImplicitly]
[DataDefinition]
public class AllConditions : IGraphCondition
public sealed class AllConditions : IGraphCondition
{
[DataField("conditions")]
public IGraphCondition[] Conditions { get; } = Array.Empty<IGraphCondition>();

View File

@@ -15,7 +15,7 @@ namespace Content.Server.Construction.Conditions
/// </summary>
[UsedImplicitly]
[DataDefinition]
public class AllWiresCut : IGraphCondition
public sealed class AllWiresCut : IGraphCondition
{
[DataField("value")] public bool Value { get; private set; } = true;

View File

@@ -11,7 +11,7 @@ namespace Content.Server.Construction.Conditions
{
[UsedImplicitly]
[DataDefinition]
public class AnyConditions : IGraphCondition
public sealed class AnyConditions : IGraphCondition
{
[DataField("conditions")]
public IGraphCondition[] Conditions { get; } = Array.Empty<IGraphCondition>();

View File

@@ -20,7 +20,7 @@ namespace Content.Server.Construction.Conditions
/// </summary>
[UsedImplicitly]
[DataDefinition]
public class ComponentInTile : IGraphCondition
public sealed class ComponentInTile : IGraphCondition
{
/// <summary>
/// If true, any entity on the tile must have the component.

View File

@@ -15,7 +15,7 @@ namespace Content.Server.Construction.Conditions
{
[UsedImplicitly]
[DataDefinition]
public class ContainerEmpty : IGraphCondition
public sealed class ContainerEmpty : IGraphCondition
{
[DataField("container")]
public string Container { get; } = string.Empty;

View File

@@ -15,7 +15,7 @@ namespace Content.Server.Construction.Conditions
{
[UsedImplicitly]
[DataDefinition]
public class ContainerNotEmpty : IGraphCondition
public sealed class ContainerNotEmpty : IGraphCondition
{
[DataField("container")] public string Container { get; private set; } = string.Empty;
[DataField("examineText")] public string? ExamineText { get; }

View File

@@ -12,7 +12,7 @@ namespace Content.Server.Construction.Conditions
{
[UsedImplicitly]
[DataDefinition]
public class DoorWelded : IGraphCondition
public sealed class DoorWelded : IGraphCondition
{
[DataField("welded")]
public bool Welded { get; private set; } = true;

View File

@@ -14,7 +14,7 @@ namespace Content.Server.Construction.Conditions
{
[UsedImplicitly]
[DataDefinition]
public class EntityAnchored : IGraphCondition
public sealed class EntityAnchored : IGraphCondition
{
[DataField("anchored")] public bool Anchored { get; private set; } = true;

View File

@@ -14,7 +14,7 @@ namespace Content.Server.Construction.Conditions
{
[UsedImplicitly]
[DataDefinition]
public class Locked : IGraphCondition
public sealed class Locked : IGraphCondition
{
[DataField("locked")]
public bool IsLocked { get; private set; } = true;

View File

@@ -17,7 +17,7 @@ namespace Content.Server.Construction.Conditions
/// </summary>
[UsedImplicitly]
[DataDefinition]
public class MachineFrameComplete : IGraphCondition
public sealed class MachineFrameComplete : IGraphCondition
{
[DataField("guideIconBoard")]
public SpriteSpecifier? GuideIconBoard { get; }

View File

@@ -12,7 +12,7 @@ namespace Content.Server.Construction.Conditions
{
[UsedImplicitly]
[DataDefinition]
public class StorageWelded : IGraphCondition
public sealed class StorageWelded : IGraphCondition
{
[DataField("welded")]
public bool Welded { get; private set; } = true;

View File

@@ -12,7 +12,7 @@ namespace Content.Server.Construction.Conditions
{
[UsedImplicitly]
[DataDefinition]
public class ToiletLidClosed : IGraphCondition
public sealed class ToiletLidClosed : IGraphCondition
{
public bool Condition(EntityUid uid, IEntityManager entityManager)
{

View File

@@ -14,7 +14,7 @@ namespace Content.Server.Construction.Conditions
{
[UsedImplicitly]
[DataDefinition]
public class WirePanel : IGraphCondition
public sealed class WirePanel : IGraphCondition
{
[DataField("open")] public bool Open { get; private set; } = true;