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

@@ -6,7 +6,7 @@ using Robust.Shared.ViewVariables;
namespace Content.Server.Xenoarchaeology.XenoArtifacts;
[RegisterComponent]
public class ArtifactComponent : Component
public sealed class ArtifactComponent : Component
{
/// <summary>
/// Should artifact pick a random trigger on startup?

View File

@@ -6,7 +6,7 @@ using Robust.Shared.Timing;
namespace Content.Server.Xenoarchaeology.XenoArtifacts;
public class ArtifactSystem : EntitySystem
public sealed class ArtifactSystem : EntitySystem
{
[Dependency] private readonly IGameTiming _gameTiming = default!;
[Dependency] private readonly IRobustRandom _random = default!;

View File

@@ -9,7 +9,7 @@ namespace Content.Server.Xenoarchaeology.XenoArtifacts.Effects.Components;
/// Spawn a random gas with random temperature when artifact activated.
/// </summary>
[RegisterComponent]
public class GasArtifactComponent : Component
public sealed class GasArtifactComponent : Component
{
public override string Name => "GasArtifact";

View File

@@ -10,7 +10,7 @@ namespace Content.Server.Xenoarchaeology.XenoArtifacts.Effects.Components;
/// Spawn RadiationPulse when artifact activated.
/// </summary>
[RegisterComponent]
public class RadiateArtifactComponent : Component
public sealed class RadiateArtifactComponent : Component
{
public override string Name => "RadiateArtifact";

View File

@@ -13,7 +13,7 @@ namespace Content.Server.Xenoarchaeology.XenoArtifacts.Effects.Components;
/// It could be an angry mob or some random item.
/// </summary>
[RegisterComponent]
public class SpawnArtifactComponent : Component
public sealed class SpawnArtifactComponent : Component
{
[DataField("random")]
public bool RandomPrototype = true;

View File

@@ -9,7 +9,7 @@ namespace Content.Server.Xenoarchaeology.XenoArtifacts.Effects.Components;
/// Thoughts are shown as popups and unique for each player.
/// </summary>
[RegisterComponent]
public class TelepathicArtifactComponent : Component
public sealed class TelepathicArtifactComponent : Component
{
/// <summary>
/// Loc string ids of telepathic messages.

View File

@@ -8,7 +8,7 @@ namespace Content.Server.Xenoarchaeology.XenoArtifacts.Effects.Components;
/// Change atmospherics temperature until it reach target.
/// </summary>
[RegisterComponent]
public class TemperatureArtifactComponent : Component
public sealed class TemperatureArtifactComponent : Component
{
public override string Name => "TemperatureArtifact";

View File

@@ -8,7 +8,7 @@ using Robust.Shared.Random;
namespace Content.Server.Xenoarchaeology.XenoArtifacts.Effects.Systems;
public class GasArtifactSystem : EntitySystem
public sealed class GasArtifactSystem : EntitySystem
{
[Dependency] private readonly AtmosphereSystem _atmosphereSystem = default!;
[Dependency] private readonly IRobustRandom _random = default!;

View File

@@ -5,7 +5,7 @@ using Robust.Shared.GameObjects;
namespace Content.Server.Xenoarchaeology.XenoArtifacts.Effects.Systems;
public class RadiateArtifactSystem : EntitySystem
public sealed class RadiateArtifactSystem : EntitySystem
{
public override void Initialize()
{

View File

@@ -9,7 +9,7 @@ using Robust.Shared.Random;
namespace Content.Server.Xenoarchaeology.XenoArtifacts.Effects.Systems;
public class SpawnArtifactSystem : EntitySystem
public sealed class SpawnArtifactSystem : EntitySystem
{
[Dependency] private readonly IRobustRandom _random = default!;

View File

@@ -10,7 +10,7 @@ using Robust.Shared.Random;
namespace Content.Server.Xenoarchaeology.XenoArtifacts.Effects.Systems;
public class TelepathicArtifactSystem : EntitySystem
public sealed class TelepathicArtifactSystem : EntitySystem
{
[Dependency] private readonly IRobustRandom _random = default!;
[Dependency] private readonly IEntityLookup _lookup = default!;

View File

@@ -7,7 +7,7 @@ using Robust.Shared.IoC;
namespace Content.Server.Xenoarchaeology.XenoArtifacts.Effects.Systems;
public class TemperatureArtifactSystem : EntitySystem
public sealed class TemperatureArtifactSystem : EntitySystem
{
[Dependency] private readonly AtmosphereSystem _atmosphereSystem = default!;

View File

@@ -6,7 +6,7 @@ namespace Content.Server.Xenoarchaeology.XenoArtifacts.Events;
/// Invokes when artifact was successfully activated.
/// Used to start attached effects.
/// </summary>
public class ArtifactActivatedEvent : EntityEventArgs
public sealed class ArtifactActivatedEvent : EntityEventArgs
{
/// <summary>
/// Entity that activate this artifact.

View File

@@ -5,7 +5,7 @@ namespace Content.Server.Xenoarchaeology.XenoArtifacts.Events;
/// <summary>
/// Force to randomize artifact triggers.
/// </summary>
public class RandomizeTriggerEvent : EntityEventArgs
public sealed class RandomizeTriggerEvent : EntityEventArgs
{
}

View File

@@ -5,7 +5,7 @@ using Robust.Shared.Serialization.Manager.Attributes;
namespace Content.Server.Xenoarchaeology.XenoArtifacts;
[RegisterComponent]
public class RandomArtifactSpriteComponent : Component
public sealed class RandomArtifactSpriteComponent : Component
{
[DataField("minSprite")]
public int MinSprite = 1;

View File

@@ -8,7 +8,7 @@ using Robust.Shared.Timing;
namespace Content.Server.Xenoarchaeology.XenoArtifacts;
public class RandomArtifactSpriteSystem : EntitySystem
public sealed class RandomArtifactSpriteSystem : EntitySystem
{
[Dependency] private readonly IRobustRandom _random = default!;
[Dependency] private readonly IGameTiming _time = default!;

View File

@@ -9,7 +9,7 @@ namespace Content.Server.Xenoarchaeology.XenoArtifacts.Triggers.Components;
/// Activates artifact when it surrounded by certain gas.
/// </summary>
[RegisterComponent]
public class ArtifactGasTriggerComponent : Component
public sealed class ArtifactGasTriggerComponent : Component
{
/// <summary>
/// List of possible activation gases to pick on startup.

View File

@@ -6,6 +6,6 @@ namespace Content.Server.Xenoarchaeology.XenoArtifacts.Triggers.Components;
/// Activate artifact just by touching it.
/// </summary>
[RegisterComponent]
public class ArtifactInteractionTriggerComponent : Component
public sealed class ArtifactInteractionTriggerComponent : Component
{
}

View File

@@ -7,7 +7,7 @@ using Robust.Shared.Random;
namespace Content.Server.Xenoarchaeology.XenoArtifacts.Triggers.Systems;
public class ArtifactGasTriggerSystem : EntitySystem
public sealed class ArtifactGasTriggerSystem : EntitySystem
{
[Dependency] private readonly IRobustRandom _random = default!;
[Dependency] private readonly AtmosphereSystem _atmosphereSystem = default!;

View File

@@ -7,7 +7,7 @@ using Robust.Shared.IoC;
namespace Content.Server.Xenoarchaeology.XenoArtifacts.Triggers.Systems;
public class ArtifactInteractionTriggerSystem : EntitySystem
public sealed class ArtifactInteractionTriggerSystem : EntitySystem
{
[Dependency] private readonly ArtifactSystem _artifactSystem = default!;