Seal/abstract/virtual everything (#6739)
This commit is contained in:
@@ -18,7 +18,7 @@ namespace Content.Server.Light.Components
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
#pragma warning disable 618
|
||||
public class EmergencyLightComponent : SharedEmergencyLightComponent, IExamine
|
||||
public sealed class EmergencyLightComponent : SharedEmergencyLightComponent, IExamine
|
||||
#pragma warning restore 618
|
||||
{
|
||||
[Dependency] private readonly IEntityManager _entMan = default!;
|
||||
|
||||
@@ -7,7 +7,7 @@ namespace Content.Server.Light.Components
|
||||
/// A component which applies a specific behaviour to a PointLightComponent on its owner.
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
public class LightBehaviourComponent : SharedLightBehaviourComponent
|
||||
public sealed class LightBehaviourComponent : SharedLightBehaviourComponent
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace Content.Server.Light.Components
|
||||
/// Component that represents a light bulb. Can be broken, or burned, which turns them mostly useless.
|
||||
/// </summary>
|
||||
[RegisterComponent, Friend(typeof(LightBulbSystem))]
|
||||
public class LightBulbComponent : Component, IBreakAct
|
||||
public sealed class LightBulbComponent : Component, IBreakAct
|
||||
{
|
||||
[DataField("color")]
|
||||
public Color Color = Color.White;
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace Content.Server.Light.Components
|
||||
/// Can be reloaded by new light tubes or light bulbs
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
public class LightReplacerComponent : Component
|
||||
public sealed class LightReplacerComponent : Component
|
||||
{
|
||||
[DataField("sound")]
|
||||
public SoundSpecifier Sound = new SoundPathSpecifier("/Audio/Weapons/click.ogg");
|
||||
@@ -35,7 +35,7 @@ namespace Content.Server.Light.Components
|
||||
|
||||
[Serializable]
|
||||
[DataDefinition]
|
||||
public class LightReplacerEntity
|
||||
public sealed class LightReplacerEntity
|
||||
{
|
||||
[DataField("name", customTypeSerializer: typeof(PrototypeIdSerializer<EntityPrototype>))]
|
||||
public string PrototypeName = default!;
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace Content.Server.Light.Components
|
||||
/// state of an entity.
|
||||
/// </summary>
|
||||
[RegisterComponent, Friend(typeof(PoweredLightSystem))]
|
||||
public class LitOnPoweredComponent : Component
|
||||
public sealed class LitOnPoweredComponent : Component
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace Content.Server.Light.Components
|
||||
// TODO make changes in icons when different threshold reached
|
||||
// e.g. different icons for 10% 50% 100%
|
||||
[RegisterComponent]
|
||||
public class MatchboxComponent : Component
|
||||
public sealed class MatchboxComponent : Component
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace Content.Server.Light.Components
|
||||
{
|
||||
[RegisterComponent]
|
||||
[Friend(typeof(MatchstickSystem))]
|
||||
public class MatchstickComponent : Component
|
||||
public sealed class MatchstickComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// Current state to matchstick. Can be <code>Unlit</code>, <code>Lit</code> or <code>Burnt</code>.
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace Content.Server.Light.Components
|
||||
/// Component that represents a wall light. It has a light bulb that can be replaced when broken.
|
||||
/// </summary>
|
||||
[RegisterComponent, Friend(typeof(PoweredLightSystem))]
|
||||
public class PoweredLightComponent : Component
|
||||
public sealed class PoweredLightComponent : Component
|
||||
{
|
||||
[DataField("burnHandSound")]
|
||||
public SoundSpecifier BurnHandSound = new SoundPathSpecifier("/Audio/Effects/lightburn.ogg");
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace Content.Server.Light.Components
|
||||
/// It doesn't consume any power and can be toggle only by verb.
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
public class UnpoweredFlashlightComponent : Component
|
||||
public sealed class UnpoweredFlashlightComponent : Component
|
||||
{
|
||||
[DataField("toggleFlashlightSound")]
|
||||
public SoundSpecifier ToggleSound = new SoundPathSpecifier("/Audio/Items/flashlight_pda.ogg");
|
||||
|
||||
@@ -6,7 +6,7 @@ using Robust.Shared.GameObjects;
|
||||
|
||||
namespace Content.Server.Light.EntitySystems
|
||||
{
|
||||
public class LitOnPoweredSystem : EntitySystem
|
||||
public sealed class LitOnPoweredSystem : EntitySystem
|
||||
{
|
||||
public override void Initialize()
|
||||
{
|
||||
|
||||
@@ -6,7 +6,7 @@ using Robust.Shared.IoC;
|
||||
|
||||
namespace Content.Server.Light.EntitySystems
|
||||
{
|
||||
public class MatchboxSystem : EntitySystem
|
||||
public sealed class MatchboxSystem : EntitySystem
|
||||
{
|
||||
public override void Initialize()
|
||||
{
|
||||
|
||||
@@ -14,7 +14,7 @@ using Robust.Shared.Player;
|
||||
|
||||
namespace Content.Server.Light.EntitySystems
|
||||
{
|
||||
public class MatchstickSystem : EntitySystem
|
||||
public sealed class MatchstickSystem : EntitySystem
|
||||
{
|
||||
private HashSet<MatchstickComponent> _litMatches = new();
|
||||
[Dependency]
|
||||
|
||||
@@ -29,7 +29,7 @@ namespace Content.Server.Light.EntitySystems
|
||||
/// <summary>
|
||||
/// System for the PoweredLightComponens
|
||||
/// </summary>
|
||||
public class PoweredLightSystem : EntitySystem
|
||||
public sealed class PoweredLightSystem : EntitySystem
|
||||
{
|
||||
[Dependency] private readonly IGameTiming _gameTiming = default!;
|
||||
[Dependency] private readonly DamageableSystem _damageableSystem = default!;
|
||||
|
||||
@@ -12,7 +12,7 @@ using Robust.Shared.IoC;
|
||||
|
||||
namespace Content.Server.Light.EntitySystems
|
||||
{
|
||||
public class UnpoweredFlashlightSystem : EntitySystem
|
||||
public sealed class UnpoweredFlashlightSystem : EntitySystem
|
||||
{
|
||||
public override void Initialize()
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@ using Robust.Shared.GameObjects;
|
||||
|
||||
namespace Content.Server.Light.Events
|
||||
{
|
||||
public class LightToggleEvent : EntityEventArgs
|
||||
public sealed class LightToggleEvent : EntityEventArgs
|
||||
{
|
||||
public bool IsOn;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user