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

@@ -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!;

View File

@@ -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
{
}

View File

@@ -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;

View File

@@ -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!;

View File

@@ -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
{
}
}

View File

@@ -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
{
}
}

View File

@@ -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>.

View File

@@ -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");

View File

@@ -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");