Seal/abstract/virtual everything (#6739)
This commit is contained in:
@@ -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?
|
||||
|
||||
@@ -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!;
|
||||
|
||||
@@ -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";
|
||||
|
||||
|
||||
@@ -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";
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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";
|
||||
|
||||
|
||||
@@ -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!;
|
||||
|
||||
@@ -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()
|
||||
{
|
||||
|
||||
@@ -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!;
|
||||
|
||||
|
||||
@@ -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!;
|
||||
|
||||
@@ -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!;
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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!;
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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
|
||||
{
|
||||
}
|
||||
|
||||
@@ -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!;
|
||||
|
||||
@@ -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!;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user